1
Fork 0

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
This commit is contained in:
Dylan DPC 2022-07-22 11:53:40 +05:30 committed by GitHub
commit 449ffe0bd5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
48 changed files with 189 additions and 180 deletions

View file

@ -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> {