Auto merge of #118605 - fee1-dead-contrib:rm-rustc_host, r=compiler-errors
Remove `#[rustc_host]`, use internal desugaring Also removed a way for users to explicitly specify the host param since that isn't particularly useful. This should eliminate any pain with encoding attributes across crates and etc. r? `@compiler-errors`
This commit is contained in:
commit
f32d29837d
16 changed files with 56 additions and 88 deletions
|
@ -534,9 +534,9 @@ impl<'tcx> LateLintPass<'tcx> for NonUpperCaseGlobals {
|
|||
}
|
||||
|
||||
fn check_generic_param(&mut self, cx: &LateContext<'_>, param: &hir::GenericParam<'_>) {
|
||||
if let GenericParamKind::Const { .. } = param.kind {
|
||||
// `rustc_host` params are explicitly allowed to be lowercase.
|
||||
if cx.tcx.has_attr(param.def_id, sym::rustc_host) {
|
||||
if let GenericParamKind::Const { is_host_effect, .. } = param.kind {
|
||||
// `host` params are explicitly allowed to be lowercase.
|
||||
if is_host_effect {
|
||||
return;
|
||||
}
|
||||
NonUpperCaseGlobals::check_upper_case(cx, "const parameter", ¶m.name.ident());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue