File tree 2 files changed +3
-3
lines changed
src/test/ui-fulldeps/internal-lints
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ impl<'tcx> LateLintPass<'tcx> for TyTyKind {
108
108
lint. build ( & format ! ( "usage of qualified `ty::{}`" , t) )
109
109
. span_suggestion (
110
110
path. span ,
111
- "try using it unqualified" ,
111
+ "try importing it and using it unqualified" ,
112
112
t,
113
113
// The import probably needs to be changed
114
114
Applicability :: MaybeIncorrect ,
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ error: usage of qualified `ty::Ty<'_>`
2
2
--> $DIR/qualified_ty_ty_ctxt.rs:25:11
3
3
|
4
4
LL | ty_q: ty::Ty<'_>,
5
- | ^^^^^^^^^^ help: try using it unqualified: `Ty<'_>`
5
+ | ^^^^^^^^^^ help: try importing it and using it unqualified: `Ty<'_>`
6
6
|
7
7
note: the lint level is defined here
8
8
--> $DIR/qualified_ty_ty_ctxt.rs:4:9
@@ -14,7 +14,7 @@ error: usage of qualified `ty::TyCtxt<'_>`
14
14
--> $DIR/qualified_ty_ty_ctxt.rs:27:16
15
15
|
16
16
LL | ty_ctxt_q: ty::TyCtxt<'_>,
17
- | ^^^^^^^^^^^^^^ help: try using it unqualified: `TyCtxt<'_>`
17
+ | ^^^^^^^^^^^^^^ help: try importing it and using it unqualified: `TyCtxt<'_>`
18
18
19
19
error: aborting due to 2 previous errors
20
20
You can’t perform that action at this time.
0 commit comments