Skip to content

Commit 2fbad6d

Browse files
committed
Fix
1 parent 7492b92 commit 2fbad6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_mir_transform/src/cross_crate_inline.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ impl<'tcx> Visitor<'tcx> for CostChecker<'_, 'tcx> {
137137
}
138138
TerminatorKind::Call { ref func, unwind, .. } => {
139139
if let Some((fn_def_id, _)) = func.const_fn_def() {
140-
if self.tcx.has_attr(def_id, sym::rustc_intrinsic) {
140+
if self.tcx.has_attr(fn_def_id, sym::rustc_intrinsic) {
141141
return;
142142
}
143143
}

0 commit comments

Comments
 (0)