]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_infer/src/infer/glb.rs
Rollup merge of #107598 - chenyukang:yukang/fix-core-bench, r=thomcc
[rust.git] / compiler / rustc_infer / src / infer / glb.rs
index 21b68ce998997a6826645c6ad0036f2af522bb7d..b92b162a9786a652dd51a0e8085251718e8f5a4f 100644 (file)
@@ -79,7 +79,8 @@ fn regions(
         debug!("{}.regions({:?}, {:?})", self.tag(), a, b);
 
         let origin = Subtype(Box::new(self.fields.trace.clone()));
-        Ok(self.fields.infcx.inner.borrow_mut().unwrap_region_constraints().glb_regions(
+        // GLB(&'static u8, &'a u8) == &RegionLUB('static, 'a) u8 == &'static u8
+        Ok(self.fields.infcx.inner.borrow_mut().unwrap_region_constraints().lub_regions(
             self.tcx(),
             origin,
             a,