Remove an impl and replace its only use with a method call

This commit is contained in:
Oli Scherer
2022-12-02 15:43:08 +00:00
parent 4f593ce5d8
commit 80dcc52934
2 changed files with 1 additions and 7 deletions

View File

@@ -178,12 +178,6 @@ impl RuntimePhase {
}
}
impl Display for MirPhase {
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
f.write_str(self.name())
}
}
/// Where a specific `mir::Body` comes from.
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
#[derive(HashStable, TyEncodable, TyDecodable, TypeFoldable, TypeVisitable)]