diff options
| author | Boxy <supbscripter@gmail.com> | 2023-05-26 16:01:23 +0100 |
|---|---|---|
| committer | Boxy <supbscripter@gmail.com> | 2023-05-26 16:01:29 +0100 |
| commit | ad77bc8427cb181a4f0e61ba0f85c793139f9512 (patch) | |
| tree | 5e45f9705aebb03489877a439747ccaadbe4b7bc /compiler/rustc_hir_analysis | |
| parent | 1221e43bdf413f7c405e9b17ef19d76c88222098 (diff) | |
| download | rust-ad77bc8427cb181a4f0e61ba0f85c793139f9512.tar.gz rust-ad77bc8427cb181a4f0e61ba0f85c793139f9512.zip | |
print const and type errors in braces not square brackets
Diffstat (limited to 'compiler/rustc_hir_analysis')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/astconv/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/astconv/mod.rs b/compiler/rustc_hir_analysis/src/astconv/mod.rs index 5fb06cf9465..2c60a062460 100644 --- a/compiler/rustc_hir_analysis/src/astconv/mod.rs +++ b/compiler/rustc_hir_analysis/src/astconv/mod.rs @@ -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 { |
