Skip to content

Commit 9675a3d

Browse files
authored
Merge pull request #4478 from rust-lang/rustup-2025-07-19
Automatic Rustup
2 parents d18fa1c + e7567f7 commit 9675a3d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
e4662966273ed58b51f9ff8d682accc202aa1210
1+
ebd8557637b33cc09b6ee8273f3154d5d3af6a15

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)