Skip to content

Commit 7da1bfc

Browse files
committed
Fix tcx.intrinsic api change
1 parent 277cb26 commit 7da1bfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mir.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ fn remap_mir_for_const_eval_select<'tcx>(
7171
fn_span,
7272
..
7373
} if let ty::FnDef(def_id, _) = *const_.ty().kind()
74-
&& matches!(tcx.intrinsic(def_id), Some(sym::const_eval_select)) =>
74+
&& tcx.is_intrinsic(def_id, sym::const_eval_select) =>
7575
{
7676
let [tupled_args, called_in_const, called_at_rt]: [_; 3] =
7777
std::mem::take(args).try_into().unwrap();

0 commit comments

Comments
 (0)