diff options
| author | bors <bors@rust-lang.org> | 2023-05-19 01:13:08 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-05-19 01:13:08 +0000 |
| commit | 1e8d2c59bcdf34ae19677cb10f0ce435224f324f (patch) | |
| tree | e5f20d63c7ed387b380fe27d51f2f65738e16a87 /compiler/rustc_mir_transform/src | |
| parent | 392e9551d422f40a3077e31ea04fd81134bbeed1 (diff) | |
| parent | 58132cb3b0ddadc2004a121f0bd85d12bf089ff6 (diff) | |
| download | rust-1e8d2c59bcdf34ae19677cb10f0ce435224f324f.tar.gz rust-1e8d2c59bcdf34ae19677cb10f0ce435224f324f.zip | |
Auto merge of #10478 - Jarcho:block_eq, r=xFrednet
`SpanlessEq` improvements
fixes #9775
Also includes a simplification to `consts::constant`'s interface since I was already touching the code.
At the start of `eq_expr` the check:
```rust
if !self.inner.allow_side_effects && left.span.ctxt() != right.span.ctxt() {
return false;
}
```
was removed. This was added in 49e2501 to handle `cfg` macros. This is better handled by the newly added `check_ctxt`.
changelog: [various lints]: Don't consider different `cfg!` expansions to be the same unless they are for the same config.
changelog: [various lints]: Don't consider the expansion of two different macros to be equal, even when they expand to the same token sequence.
changelog: [various lints]: Don't consider two blocks to be equal if they contain disabled code or empty macro expansions, unless those section contain the exact same token sequence.
Diffstat (limited to 'compiler/rustc_mir_transform/src')
0 files changed, 0 insertions, 0 deletions
