You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem I encountered is this: in order to make the suggestion applicable, the span needs to be accurate, i.e. it must span only the name/identifier itself. Currently it is not so in all cases. I (think) I have managed to make the spans accurate, except for 5 places, marked with XXX in the linked patch. They boil down to these cases:
Use structured suggestions for nonstandard style lints
This PR modifies the lints in the nonstandard_style group to use structured suggestions. Note that there's a bit of tricky span calculation going on for the `crate_name` attribute. It also simplifies the code a bit: I don't think the "fallback" suggestions for these lints can actually be triggered.
Fixes#48103.
Fixes#52414.
On the
non_upper_case_globals
lint, usespan_suggestion
to suggest the uppercase name.We might want to consider applying the change everywhere the const is actually mentioned, which might be a big undertaking.
The text was updated successfully, but these errors were encountered: