diff options
| author | Urgau <urgau@numericable.fr> | 2025-06-20 18:59:34 +0200 |
|---|---|---|
| committer | Urgau <urgau@numericable.fr> | 2025-06-20 18:59:34 +0200 |
| commit | 09d0a739f7dc4d84ae7baeac03a7e0d94671f3cb (patch) | |
| tree | 08c8cd99d4533dd4bbb985d74894a8f4ca345204 /compiler/rustc_lint/src/lints.rs | |
| parent | 4df9f2f8412db164e787233d1fc56d2988f255c8 (diff) | |
| download | rust-09d0a739f7dc4d84ae7baeac03a7e0d94671f3cb.tar.gz rust-09d0a739f7dc4d84ae7baeac03a7e0d94671f3cb.zip | |
Switch `non_upper_case_globals` suggestions to being machine-applicable
Diffstat (limited to 'compiler/rustc_lint/src/lints.rs')
| -rw-r--r-- | compiler/rustc_lint/src/lints.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_lint/src/lints.rs b/compiler/rustc_lint/src/lints.rs index a20050a10b4..0ef7b3c14ac 100644 --- a/compiler/rustc_lint/src/lints.rs +++ b/compiler/rustc_lint/src/lints.rs @@ -1359,7 +1359,7 @@ pub(crate) enum NonUpperCaseGlobalSub { #[primary_span] span: Span, }, - #[suggestion(lint_suggestion, code = "{replace}", applicability = "maybe-incorrect")] + #[suggestion(lint_suggestion, code = "{replace}", applicability = "machine-applicable")] Suggestion { #[primary_span] span: Span, @@ -1371,7 +1371,7 @@ pub(crate) enum NonUpperCaseGlobalSub { #[suggestion( lint_suggestion, code = "{replace}", - applicability = "maybe-incorrect", + applicability = "machine-applicable", style = "tool-only" )] pub(crate) struct NonUpperCaseGlobalSubTool { |
