1
Fork 0

adjust super_predicates_that_define_assoc_type query description

This commit is contained in:
Santiago Pastorino 2020-11-22 20:08:00 -03:00
parent 6ab8fe223e
commit b916ac6322
No known key found for this signature in database
GPG key ID: 8131A24E0C79EFAF
8 changed files with 24 additions and 19 deletions

View file

@ -449,7 +449,10 @@ rustc_queries! {
/// full predicates are available (note that supertraits have
/// additional acyclicity requirements).
query super_predicates_that_define_assoc_type(key: (DefId, Option<rustc_span::symbol::Ident>)) -> ty::GenericPredicates<'tcx> {
desc { |tcx| "computing the supertraits of `{}`", tcx.def_path_str(key.0) }
desc { |tcx| "computing the super traits of `{}`{}",
tcx.def_path_str(key.0),
if let Some(assoc_name) = key.1 { format!(" with associated type name `{}`", assoc_name) } else { "".to_string() },
}
}
/// To avoid cycles within the predicates of a single item we compute