about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2025-01-30 14:25:13 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2025-01-31 08:28:28 +1100
commit4e2ef694f357d527eaa7e5982c914ebb32559b4c (patch)
treeceffeb411a5f80cbd6401390100d98011f3378bf
parentd8be00fd44f6d152494ea23734fe692abd47cf36 (diff)
downloadrust-4e2ef694f357d527eaa7e5982c914ebb32559b4c.tar.gz
rust-4e2ef694f357d527eaa7e5982c914ebb32559b4c.zip
Remove an unnecessary loop label.
-rw-r--r--compiler/rustc_hir_analysis/src/outlives/implicit_infer.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_hir_analysis/src/outlives/implicit_infer.rs b/compiler/rustc_hir_analysis/src/outlives/implicit_infer.rs
index c2377b4781c..036163b9f14 100644
--- a/compiler/rustc_hir_analysis/src/outlives/implicit_infer.rs
+++ b/compiler/rustc_hir_analysis/src/outlives/implicit_infer.rs
@@ -24,7 +24,7 @@ pub(super) fn infer_predicates(
 
     // If new predicates were added then we need to re-calculate
     // all crates since there could be new implied predicates.
-    'outer: loop {
+    loop {
         let mut predicates_added = false;
 
         // Visit all the crates and infer predicates
@@ -90,7 +90,7 @@ pub(super) fn infer_predicates(
         }
 
         if !predicates_added {
-            break 'outer;
+            break;
         }
     }