diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-07-22 11:53:40 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-22 11:53:40 +0530 |
| commit | 449ffe0bd57f6af144f3d04d35a1613bf7760534 (patch) | |
| tree | 11c3afe82458d1e30cd46453a66a6aa14f46a920 /compiler | |
| parent | 6e3dd69e36d42318f1c930de57858109bfc1730c (diff) | |
| parent | 8530407e311dae1f6b735ed09727cc592b29f522 (diff) | |
| download | rust-449ffe0bd57f6af144f3d04d35a1613bf7760534.tar.gz rust-449ffe0bd57f6af144f3d04d35a1613bf7760534.zip | |
Rollup merge of #99393 - Logarithmus:feature/99255-omit-const-generic-suffixes, r=petrochenkov
feat: omit suffixes in const generics (e.g. `1_i32`) Closes #99255
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_middle/src/ty/print/pretty.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/ty/print/pretty.rs b/compiler/rustc_middle/src/ty/print/pretty.rs index 09b9c806691..03bb515904c 100644 --- a/compiler/rustc_middle/src/ty/print/pretty.rs +++ b/compiler/rustc_middle/src/ty/print/pretty.rs @@ -1729,7 +1729,7 @@ impl<'tcx> Printer<'tcx> for FmtPrinter<'_, 'tcx> { } fn print_const(self, ct: ty::Const<'tcx>) -> Result<Self::Const, Self::Error> { - self.pretty_print_const(ct, true) + self.pretty_print_const(ct, false) } fn path_crate(mut self, cnum: CrateNum) -> Result<Self::Path, Self::Error> { |
