Remove an impl and replace its only use with a method call
This commit is contained in:
parent
4f593ce5d8
commit
80dcc52934
2 changed files with 1 additions and 7 deletions
|
@ -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.
|
/// Where a specific `mir::Body` comes from.
|
||||||
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
|
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
|
||||||
#[derive(HashStable, TyEncodable, TyDecodable, TypeFoldable, TypeVisitable)]
|
#[derive(HashStable, TyEncodable, TyDecodable, TypeFoldable, TypeVisitable)]
|
||||||
|
|
|
@ -143,7 +143,7 @@ fn run_passes_inner<'tcx>(
|
||||||
|
|
||||||
dump_mir_for_phase_change(tcx, body);
|
dump_mir_for_phase_change(tcx, body);
|
||||||
if validate || new_phase == MirPhase::Runtime(RuntimePhase::Optimized) {
|
if validate || new_phase == MirPhase::Runtime(RuntimePhase::Optimized) {
|
||||||
validate_body(tcx, body, format!("after phase change to {}", new_phase));
|
validate_body(tcx, body, format!("after phase change to {}", new_phase.name()));
|
||||||
}
|
}
|
||||||
|
|
||||||
body.pass_count = 1;
|
body.pass_count = 1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue