print const and type errors in braces not square brackets

This commit is contained in:
Boxy 2023-05-26 16:01:23 +01:00
parent 1221e43bdf
commit ad77bc8427
6 changed files with 11 additions and 11 deletions

View file

@ -1159,7 +1159,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
// those that do.
self.one_bound_for_assoc_type(
|| traits::supertraits(tcx, trait_ref),
trait_ref.print_only_trait_path(),
trait_ref.skip_binder().print_only_trait_name(),
binding.item_name,
path_span,
match binding.kind {