move Constness into TraitPredicate
This commit is contained in:
@@ -124,7 +124,7 @@ impl Elaborator<'tcx> {
|
||||
|
||||
let bound_predicate = obligation.predicate.kind();
|
||||
match bound_predicate.skip_binder() {
|
||||
ty::PredicateKind::Trait(data, _) => {
|
||||
ty::PredicateKind::Trait(data) => {
|
||||
// Get predicates declared on the trait.
|
||||
let predicates = tcx.super_predicates_of(data.def_id());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user