We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
use self::
1 parent 6e0623f commit 5817b6fCopy full SHA for 5817b6f
clippy_lints/src/use_crate_prefix_for_self_imports.rs
@@ -71,7 +71,10 @@ impl LateLintPass<'_> for UseCratePrefixForSelfImports {
71
&& def_id.krate == LOCAL_CRATE
72
{
73
let root = segment.ident.name;
74
- if root != rustc_span::symbol::kw::Crate && root != rustc_span::symbol::kw::Super {
+ if root != rustc_span::symbol::kw::Crate
75
+ && root != rustc_span::symbol::kw::Super
76
+ && root != rustc_span::symbol::kw::SelfLower
77
+ {
78
span_lint_and_sugg(
79
cx,
80
USE_CRATE_PREFIX_FOR_SELF_IMPORTS,
0 commit comments