Skip to content

Improve unsafe diagnostic - #91133

Merged
bors merged 1 commit into
rust-lang:masterfrom
terrarier2111:unsafe-diagnostic
Mar 18, 2022
Merged

Improve unsafe diagnostic#91133
bors merged 1 commit into
rust-lang:masterfrom
terrarier2111:unsafe-diagnostic

Conversation

@terrarier2111

@terrarier2111terrarier2111 commented Nov 22, 2021

Copy link
Copy Markdown
Contributor

This fixes: #90880
I didn't use the exact proposed messages though.

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @cjgillot

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 22, 2021
@apirainoapiraino added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Nov 22, 2021
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@terrarier2111

Copy link
Copy Markdown
ContributorAuthor

r? @estebank

@terrarier2111
terrarier2111force-pushed the unsafe-diagnostic branch 5 times, most recently from f5a26dc to 8078071CompareNovember 27, 2021 10:23
@rust-log-analyzer

This comment has been minimized.

@terrarier2111
terrarier2111force-pushed the unsafe-diagnostic branch 3 times, most recently from bdd4cae to 1075035CompareNovember 27, 2021 13:01
@rust-log-analyzer

This comment has been minimized.

@terrarier2111
terrarier2111force-pushed the unsafe-diagnostic branch 2 times, most recently from fa2fceb to f3d2cecCompareNovember 27, 2021 13:48
@terrarier2111

Copy link
Copy Markdown
ContributorAuthor

@estebank could you take a look at this?

@JohnCSimonJohnCSimon added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jan 30, 2022
@ghost

ghost commented Feb 19, 2022

Copy link
Copy Markdown

It would be amazing for this to get a review.

@jackh726

Copy link
Copy Markdown
Member

Sorry for the delay here!

@bos r+

@ghost

Copy link
Copy Markdown

Is there something holding this from being merged ? I'll fix it.

@jackh726

Copy link
Copy Markdown
Member

Bors? @bors r+

@bors

bors commented Mar 17, 2022

Copy link
Copy Markdown
Collaborator

📌 Commit 3a13a72 has been approved by jackh726

@bors

bors commented Mar 17, 2022

Copy link
Copy Markdown
Collaborator

🌲 The tree is currently closed for pull requests below priority 100. This pull request will be tested once the tree is reopened.

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 17, 2022
@jackh726

Copy link
Copy Markdown
Member

r? @jackh726

@Dylan-DPCDylan-DPC mentioned this pull request Mar 17, 2022
bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 18, 2022
Rollup of 10 pull requests
Successful merges:
- rust-lang#91133 (Improve `unsafe` diagnostic)
- rust-lang#93222 (Make ErrorReported impossible to construct outside `rustc_errors`)
- rust-lang#93745 (Stabilize ADX target feature)
- rust-lang#94309 ([generator_interior] Be more precise with scopes of borrowed places)
- rust-lang#94698 (Remove redundant code from copy-suggestions)
- rust-lang#94731 (Suggest adding `{ .. }` around a const function call with arguments)
- rust-lang#94960 (Fix many spelling mistakes)
- rust-lang#94982 (Add deprecated_safe feature gate and attribute, cc rust-lang#94978)
- rust-lang#94997 (debuginfo: Fix ICE when generating name for type that produces a layout error.)
- rust-lang#95000 (Fixed wrong type name in comment)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit c8133f6 into rust-lang:masterMar 18, 2022
@rustbotrustbot added this to the 1.61.0 milestone Mar 18, 2022
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

unsafe: Bad diagnostic message

10 participants

@terrarier2111@rust-highfive@rust-log-analyzer@jackh726@bors@estebank@cjgillot@JohnCSimon@apiraino@rustbot