Fix rustc_pass_by_value.

This commit is contained in:
Camille GILLOT 2022-11-06 14:34:38 +00:00
parent 1c737d6997
commit 5de9c84140
2 changed files with 2 additions and 2 deletions

View file

@ -132,7 +132,7 @@ impl LifetimeName {
impl fmt::Display for Lifetime {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
self.ident.fmt(f)
if self.ident.name != kw::Empty { self.ident.name.fmt(f) } else { "'_".fmt(f) }
}
}