rust/compiler/rustc_ty_utils/src
Trevor Gross a20fe8ff23
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`
2025-04-29 12:28:22 -04:00
..
layout rename BackendRepr::Vector → SimdVector 2025-02-28 17:17:45 +01:00
abi.rs AsyncDrop implementation using shim codegen of async_drop_in_place::{closure}, scoped async drop added. 2025-04-28 16:23:13 +07:00
assoc.rs Move name field from AssocItem to AssocKind variants. 2025-04-15 08:07:15 +10:00
common_traits.rs AsyncDrop implementation using shim codegen of async_drop_in_place::{closure}, scoped async drop added. 2025-04-28 16:23:13 +07:00
consts.rs Implement .use keyword as an alias of clone 2025-03-06 17:58:32 -03:00
errors.rs Implement .use keyword as an alias of clone 2025-03-06 17:58:32 -03:00
implied_bounds.rs Auto merge of #139552 - matthiaskrgr:rollup-b194mk8, r=matthiaskrgr 2025-04-09 05:39:18 +00:00
instance.rs AsyncDrop implementation using shim codegen of async_drop_in_place::{closure}, scoped async drop added. 2025-04-28 16:23:13 +07:00
layout.rs Rollup merge of #139909 - oli-obk:or-patterns, r=BoxyUwU 2025-04-29 12:28:22 -04:00
lib.rs Rollup merge of #140202 - est31:let_chains_feature_compiler, r=lcnr 2025-04-25 07:50:25 +02:00
needs_drop.rs AsyncDrop implementation using shim codegen of async_drop_in_place::{closure}, scoped async drop added. 2025-04-28 16:23:13 +07:00
opaque_types.rs Remove weak alias terminology 2025-04-24 11:59:20 +01:00
representability.rs rename BitSet to DenseBitSet 2025-01-11 11:34:01 +00:00
sig_types.rs Restrict some queries by def-kind more 2025-04-07 18:10:28 +00:00
stalled_generators.rs More 2025-04-23 15:09:25 +00:00
structural_match.rs TypingMode 🤔 2024-10-29 17:01:24 +01:00
ty.rs Use a query rather than recomputing the tail repeatedly 2025-04-09 20:26:58 +00:00