1
Fork 0

Rollup merge of #56336 - nnethercote:clean-up-pp, r=nikomatsakis

Clean up and streamline the pretty-printer

Some minor improvements.
This commit is contained in:
kennytm 2018-12-01 01:05:59 +08:00
commit bdb901c865
No known key found for this signature in database
GPG key ID: FEF6C8051D0E013C
7 changed files with 254 additions and 232 deletions

View file

@ -2791,7 +2791,7 @@ impl<'a> Parser<'a> {
s.print_usize(float.trunc() as usize)?;
s.pclose()?;
s.s.word(".")?;
s.s.word(fstr.splitn(2, ".").last().unwrap())
s.s.word(fstr.splitn(2, ".").last().unwrap().to_string())
});
err.span_suggestion_with_applicability(
lo.to(self.prev_span),