Various pattern cleanups
This commit is contained in:
parent
fde1b76b4b
commit
2b0c8fff8a
9 changed files with 47 additions and 68 deletions
|
@ -1664,13 +1664,10 @@ impl Debug for Statement<'_> {
|
|||
AscribeUserType(box (ref place, ref c_ty), ref variance) => {
|
||||
write!(fmt, "AscribeUserType({:?}, {:?}, {:?})", place, variance, c_ty)
|
||||
}
|
||||
Coverage(box ref coverage) => {
|
||||
if let Some(rgn) = &coverage.code_region {
|
||||
write!(fmt, "Coverage::{:?} for {:?}", coverage.kind, rgn)
|
||||
} else {
|
||||
write!(fmt, "Coverage::{:?}", coverage.kind)
|
||||
}
|
||||
Coverage(box self::Coverage { ref kind, code_region: Some(ref rgn) }) => {
|
||||
write!(fmt, "Coverage::{:?} for {:?}", kind, rgn)
|
||||
}
|
||||
Coverage(box ref coverage) => write!(fmt, "Coverage::{:?}", coverage.kind),
|
||||
CopyNonOverlapping(box crate::mir::CopyNonOverlapping {
|
||||
ref src,
|
||||
ref dst,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue