diff options
| author | Artur Sinila <personal@logarithmus.dev> | 2022-07-19 02:25:14 +0300 |
|---|---|---|
| committer | Artur Sinila <personal@logarithmus.dev> | 2022-07-19 02:35:48 +0300 |
| commit | c39826e3fac3a3d63a75355d87b6a62ff3cbb8cb (patch) | |
| tree | e373681311ca2585372c968ddb964016302e5976 /compiler/rustc_middle/src | |
| parent | f8588549c3c3d45c32b404210cada01e2a45def3 (diff) | |
| download | rust-c39826e3fac3a3d63a75355d87b6a62ff3cbb8cb.tar.gz rust-c39826e3fac3a3d63a75355d87b6a62ff3cbb8cb.zip | |
feat: omit suffixes in const generics (e.g. `1_i32`)
Closes #99255
Diffstat (limited to 'compiler/rustc_middle/src')
| -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 96e84bc8f0a..5378c63a87d 100644 --- a/compiler/rustc_middle/src/ty/print/pretty.rs +++ b/compiler/rustc_middle/src/ty/print/pretty.rs @@ -1727,7 +1727,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> { |
