1
Fork 0

Allow to use super trait bounds in where clauses

This commit is contained in:
Santiago Pastorino 2020-11-03 17:07:18 -03:00
parent 361543d776
commit 24dcf6f7a2
No known key found for this signature in database
GPG key ID: 8131A24E0C79EFAF
6 changed files with 167 additions and 23 deletions

View file

@ -438,7 +438,7 @@ rustc_queries! {
/// To avoid cycles within the predicates of a single item we compute
/// per-type-parameter predicates for resolving `T::AssocTy`.
query type_param_predicates(key: (DefId, LocalDefId)) -> ty::GenericPredicates<'tcx> {
query type_param_predicates(key: (DefId, LocalDefId, rustc_span::symbol::Ident)) -> ty::GenericPredicates<'tcx> {
desc { |tcx| "computing the bounds for type parameter `{}`", {
let id = tcx.hir().local_def_id_to_hir_id(key.1);
tcx.hir().ty_param_name(id)