Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
f8e50d8
add `guard_patterns` unstable feature, without unstable book chapter …
max-niederman Aug 22, 2024
35bbc45
refactor pat parser method names/doc-comments to agree with RFC 3637
max-niederman Aug 23, 2024
9b8bfed
add guard pattern AST node
max-niederman Aug 22, 2024
a3a29f5
cover guard patterns in rustfmt
max-niederman Oct 7, 2024
f86915a
cover guard patterns in clippy lints
max-niederman Oct 6, 2024
962c014
parse guard patterns
Nadrieril Nov 24, 2024
483f9e2
Fix rustfmt according to review
Nadrieril Nov 24, 2024
120d6b2
Fix: typo in E0751 error explanation
off019 Dec 7, 2024
8aacd1c
compiletest: show the difference between the normalized output and th…
jyn514 Dec 2, 2024
2459dbb
Address review comments
Nadrieril Dec 7, 2024
18d7b9a
Remove unnecessary `int_type_width_signed` function
scottmcm Dec 8, 2024
73b00ca
Document `assign-assign.rs`
jieyouxu Dec 8, 2024
5a79963
Move `assign-assign.rs` to `tests/ui/codegen/assign-expr-unit-type.rs`
jieyouxu Dec 8, 2024
62c3160
Adjust `assign-imm-local-twice.rs`
jieyouxu Dec 8, 2024
5e07f6e
Move `assign-imm-local-twice.rs` to `tests/ui/borrowck/`
jieyouxu Dec 8, 2024
1e3328d
Document `assoc-lang-items.rs`
jieyouxu Dec 8, 2024
6959582
Move `assoc-lang-items.rs` to `tests/ui/lang-items/`
jieyouxu Dec 8, 2024
b815a93
Move `assoc-oddities-3.rs` under `tests/ui/parser/assoc/`
jieyouxu Dec 8, 2024
3a33522
Adjust `assoc-oddities-3.rs`
jieyouxu Dec 8, 2024
1247f01
Move `atomic-from-mut-not-available.rs` to `tests/ui/stdlib-unit-tests/`
jieyouxu Dec 8, 2024
754dec3
Adjust `atomic-from-mut-not-available.rs`
jieyouxu Dec 8, 2024
292fd0f
Adds new intrinsic declaration
aaishwarymishra Dec 7, 2024
dd875ed
deps: Update psm
ognevny Dec 8, 2024
1868c8f
Rollup merge of #133424 - Nadrieril:guard-patterns-parsing, r=fee1-dead
matthiaskrgr Dec 8, 2024
c05e7bd
Rollup merge of #133733 - jyn514:compiletest-diffs, r=jieyouxu
matthiaskrgr Dec 8, 2024
11b0430
Rollup merge of #133993 - LuanOldCode:fix-e0571-typo, r=compiler-errors
matthiaskrgr Dec 8, 2024
fe5f5fd
Rollup merge of #134013 - BLANKatGITHUB:intrinsic, r=saethlin
matthiaskrgr Dec 8, 2024
d619c40
Rollup merge of #134020 - scottmcm:fix-a-fixme, r=jieyouxu
matthiaskrgr Dec 8, 2024
1aab767
Rollup merge of #134024 - jieyouxu:ui-cleanup-2, r=Nadrieril
matthiaskrgr Dec 8, 2024
5b133fe
Rollup merge of #134038 - ognevny:update-psm, r=ChrisDenton
matthiaskrgr Dec 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add guard_patterns unstable feature, without unstable book chapter …
…for now
  • Loading branch information
max-niederman authored and Nadrieril committed Nov 24, 2024
commit f8e50d87368099032e2ae04a1e3c8fca9fdfeee8
2 changes: 2 additions & 0 deletions compiler/rustc_feature/src/unstable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,8 @@ declare_features! (
(incomplete, generic_const_items, "1.73.0", Some(113521)),
/// Allows registering static items globally, possibly across crates, to iterate over at runtime.
(unstable, global_registration, "1.80.0", Some(125119)),
/// Allows using guards in patterns.
(incomplete, guard_patterns, "CURRENT_RUSTC_VERSION", Some(129967)),
/// Allows using `..=X` as a patterns in slices.
(unstable, half_open_range_patterns_in_slices, "1.66.0", Some(67264)),
/// Allows `if let` guard in match arms.
Expand Down
1 change: 1 addition & 0 deletions compiler/rustc_span/src/symbol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -985,6 +985,7 @@ symbols! {
global_registration,
globs,
gt,
guard_patterns,
half_open_range_patterns,
half_open_range_patterns_in_slices,
hash,
Expand Down