mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 05:26:23 +03:00
fix: qualify NormalizesTo and CoercePredicate in ir_print debug output
This commit is contained in:
@@ -188,7 +188,7 @@ fn print_debug(
|
||||
t: &ty::NormalizesTo<Self>,
|
||||
fmt: &mut std::fmt::Formatter<'_>,
|
||||
) -> std::fmt::Result {
|
||||
write!(fmt, "{} -> {:?}", t.alias, t.term)
|
||||
write!(fmt, "NormalizesTo({} -> {:?})", t.alias, t.term)
|
||||
}
|
||||
}
|
||||
impl<'db> IrPrint<ty::SubtypePredicate<Self>> for DbInterner<'db> {
|
||||
@@ -215,7 +215,7 @@ fn print_debug(
|
||||
t: &ty::CoercePredicate<Self>,
|
||||
fmt: &mut std::fmt::Formatter<'_>,
|
||||
) -> std::fmt::Result {
|
||||
write!(fmt, "{:?} -> {:?}", t.a, t.b)
|
||||
write!(fmt, "CoercePredicate({:?} -> {:?})", t.a, t.b)
|
||||
}
|
||||
}
|
||||
impl<'db> IrPrint<ty::FnSig<Self>> for DbInterner<'db> {
|
||||
|
||||
Reference in New Issue
Block a user