Skip to content

Commit 6da88d3

Browse files
committed
Fix compilation for latest nightly
1 parent 56206a7 commit 6da88d3

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/mir.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +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-
&& tcx.item_name(def_id) == sym::const_eval_select
75-
&& tcx.is_intrinsic(def_id) =>
74+
&& matches!(tcx.intrinsic(def_id), Some(sym::const_eval_select)) =>
7675
{
7776
let [tupled_args, called_in_const, called_at_rt]: [_; 3] =
7877
std::mem::take(args).try_into().unwrap();

src/preempt_count/check.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ memoize!(
502502
.predicates
503503
.into_iter()
504504
.filter_map(|(pred, _)| {
505-
pred.subst_supertrait(cx.tcx, &trait_ref).as_trait_clause()
505+
pred.instantiate_supertrait(cx.tcx, &trait_ref).as_trait_clause()
506506
});
507507
for supertrait in super_traits {
508508
if visited.insert(supertrait.to_predicate(cx.tcx)) {

0 commit comments

Comments
 (0)