From 42bb66add31d196bb8d0f0bfb79a00dfd2cad55b Mon Sep 17 00:00:00 2001 From: Urgau Date: Tue, 17 Jun 2025 23:27:06 +0200 Subject: Also emit suggestions for usages in the `non_upper_case_globals` lint --- compiler/rustc_lint/src/lints.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'compiler/rustc_lint/src/lints.rs') 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, } #[derive(Subdiagnostic)] -- cgit 1.4.1-3-g733a5