Skip to content

Improve unsafe diagnostic #91133

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Mar 18, 2022
Merged

Conversation

terrarier2111
Copy link
Contributor

@terrarier2111 terrarier2111 commented Nov 22, 2021

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

@rust-highfive
Copy link
Contributor

r? @cjgillot

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

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 22, 2021
@apiraino apiraino 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
Contributor Author

r? @estebank

@rust-highfive rust-highfive assigned estebank and unassigned cjgillot Nov 24, 2021
@terrarier2111 terrarier2111 force-pushed the unsafe-diagnostic branch 5 times, most recently from f5a26dc to 8078071 Compare November 27, 2021 10:23
@rust-log-analyzer

This comment has been minimized.

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

This comment has been minimized.

@terrarier2111 terrarier2111 force-pushed the unsafe-diagnostic branch 2 times, most recently from fa2fceb to f3d2cec Compare November 27, 2021 13:48
@terrarier2111
Copy link
Contributor Author

@estebank could you take a look at this?

@JohnCSimon JohnCSimon 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
@b-NC
Copy link
Contributor

b-NC commented Feb 19, 2022

It would be amazing for this to get a review.

@jackh726
Copy link
Member

Sorry for the delay here!

@bos r+

@b-NC
Copy link
Contributor

b-NC commented Mar 17, 2022

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

@jackh726
Copy link
Member

Bors? @bors r+

@bors
Copy link
Collaborator

bors commented Mar 17, 2022

📌 Commit 3a13a72 has been approved by jackh726

@bors
Copy link
Collaborator

bors commented Mar 17, 2022

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

@bors bors 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
Member

r? @jackh726

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:master Mar 18, 2022
@rustbot rustbot added this to the 1.61.0 milestone Mar 18, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant 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