Skip to content

Commit e7567f7

Browse files
author
The Miri Cronjob Bot
committed
Merge from rustc
2 parents 9b956df + e278510 commit e7567f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/machine.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,7 @@ impl<'tcx> Machine<'tcx> for MiriMachine<'tcx> {
10811081
ecx: &MiriInterpCx<'tcx>,
10821082
instance: ty::Instance<'tcx>,
10831083
) -> InterpResult<'tcx> {
1084-
let attrs = ecx.tcx.codegen_fn_attrs(instance.def_id());
1084+
let attrs = ecx.tcx.codegen_instance_attrs(instance.def);
10851085
if attrs
10861086
.target_features
10871087
.iter()
@@ -1785,7 +1785,7 @@ impl<'tcx> Machine<'tcx> for MiriMachine<'tcx> {
17851785
ecx.tcx.sess.opts.unstable_opts.cross_crate_inline_threshold,
17861786
InliningThreshold::Always
17871787
) || !matches!(
1788-
ecx.tcx.codegen_fn_attrs(instance.def_id()).inline,
1788+
ecx.tcx.codegen_instance_attrs(instance.def).inline,
17891789
InlineAttr::Never
17901790
);
17911791
!is_generic && !can_be_inlined

0 commit comments

Comments
 (0)