Remove unnecessary continue
.
This commit is contained in:
parent
e23bdd68f9
commit
a07011bde2
1 changed files with 1 additions and 2 deletions
|
@ -53,7 +53,7 @@ impl<'tcx> Iterator for Prefixes<'tcx> {
|
||||||
// may hold one further down (e.g., we never return
|
// may hold one further down (e.g., we never return
|
||||||
// downcasts here, but may return a base of a downcast).
|
// downcasts here, but may return a base of a downcast).
|
||||||
|
|
||||||
'cursor: loop {
|
loop {
|
||||||
match cursor.last_projection() {
|
match cursor.last_projection() {
|
||||||
None => {
|
None => {
|
||||||
self.next = None;
|
self.next = None;
|
||||||
|
@ -72,7 +72,6 @@ impl<'tcx> Iterator for Prefixes<'tcx> {
|
||||||
| ProjectionElem::ConstantIndex { .. }
|
| ProjectionElem::ConstantIndex { .. }
|
||||||
| ProjectionElem::Index(_) => {
|
| ProjectionElem::Index(_) => {
|
||||||
cursor = cursor_base;
|
cursor = cursor_base;
|
||||||
continue 'cursor;
|
|
||||||
}
|
}
|
||||||
ProjectionElem::Subtype(..) => {
|
ProjectionElem::Subtype(..) => {
|
||||||
panic!("Subtype projection is not allowed before borrow check")
|
panic!("Subtype projection is not allowed before borrow check")
|
||||||
|
|
Loading…
Add table
Reference in a new issue