diff options
| author | bors <bors@rust-lang.org> | 2024-01-06 13:51:01 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-01-06 13:51:01 +0000 |
| commit | d1b8d9c79f08b867483e02dc0e27dde4e30624be (patch) | |
| tree | f991fc2993822b0c71d5ce104349c997040f996f /tests/debuginfo/enum-thinlto.rs | |
| parent | 84c4b5255cbe37098a4b4dfa3a5cf12d67ac31f4 (diff) | |
| parent | e10a05dff3f278f89dc4bce7fb9cbafc40767d49 (diff) | |
| download | rust-d1b8d9c79f08b867483e02dc0e27dde4e30624be.tar.gz rust-d1b8d9c79f08b867483e02dc0e27dde4e30624be.zip | |
Auto merge of #119531 - petrochenkov:cmpctxt, r=cjgillot
rustc_span: Optimize syntax context comparisons Including comparisons with root context. - `eq_ctxt` doesn't require retrieving full `SpanData`, or taking the span interner lock twice. - Checking `SyntaxContext` for "rootness" is cheaper than extracting a full outer `ExpnData` for it and checking *it* for rootness. The internal lint for `eq_ctxt` is also tweaked to detect `a.ctxt() != b.ctxt()` in addition to `a.ctxt() == b.ctxt()`.
Diffstat (limited to 'tests/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions
