We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
continue
1 parent e23bdd6 commit a07011bCopy full SHA for a07011b
compiler/rustc_borrowck/src/prefixes.rs
@@ -53,7 +53,7 @@ impl<'tcx> Iterator for Prefixes<'tcx> {
53
// may hold one further down (e.g., we never return
54
// downcasts here, but may return a base of a downcast).
55
56
- 'cursor: loop {
+ loop {
57
match cursor.last_projection() {
58
None => {
59
self.next = None;
@@ -72,7 +72,6 @@ impl<'tcx> Iterator for Prefixes<'tcx> {
72
| ProjectionElem::ConstantIndex { .. }
73
| ProjectionElem::Index(_) => {
74
cursor = cursor_base;
75
- continue 'cursor;
76
}
77
ProjectionElem::Subtype(..) => {
78
panic!("Subtype projection is not allowed before borrow check")
0 commit comments