We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b0ce0e commit 26d370eCopy full SHA for 26d370e
src/imports.rs
@@ -451,11 +451,10 @@ impl UseTree {
451
// Normalise foo::self as bar -> foo as bar.
452
if let UseSegment::Slf(_) = last {
453
match self.path.last() {
454
- None => {}
455
Some(UseSegment::Ident(_, None)) => {
456
aliased_self = true;
457
}
458
- _ => unreachable!(),
+ _ => {}
459
460
461
tests/target/issue-3645.rs
@@ -0,0 +1,3 @@
1
+mod x {
2
+ use super::self as x;
3
+}
0 commit comments