]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_mir/src/borrow_check/type_check/mod.rs
Shrink the size of Rvalue by 16 bytes
[rust.git] / compiler / rustc_mir / src / borrow_check / type_check / mod.rs
index f64848e694ccac0d8f8cb35bf3138fdff29c4d6e..4819e12517d2f77d15c75f95f86b1f74252bc8c9 100644 (file)
@@ -1734,7 +1734,10 @@ fn check_call_dest(
                 }
             }
             None => {
-                if !sig.output().conservative_is_privately_uninhabited(self.tcx()) {
+                if !self
+                    .tcx()
+                    .conservative_is_privately_uninhabited(self.param_env.and(sig.output()))
+                {
                     span_mirbug!(self, term, "call to converging function {:?} w/o dest", sig);
                 }
             }
@@ -2296,8 +2299,7 @@ fn check_rvalue(&mut self, body: &Body<'tcx>, rvalue: &Rvalue<'tcx>, location: L
 
             Rvalue::BinaryOp(
                 BinOp::Eq | BinOp::Ne | BinOp::Lt | BinOp::Le | BinOp::Gt | BinOp::Ge,
-                left,
-                right,
+                box (left, right),
             ) => {
                 let ty_left = left.ty(body, tcx);
                 match ty_left.kind() {