]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_ty_utils/src/consts.rs
Box `PatKind::Range`.
[rust.git] / compiler / rustc_ty_utils / src / consts.rs
index 6cbccb4bf291e29afce7b7bc2b53749c80f5a82a..bb6b3e1ff5d7482f0700b3d324819ae2df70f3be 100644 (file)
@@ -157,7 +157,7 @@ fn pat_is_poly(&mut self, pat: &thir::Pat<'tcx>) -> bool {
 
                 match pat.kind {
                     thir::PatKind::Constant { value } => value.has_param_types_or_consts(),
-                    thir::PatKind::Range(thir::PatRange { lo, hi, .. }) => {
+                    thir::PatKind::Range(box thir::PatRange { lo, hi, .. }) => {
                         lo.has_param_types_or_consts() || hi.has_param_types_or_consts()
                     }
                     _ => false,