inline format!() args up to and including rustc_middle

This commit is contained in:
Matthias Krüger 2023-07-25 22:00:13 +02:00
parent 2e0136a131
commit 23815467a2
87 changed files with 378 additions and 437 deletions

View file

@ -1052,7 +1052,7 @@ impl<'a> Parser<'a> {
}
components.push(Punct(c));
} else {
panic!("unexpected character in a float token: {:?}", c)
panic!("unexpected character in a float token: {c:?}")
}
}
if !ident_like.is_empty() {
@ -1113,7 +1113,7 @@ impl<'a> Parser<'a> {
self.error_unexpected_after_dot();
DestructuredFloat::Error
}
_ => panic!("unexpected components in a float token: {:?}", components),
_ => panic!("unexpected components in a float token: {components:?}"),
}
}