Skip to content

Commit 7492b92

Browse files
committed
Check differently
1 parent 2501c59 commit 7492b92

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.intrinsic(fn_def_id).is_some() {
140+
if self.tcx.has_attr(def_id, sym::rustc_intrinsic) {
141141
return;
142142
}
143143
}

0 commit comments

Comments
 (0)