We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8eb3e0b commit 0b095a6Copy full SHA for 0b095a6
compiler/rustc_lint/src/nonstandard_style.rs
@@ -533,6 +533,10 @@ impl<'tcx> LateLintPass<'tcx> for NonUpperCaseGlobals {
533
534
fn check_generic_param(&mut self, cx: &LateContext<'_>, param: &hir::GenericParam<'_>) {
535
if let GenericParamKind::Const { .. } = param.kind {
536
+ // `rustc_host` params are explicitly allowed to be lowercase.
537
+ if cx.tcx.has_attr(param.def_id, sym::rustc_host) {
538
+ return;
539
+ }
540
NonUpperCaseGlobals::check_upper_case(cx, "const parameter", ¶m.name.ident());
541
}
542
0 commit comments