diff options
| author | Santiago Pastorino <spastorino@gmail.com> | 2020-10-19 16:26:13 -0300 |
|---|---|---|
| committer | Santiago Pastorino <spastorino@gmail.com> | 2020-10-19 16:26:13 -0300 |
| commit | 9dd0bb6fbc4d14bf5d6bc930b79a6989bbfca8f8 (patch) | |
| tree | 40eca5e85f9dae4c1f55086e8487c2677707b3e4 /compiler | |
| parent | f90e6173053f7e6b377d7f75367b511ceee7d9d1 (diff) | |
| download | rust-9dd0bb6fbc4d14bf5d6bc930b79a6989bbfca8f8.tar.gz rust-9dd0bb6fbc4d14bf5d6bc930b79a6989bbfca8f8.zip | |
Do not print braces again print_anon_const already does it
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_hir_pretty/src/lib.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/compiler/rustc_hir_pretty/src/lib.rs b/compiler/rustc_hir_pretty/src/lib.rs index 4686b4989ae..1cd4ddad578 100644 --- a/compiler/rustc_hir_pretty/src/lib.rs +++ b/compiler/rustc_hir_pretty/src/lib.rs @@ -1138,9 +1138,7 @@ impl<'a> State<'a> { fn print_expr_anon_const(&mut self, anon_const: &hir::AnonConst) { self.ibox(INDENT_UNIT); self.s.word_space("const"); - self.s.word("{"); self.print_anon_const(anon_const); - self.s.word("}"); self.end() } |
