mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-28 16:18:53 +00:00
Previously, this method called the more general `pat_constructor` function, which can return other pattern variants besides `IntRange`. Then it throws away any non-`IntRange` variants. Specialize it so work is only done when it could result in an `IntRange`.