Skip to content

Commit

Permalink
remove unreachable!() (#3646)
Browse files Browse the repository at this point in the history
  • Loading branch information
rchaser53 authored and topecongiro committed Jun 23, 2019
1 parent 5b0ce0e commit 26d370e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/imports.rs
Expand Up @@ -451,11 +451,10 @@ impl UseTree {
// Normalise foo::self as bar -> foo as bar.
if let UseSegment::Slf(_) = last {
match self.path.last() {
None => {}
Some(UseSegment::Ident(_, None)) => {
aliased_self = true;
}
_ => unreachable!(),
_ => {}
}
}

Expand Down
3 changes: 3 additions & 0 deletions tests/target/issue-3645.rs
@@ -0,0 +1,3 @@
mod x {
use super::self as x;
}

0 comments on commit 26d370e

Please sign in to comment.