about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src/errors.rs
diff options
context:
space:
mode:
authorTrevor Gross <t.gross35@gmail.com>2025-04-29 12:28:22 -0400
committerGitHub <noreply@github.com>2025-04-29 12:28:22 -0400
commit6d589103e9e59aebca719a89575784244e39c8b2 (patch)
treefc3e05f621aaaf19dc882b52f4e01407e601ad9c /compiler/rustc_pattern_analysis/src/errors.rs
parentd1722043a5b3199954501d741f25fc4f49b02745 (diff)
parentbca637ce5d1745ecee0d510dfed5bc24dd30d194 (diff)
downloadrust-6d589103e9e59aebca719a89575784244e39c8b2.tar.gz
rust-6d589103e9e59aebca719a89575784244e39c8b2.zip
Rollup merge of #139909 - oli-obk:or-patterns, r=BoxyUwU
implement or-patterns for pattern types

These are necessary to represent `NonZeroI32`, as the range for that is `..0 | 1..`. The `rustc_scalar_layout_range_*` attributes avoided this by just implementing wraparound and having a single `1..=-1` range effectively. See https://rust-lang.zulipchat.com/#narrow/channel/481660-t-lang.2Fpattern-types/topic/.60or.20pattern.60.20representation.20in.20type.20system/with/504217694 for some background discussion

cc https://github.com/rust-lang/rust/issues/123646

r? `@BoxyUwU`
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/errors.rs')
0 files changed, 0 insertions, 0 deletions