diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2022-12-06 13:45:11 +0000 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2022-12-06 13:45:11 +0000 |
| commit | 12ce0c2a891d872c8fb32eb17b6258ea99a971ad (patch) | |
| tree | e483f85769f0915de7ccadb6f97a8cbc90925e2a /compiler/rustc_hir_pretty/src | |
| parent | c5351ad4dcd9f3d73241b2acbfc6b4631da845c5 (diff) | |
| download | rust-12ce0c2a891d872c8fb32eb17b6258ea99a971ad.tar.gz rust-12ce0c2a891d872c8fb32eb17b6258ea99a971ad.zip | |
Remove outdated syntax from trait alias pretty printing
Diffstat (limited to 'compiler/rustc_hir_pretty/src')
| -rw-r--r-- | compiler/rustc_hir_pretty/src/lib.rs | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/compiler/rustc_hir_pretty/src/lib.rs b/compiler/rustc_hir_pretty/src/lib.rs index 3791b2c8661..94bab9f339d 100644 --- a/compiler/rustc_hir_pretty/src/lib.rs +++ b/compiler/rustc_hir_pretty/src/lib.rs @@ -695,19 +695,8 @@ impl<'a> State<'a> { self.head("trait"); self.print_ident(item.ident); self.print_generic_params(generics.params); - let mut real_bounds = Vec::with_capacity(bounds.len()); - // FIXME(durka) this seems to be some quite outdated syntax - for b in bounds { - if let GenericBound::Trait(ptr, hir::TraitBoundModifier::Maybe) = b { - self.space(); - self.word_space("for ?"); - self.print_trait_ref(&ptr.trait_ref); - } else { - real_bounds.push(b); - } - } self.nbsp(); - self.print_bounds("=", real_bounds); + self.print_bounds("=", bounds); self.print_where_clause(generics); self.word(";"); self.end(); // end inner head-block |
