Skip to content

Commit

Permalink
Remove without_const
Browse files Browse the repository at this point in the history
  • Loading branch information
nbdd0121 committed Aug 4, 2023
1 parent 155a128 commit 0811fab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/preempt_count/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ memoize!(
assert!(!poly_trait_ref.has_escaping_bound_vars());

let mut visited = PredicateSet::new(cx.tcx);
let predicate = poly_trait_ref.without_const().to_predicate(cx.tcx);
let predicate = poly_trait_ref.to_predicate(cx.tcx);
let mut stack: Vec<ty::PolyTraitRef<'tcx>> = vec![poly_trait_ref];
visited.insert(predicate);

Expand Down

0 comments on commit 0811fab

Please sign in to comment.