We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b9adbe commit 10d0800Copy full SHA for 10d0800
compiler/rustc_trait_selection/src/traits/vtable.rs
@@ -276,11 +276,7 @@ fn vtable_entries<'tcx>(
276
// do not hold for this particular set of type parameters.
277
// Note that this method could then never be called, so we
278
// do not want to try and codegen it, in that case (see #23435).
279
- let predicates = tcx.predicates_of(def_id).instantiate_own(tcx, args);
280
- if impossible_predicates(
281
- tcx,
282
- predicates.map(|(predicate, _)| predicate).collect(),
283
- ) {
+ if tcx.instantiate_and_check_impossible_predicates((def_id, args)) {
284
debug!("vtable_entries: predicates do not hold");
285
return VtblEntry::Vacant;
286
}
0 commit comments