File tree 1 file changed +3
-6
lines changed
compiler/rustc_mir/src/interpret
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,9 @@ pub trait Machine<'mir, 'tcx>: Sized {
133
133
fn enforce_validity ( ecx : & InterpCx < ' mir , ' tcx , Self > ) -> bool ;
134
134
135
135
/// Whether function calls should be [ABI](Abi)-checked.
136
- fn enforce_abi ( ecx : & InterpCx < ' mir , ' tcx , Self > ) -> bool ;
136
+ fn enforce_abi ( _ecx : & InterpCx < ' mir , ' tcx , Self > ) -> bool {
137
+ true
138
+ }
137
139
138
140
/// Entry point for obtaining the MIR of anything that should get evaluated.
139
141
/// So not just functions and shims, but also const/static initializers, anonymous
@@ -447,11 +449,6 @@ pub macro compile_time_machine(<$mir: lifetime, $tcx: lifetime>) {
447
449
false // for now, we don't enforce validity
448
450
}
449
451
450
- #[ inline( always) ]
451
- fn enforce_abi ( _ecx : & InterpCx < $mir, $tcx, Self > ) -> bool {
452
- true
453
- }
454
-
455
452
#[ inline( always) ]
456
453
fn call_extra_fn (
457
454
_ecx : & mut InterpCx < $mir, $tcx, Self > ,
You can’t perform that action at this time.
0 commit comments