diff options
| author | bors <bors@rust-lang.org> | 2024-08-04 14:36:24 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-08-04 14:36:24 +0000 |
| commit | ab1527f1d6560168f9fd36fa8cd7ba677c1d36ad (patch) | |
| tree | 24f0032a8dd7d61ce9b20ebc94c53f93982a2bb0 /compiler/rustc_trait_selection/src | |
| parent | ebd08d8ed5c8904de8700def78adc1dbd5727684 (diff) | |
| parent | f850e37119eac6489ae6d9983631f2c702a4887f (diff) | |
| download | rust-ab1527f1d6560168f9fd36fa8cd7ba677c1d36ad.tar.gz rust-ab1527f1d6560168f9fd36fa8cd7ba677c1d36ad.zip | |
Auto merge of #128544 - compiler-errors:perf-warn_if_unreachable, r=fmease
Check divergence value first before doing span operations in `warn_if_unreachable` It's more expensive to extract the span's desugaring first rather than check the value of the divergence enum. For some reason I inverted these checks, probably for readability, but as a consequence I regressed perf: https://github.com/rust-lang/rust/pull/128443#issuecomment-2265425016 r? fmease
Diffstat (limited to 'compiler/rustc_trait_selection/src')
0 files changed, 0 insertions, 0 deletions
