Skip to content

Commit 2d4bf4a

Browse files
committed
!! (WIP) another match tweak
1 parent 02eb09e commit 2d4bf4a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/rustc_ty_utils/src/consts.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,8 @@ impl<'a, 'tcx> IsThirPolymorphic<'a, 'tcx> {
373373

374374
match pat.kind {
375375
thir::PatKind::Constant { value } => value.has_non_region_param(),
376-
thir::PatKind::Range(box thir::PatRange { lo, hi, .. }) => {
376+
thir::PatKind::Range(ref range) => {
377+
let &thir::PatRange { lo, hi, .. } = range.as_ref();
377378
lo.has_non_region_param() || hi.has_non_region_param()
378379
}
379380
_ => false,

0 commit comments

Comments
 (0)