@@ -5,7 +5,7 @@ use rustc_ast::Mutability;
55use rustc_errors:: Applicability ;
66use rustc_hir as hir;
77use rustc_middle:: ty:: { Ref , Ty } ;
8- use rustc_session:: lint:: builtin:: FUTURE_PRELUDE_COLLISIONS ;
8+ use rustc_session:: lint:: builtin:: RUST_2021_PRELUDE_COLLISIONS ;
99use rustc_span:: symbol:: kw:: Underscore ;
1010use rustc_span:: symbol:: { sym, Ident } ;
1111use rustc_span:: Span ;
@@ -67,7 +67,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
6767 // Inherent impls only require not relying on autoref and autoderef in order to
6868 // ensure that the trait implementation won't be used
6969 self . tcx . struct_span_lint_hir (
70- FUTURE_PRELUDE_COLLISIONS ,
70+ RUST_2021_PRELUDE_COLLISIONS ,
7171 self_expr. hir_id ,
7272 self_expr. span ,
7373 |lint| {
@@ -128,7 +128,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
128128 // trait implementations require full disambiguation to not clash with the new prelude
129129 // additions (i.e. convert from dot-call to fully-qualified call)
130130 self . tcx . struct_span_lint_hir (
131- FUTURE_PRELUDE_COLLISIONS ,
131+ RUST_2021_PRELUDE_COLLISIONS ,
132132 call_expr. hir_id ,
133133 call_expr. span ,
134134 |lint| {
@@ -212,7 +212,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
212212 return ;
213213 }
214214
215- self . tcx . struct_span_lint_hir ( FUTURE_PRELUDE_COLLISIONS , expr_id, span, |lint| {
215+ self . tcx . struct_span_lint_hir ( RUST_2021_PRELUDE_COLLISIONS , expr_id, span, |lint| {
216216 // "type" refers to either a type or, more likely, a trait from which
217217 // the associated function or method is from.
218218 let trait_path = self . trait_path_or_bare_name ( span, expr_id, pick. item . container . id ( ) ) ;
0 commit comments