diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2024-08-03 20:59:02 +1000 | 
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2024-08-11 19:57:30 +1000 | 
| commit | 2b6f4386ebdedd62a093577dafe5082e4f63b316 (patch) | |
| tree | ec6d4b75d23e47d77744565b0c0803f9d86c91dd /compiler/rustc_pattern_analysis/src/rustc.rs | |
| parent | 9952e4d4c8ba5def2861e1a39af61506f0a91655 (diff) | |
| download | rust-2b6f4386ebdedd62a093577dafe5082e4f63b316.tar.gz rust-2b6f4386ebdedd62a093577dafe5082e4f63b316.zip | |
Remove `PatKind::Range`
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/rustc.rs')
| -rw-r--r-- | compiler/rustc_pattern_analysis/src/rustc.rs | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/compiler/rustc_pattern_analysis/src/rustc.rs b/compiler/rustc_pattern_analysis/src/rustc.rs index 9bd17b822af..d7c14348b1b 100644 --- a/compiler/rustc_pattern_analysis/src/rustc.rs +++ b/compiler/rustc_pattern_analysis/src/rustc.rs @@ -807,7 +807,7 @@ impl<'p, 'tcx: 'p> RustcPatCtxt<'p, 'tcx> { range.hi }; let hi = cx.hoist_pat_range_bdy(hi, ty); - PatKind::Range(Box::new(PatRange { lo, hi, end, ty: ty.inner() })) + PatKind::Print(PatRange { lo, hi, end, ty: ty.inner() }.to_string()) }; Pat { ty: ty.inner(), kind } | 
