]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_infer/src/infer/region_constraints/mod.rs
Rollup merge of #95368 - lopopolo:lopopolo/string-try-reserve-exact-doc-typo, r=Dylan-DPC
[rust.git] / compiler / rustc_infer / src / infer / region_constraints / mod.rs
index a5bd3b15c8d8f2d890c1f55b04255d384a2d2e57..6966f5014464ed7c63a69e6d7f89bdd1ecd06c9c 100644 (file)
@@ -470,10 +470,8 @@ fn add_verify(&mut self, verify: Verify<'tcx>) {
         debug!("RegionConstraintCollector: add_verify({:?})", verify);
 
         // skip no-op cases known to be satisfied
-        if let VerifyBound::AllBounds(ref bs) = verify.bound {
-            if bs.is_empty() {
-                return;
-            }
+        if let VerifyBound::AllBounds(ref bs) = verify.bound && bs.is_empty() {
+            return;
         }
 
         let index = self.data.verifys.len();