Clarify the usage-of-qualified-ty
error message.
I found this message confusing when I encountered it. This commit makes it clearer that you have to import the unqualified type yourself.
This commit is contained in:
parent
84322efad5
commit
696d5034b2
2 changed files with 3 additions and 3 deletions
|
@ -108,7 +108,7 @@ impl<'tcx> LateLintPass<'tcx> for TyTyKind {
|
|||
lint.build(&format!("usage of qualified `ty::{}`", t))
|
||||
.span_suggestion(
|
||||
path.span,
|
||||
"try using it unqualified",
|
||||
"try importing it and using it unqualified",
|
||||
t,
|
||||
// The import probably needs to be changed
|
||||
Applicability::MaybeIncorrect,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue