feat: omit suffixes in const generics (e.g. 1_i32)

Closes #99255
This commit is contained in:
Artur Sinila
2022-07-19 02:25:14 +03:00
parent f8588549c3
commit c39826e3fa
43 changed files with 179 additions and 170 deletions

View File

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