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

fix: report incorrect-ident-case for inner items #15320

Merged
merged 2 commits into from Jul 21, 2023

Conversation

lowr
Copy link
Contributor

@lowr lowr commented Jul 21, 2023

Fixes #15319

Although we have been collecting the diagnostics for inner items within function bodies, we were discarding them and never reported to the users. This PR makes sure that they are all reported and additionally collects the diagnostics for inner items within const bodies, static bodies, and enum variant bodies.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 21, 2023
@HKalbasi
Copy link
Member

Does it also handle other diagnostics, e.g. type mismatch?

@lowr
Copy link
Contributor Author

lowr commented Jul 21, 2023

No, the visitor I'm fixing only accounts for incorrect-ident-case so no other diagnostics should be affected.

@HKalbasi
Copy link
Member

@bors r+

@bors
Copy link
Collaborator

bors commented Jul 21, 2023

📌 Commit 33b7b45 has been approved by HKalbasi

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Jul 21, 2023

⌛ Testing commit 33b7b45 with merge 59d35d2...

@bors
Copy link
Collaborator

bors commented Jul 21, 2023

☀️ Test successful - checks-actions
Approved by: HKalbasi
Pushing 59d35d2 to master...

@bors bors merged commit 59d35d2 into rust-lang:master Jul 21, 2023
10 checks passed
@lowr lowr changed the title Report incorrect-ident-case for inner items fix: report incorrect-ident-case for inner items Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Convert identifier to uppercase" code assist doesn't replace references to the variable
4 participants