rust-lang / rust

Empowering everyone to build reliable and efficient software.
https://www.rust-lang.org
Other
93.58k stars 12.05k forks source link

Stabilize exclusive_range_pattern (v2) #124749

Closed dtolnay closed 1 week ago

dtolnay commented 1 week ago

This PR is identical to #124459, which was approved and merged but then removed from master by a force-push due to a CI bug.

r? ghost

Original PR description:


Stabilization report: https://github.com/rust-lang/rust/issues/37854#issuecomment-1842398130 FCP: https://github.com/rust-lang/rust/issues/37854#issuecomment-1872520294

Stabilization was blocked by a lint that was merged here: #118879

Documentation PR is here: rust-lang/reference#1484

@rustbot label +F-exclusive_range_pattern +T-lang

rustbot commented 1 week ago

Some changes occurred in src/tools/clippy

cc @rust-lang/clippy

Some changes occurred in exhaustiveness checking

cc @Nadrieril

dtolnay commented 1 week ago

r? Nadrieril

dtolnay commented 1 week ago

We can copy the approval from https://github.com/rust-lang/rust/pull/124459#issuecomment-2094293242, right?

@bors r=davidtwco

bors commented 1 week ago

:pushpin: Commit 57f00ceada25dd17da6b19cf51c735696a9fab6f has been approved by davidtwco

It is now in the queue for this repository.

Nadrieril commented 1 week ago

Thanks for taking care of this!

RossSmyth commented 1 week ago

Thanks!