@@ -5,7 +5,7 @@ use rustc_ast::Mutability;
5
5
use rustc_errors:: Applicability ;
6
6
use rustc_hir as hir;
7
7
use rustc_middle:: ty:: { Ref , Ty } ;
8
- use rustc_session:: lint:: builtin:: FUTURE_PRELUDE_COLLISIONS ;
8
+ use rustc_session:: lint:: builtin:: RUST_2021_PRELUDE_COLLISIONS ;
9
9
use rustc_span:: symbol:: kw:: Underscore ;
10
10
use rustc_span:: symbol:: { sym, Ident } ;
11
11
use rustc_span:: Span ;
@@ -67,7 +67,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
67
67
// Inherent impls only require not relying on autoref and autoderef in order to
68
68
// ensure that the trait implementation won't be used
69
69
self . tcx . struct_span_lint_hir (
70
- FUTURE_PRELUDE_COLLISIONS ,
70
+ RUST_2021_PRELUDE_COLLISIONS ,
71
71
self_expr. hir_id ,
72
72
self_expr. span ,
73
73
|lint| {
@@ -128,7 +128,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
128
128
// trait implementations require full disambiguation to not clash with the new prelude
129
129
// additions (i.e. convert from dot-call to fully-qualified call)
130
130
self . tcx . struct_span_lint_hir (
131
- FUTURE_PRELUDE_COLLISIONS ,
131
+ RUST_2021_PRELUDE_COLLISIONS ,
132
132
call_expr. hir_id ,
133
133
call_expr. span ,
134
134
|lint| {
@@ -212,7 +212,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
212
212
return ;
213
213
}
214
214
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| {
216
216
// "type" refers to either a type or, more likely, a trait from which
217
217
// the associated function or method is from.
218
218
let trait_path = self . trait_path_or_bare_name ( span, expr_id, pick. item . container . id ( ) ) ;
0 commit comments