Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Use verbose suggestion for ptr::null_mut() #127391

Merged
merged 1 commit into from
Jul 6, 2024
Merged

Conversation

estebank
Copy link
Contributor

@estebank estebank commented Jul 5, 2024

No description provided.

@rustbot
Copy link
Collaborator

rustbot commented Jul 5, 2024

r? @cjgillot

rustbot has assigned @cjgillot.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jul 5, 2024
@cjgillot
Copy link
Contributor

cjgillot commented Jul 5, 2024

While I don't mind either the former nor the latter form, could you give a little motivation why?

@estebank
Copy link
Contributor Author

estebank commented Jul 6, 2024

@cjgillot I'm going through all inline suggestions and moving them to the verbose format whenever possible. I am using that process to audit what the suggestions are and finding some suggestions with bad spans in the process. The original reason to do this is because we want to eventually move to annotate-snippets, which doesn't support inline suggestions. Those suggestions are really a hold over from when structured suggestions had a much worse format than the one we have today. The only inline suggestions that still make some sense are the ones that flat out say to remove or add a token in the right place, almost every other one works better with the new suggestion format or even better with multipart suggestions.

@cjgillot
Copy link
Contributor

cjgillot commented Jul 6, 2024

Thanks!
@bors r+ rollup

@bors
Copy link
Contributor

bors commented Jul 6, 2024

📌 Commit fca286a has been approved by cjgillot

It is now in the queue for this repository.

@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 Jul 6, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Jul 6, 2024
…iaskrgr

Rollup of 3 pull requests

Successful merges:

 - rust-lang#127275 (offset_from, offset: clearly separate safety requirements the user needs to prove from corollaries that automatically follow)
 - rust-lang#127379 (rustdoc-search: stop constructing pointless arrays in decode)
 - rust-lang#127391 (Use verbose suggestion for `ptr::null_mut()`)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 1e00281 into rust-lang:master Jul 6, 2024
6 checks passed
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Jul 6, 2024
Rollup merge of rust-lang#127391 - estebank:null_mut, r=cjgillot

Use verbose suggestion for `ptr::null_mut()`
@rustbot rustbot added this to the 1.81.0 milestone Jul 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in 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.

4 participants