mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
Remove unnecessary continue
.
This commit is contained in:
parent
e23bdd68f9
commit
a07011bde2
@ -53,7 +53,7 @@ impl<'tcx> Iterator for Prefixes<'tcx> {
|
||||
// may hold one further down (e.g., we never return
|
||||
// downcasts here, but may return a base of a downcast).
|
||||
|
||||
'cursor: loop {
|
||||
loop {
|
||||
match cursor.last_projection() {
|
||||
None => {
|
||||
self.next = None;
|
||||
@ -72,7 +72,6 @@ impl<'tcx> Iterator for Prefixes<'tcx> {
|
||||
| ProjectionElem::ConstantIndex { .. }
|
||||
| ProjectionElem::Index(_) => {
|
||||
cursor = cursor_base;
|
||||
continue 'cursor;
|
||||
}
|
||||
ProjectionElem::Subtype(..) => {
|
||||
panic!("Subtype projection is not allowed before borrow check")
|
||||
|
Loading…
Reference in New Issue
Block a user