about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/json.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2024-02-29 17:08:37 +0100
committerGitHub <noreply@github.com>2024-02-29 17:08:37 +0100
commit2e0a26a32a51faba018d70310869e73b2743c959 (patch)
tree39d6003984b7d34801406e1f8e18ae6bdbea9ab8 /compiler/rustc_errors/src/json.rs
parent9df7f26b1b0b3cfe7dc8224514d1685d11b1e495 (diff)
parent7c6960e289c627bc5533c03769ff45b03a141be9 (diff)
downloadrust-2e0a26a32a51faba018d70310869e73b2743c959.tar.gz
rust-2e0a26a32a51faba018d70310869e73b2743c959.zip
Rollup merge of #121376 - Nadrieril:mir-half-ranges, r=pnkfelix
Skip unnecessary comparison with half-open range patterns

This is the last remaining detail in the implementation of half-open range patterns. Until now, a half-open range pattern like `10..` was converted to `10..T::MAX` before lowering to MIR, which generated an extra pointless comparison. With this PR we don't generate it.
Diffstat (limited to 'compiler/rustc_errors/src/json.rs')
0 files changed, 0 insertions, 0 deletions