about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/lints.rs
diff options
context:
space:
mode:
authorUrgau <urgau@numericable.fr>2025-06-17 23:27:06 +0200
committerUrgau <urgau@numericable.fr>2025-06-18 00:06:37 +0200
commit42bb66add31d196bb8d0f0bfb79a00dfd2cad55b (patch)
tree3e9ed8a4221ed03888393ac9b2448acf5c2eeb34 /compiler/rustc_lint/src/lints.rs
parent994794a50bd4adfd7f0351872206e170c1bc8d58 (diff)
downloadrust-42bb66add31d196bb8d0f0bfb79a00dfd2cad55b.tar.gz
rust-42bb66add31d196bb8d0f0bfb79a00dfd2cad55b.zip
Also emit suggestions for usages in the `non_upper_case_globals` lint
Diffstat (limited to 'compiler/rustc_lint/src/lints.rs')
-rw-r--r--compiler/rustc_lint/src/lints.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_lint/src/lints.rs b/compiler/rustc_lint/src/lints.rs
index 3d17dfbc451..d157bf6986c 100644
--- a/compiler/rustc_lint/src/lints.rs
+++ b/compiler/rustc_lint/src/lints.rs
@@ -1348,6 +1348,8 @@ pub(crate) struct NonUpperCaseGlobal<'a> {
     pub name: &'a str,
     #[subdiagnostic]
     pub sub: NonUpperCaseGlobalSub,
+    #[subdiagnostic]
+    pub usages: Vec<NonUpperCaseGlobalSub>,
 }
 
 #[derive(Subdiagnostic)]