Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cb25c5b

Browse files
committedJan 21, 2024
Auto merge of #120187 - Nadrieril:rollup-xfwrb0c, r=Nadrieril
Rollup of 8 pull requests Successful merges: - #116090 (Implement strict integer operations that panic on overflow) - #118811 (Use `bool` instead of `PartiolOrd` as return value of the comparison closure in `{slice,Iteraotr}::is_sorted_by`) - #119081 (Add Ipv6Addr::is_ipv4_mapped) - #119461 (Use an interpreter in MIR jump threading) - #119996 (Move OS String implementation into `sys`) - #120015 (coverage: Format all coverage tests with `rustfmt`) - #120027 (pattern_analysis: Remove `Ty: Copy` bound) - #120084 (fix(rust-analyzer): use new pkgid spec to compare) r? `@ghost` `@rustbot` modify labels: rollup
2 parents 867d39c + 01669d2 commit cb25c5b

File tree

111 files changed

+1687
-421
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+1687
-421
lines changed
 

‎compiler/rustc_mir_build/src/thir/pattern/check_match.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1130,7 +1130,7 @@ fn collect_non_exhaustive_tys<'tcx>(
11301130
non_exhaustive_tys.insert(pat.ty().inner());
11311131
}
11321132
if let Constructor::IntRange(range) = pat.ctor() {
1133-
if cx.is_range_beyond_boundaries(range, pat.ty()) {
1133+
if cx.is_range_beyond_boundaries(range, *pat.ty()) {
11341134
// The range denotes the values before `isize::MIN` or the values after `usize::MAX`/`isize::MAX`.
11351135
non_exhaustive_tys.insert(pat.ty().inner());
11361136
}

‎compiler/rustc_mir_transform/src/jump_threading.rs

Lines changed: 155 additions & 107 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.