mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-21 22:34:05 +00:00
Add print::PatKind::Print
This will allow for the gradual removal of all other variants.
This commit is contained in:
parent
0a777090d8
commit
f53eb2724d
@ -62,6 +62,8 @@ pub(crate) enum PatKind<'tcx> {
|
||||
},
|
||||
|
||||
Never,
|
||||
|
||||
Print(String),
|
||||
}
|
||||
|
||||
impl<'tcx> fmt::Display for Pat<'tcx> {
|
||||
@ -79,6 +81,7 @@ impl<'tcx> fmt::Display for Pat<'tcx> {
|
||||
PatKind::Slice { ref prefix, has_dot_dot, ref suffix } => {
|
||||
write_slice_like(f, prefix, has_dot_dot, suffix)
|
||||
}
|
||||
PatKind::Print(ref string) => write!(f, "{string}"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user