Remove PatKind::Box
This commit is contained in:
parent
ed3e38f336
commit
15cc0e1b5c
2 changed files with 1 additions and 6 deletions
|
@ -832,7 +832,7 @@ impl<'p, 'tcx: 'p> RustcPatCtxt<'p, 'tcx> {
|
|||
Struct if pat.ty().is_box() => {
|
||||
// Outside of the `alloc` crate, the only way to create a struct pattern
|
||||
// of type `Box` is to use a `box` pattern via #[feature(box_patterns)].
|
||||
PatKind::Box { subpattern: hoist(&pat.fields[0]) }
|
||||
PatKind::Print(format!("box {}", hoist(&pat.fields[0])))
|
||||
}
|
||||
Struct | Variant(_) | UnionField => {
|
||||
let enum_info = match *pat.ty().kind() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue