diff --git a/src/librustc_lint/nonstandard_style.rs b/src/librustc_lint/nonstandard_style.rs index c2dd9a3d1b84..ee5e715161ad 100644 --- a/src/librustc_lint/nonstandard_style.rs +++ b/src/librustc_lint/nonstandard_style.rs @@ -455,6 +455,16 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for NonUpperCaseGlobals { } } } + + fn check_generic_param(&mut self, cx: &LateContext, param: &hir::GenericParam) { + if let GenericParamKind::Const { .. } = param.kind { + NonUpperCaseGlobals::check_upper_case( + cx, + "const parameter", + ¶m.name.ident(), + ); + } + } } #[cfg(test)]