Skip to content

Commit a07011b

Browse files
committed
Remove unnecessary continue.
1 parent e23bdd6 commit a07011b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/rustc_borrowck/src/prefixes.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ impl<'tcx> Iterator for Prefixes<'tcx> {
5353
// may hold one further down (e.g., we never return
5454
// downcasts here, but may return a base of a downcast).
5555

56-
'cursor: loop {
56+
loop {
5757
match cursor.last_projection() {
5858
None => {
5959
self.next = None;
@@ -72,7 +72,6 @@ impl<'tcx> Iterator for Prefixes<'tcx> {
7272
| ProjectionElem::ConstantIndex { .. }
7373
| ProjectionElem::Index(_) => {
7474
cursor = cursor_base;
75-
continue 'cursor;
7675
}
7776
ProjectionElem::Subtype(..) => {
7877
panic!("Subtype projection is not allowed before borrow check")

0 commit comments

Comments
 (0)