We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
print::PatKind::Print
1 parent 0a77709 commit f53eb27Copy full SHA for f53eb27
compiler/rustc_pattern_analysis/src/rustc/print.rs
@@ -62,6 +62,8 @@ pub(crate) enum PatKind<'tcx> {
62
},
63
64
Never,
65
+
66
+ Print(String),
67
}
68
69
impl<'tcx> fmt::Display for Pat<'tcx> {
@@ -79,6 +81,7 @@ impl<'tcx> fmt::Display for Pat<'tcx> {
79
81
PatKind::Slice { ref prefix, has_dot_dot, ref suffix } => {
80
82
write_slice_like(f, prefix, has_dot_dot, suffix)
83
84
+ PatKind::Print(ref string) => write!(f, "{string}"),
85
86
87
0 commit comments