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 | 9212108a9b32cc381995cf509dd2627123c11a25 (patch) | |
| tree | d2a3a39520e794ffaa0b0d2e6634db03b896d7c8 /tests/codegen/frame-pointer.rs | |
| parent | efb3f1108750ab68c855bafd8caffe5d078b6f75 (diff) | |
| parent | 90d11d64486bc758ee15a1dd5dba351447648097 (diff) | |
| download | rust-9212108a9b32cc381995cf509dd2627123c11a25.tar.gz rust-9212108a9b32cc381995cf509dd2627123c11a25.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/codegen/frame-pointer.rs')
0 files changed, 0 insertions, 0 deletions
