about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/interpret/eval_context.rs
diff options
context:
space:
mode:
authorDeadbeef <ent3rm4n@gmail.com>2025-07-07 19:56:56 +0800
committerDeadbeef <ent3rm4n@gmail.com>2025-07-07 19:57:04 +0800
commitbe6cd11d1be706bddbf32c0344e3248c0fb84eaa (patch)
tree47542a46290c6b9370890826056a612e8420e13b /compiler/rustc_const_eval/src/interpret/eval_context.rs
parent75d5834a6c571cb0455acb5128ad51118fcbf2be (diff)
downloadrust-be6cd11d1be706bddbf32c0344e3248c0fb84eaa.tar.gz
rust-be6cd11d1be706bddbf32c0344e3248c0fb84eaa.zip
make `Machine::load_mir` infallible
it doesn't need to return an `InterpResult`.
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret/eval_context.rs')
-rw-r--r--compiler/rustc_const_eval/src/interpret/eval_context.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/eval_context.rs b/compiler/rustc_const_eval/src/interpret/eval_context.rs
index 46c784b41c6..068d6369f87 100644
--- a/compiler/rustc_const_eval/src/interpret/eval_context.rs
+++ b/compiler/rustc_const_eval/src/interpret/eval_context.rs
@@ -272,7 +272,7 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
             let def = instance.def_id();
             &self.tcx.promoted_mir(def)[promoted]
         } else {
-            M::load_mir(self, instance)?
+            M::load_mir(self, instance)
         };
         // do not continue if typeck errors occurred (can only occur in local crate)
         if let Some(err) = body.tainted_by_errors {