inline format!() args up to and including rustc_middle
This commit is contained in:
parent
2e0136a131
commit
23815467a2
87 changed files with 378 additions and 437 deletions
|
@ -249,9 +249,9 @@ impl<'tcx> LayoutError<'tcx> {
|
|||
impl<'tcx> fmt::Display for LayoutError<'tcx> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
match *self {
|
||||
LayoutError::Unknown(ty) => write!(f, "the type `{}` has an unknown layout", ty),
|
||||
LayoutError::Unknown(ty) => write!(f, "the type `{ty}` has an unknown layout"),
|
||||
LayoutError::SizeOverflow(ty) => {
|
||||
write!(f, "values of the type `{}` are too big for the current architecture", ty)
|
||||
write!(f, "values of the type `{ty}` are too big for the current architecture")
|
||||
}
|
||||
LayoutError::NormalizationFailure(t, e) => write!(
|
||||
f,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue