rust/compiler/rustc_passes/src
bors 9212108a9b 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()`.
2024-01-06 13:51:01 +00:00
..
liveness Match unmatched backticks in compiler/ that are part of rustdoc 2023-03-03 08:39:00 +01:00
abi_test.rs Remove Session methods that duplicate DiagCtxt methods. 2023-12-24 08:05:28 +11:00
check_attr.rs Rename some Diagnostic setters. 2024-01-03 19:40:20 +11:00
check_const.rs Remove Session methods that duplicate DiagCtxt methods. 2023-12-24 08:05:28 +11:00
dead.rs Merge unused_tuple_struct_fields into dead_code 2024-01-02 15:34:37 -05:00
debugger_visualizer.rs Remove Session methods that duplicate DiagCtxt methods. 2023-12-24 08:05:28 +11:00
diagnostic_items.rs Remove Session methods that duplicate DiagCtxt methods. 2023-12-24 08:05:28 +11:00
entry.rs Remove Session methods that duplicate DiagCtxt methods. 2023-12-24 08:05:28 +11:00
errors.rs Rename some Diagnostic setters. 2024-01-03 19:40:20 +11:00
hir_id_validator.rs Remove Session methods that duplicate DiagCtxt methods. 2023-12-24 08:05:28 +11:00
hir_stats.rs banish hir::GenericBound::LangItemTrait 2023-12-15 16:17:27 +00:00
lang_items.rs Remove Session methods that duplicate DiagCtxt methods. 2023-12-24 08:05:28 +11:00
layout_test.rs Remove Session methods that duplicate DiagCtxt methods. 2023-12-24 08:05:28 +11:00
lib.rs Pass DeadItem and lint as consistent group in dead-code. 2023-12-25 13:15:28 +00:00
lib_features.rs Remove Session methods that duplicate DiagCtxt methods. 2023-12-24 08:05:28 +11:00
liveness.rs Auto merge of #119531 - petrochenkov:cmpctxt, r=cjgillot 2024-01-06 13:51:01 +00:00
loops.rs Auto merge of #119258 - compiler-errors:closure-kind, r=eholk 2023-12-26 04:25:53 +00:00
naked_functions.rs Remove Session methods that duplicate DiagCtxt methods. 2023-12-24 08:05:28 +11:00
reachable.rs Move some methods from tcx.hir() to tcx 2023-12-12 06:40:29 -08:00
stability.rs Address review comments and add back some #[inline] attrs from removed commits. 2024-01-04 13:51:06 +01:00
upvars.rs is_coroutine -> is_coroutine_or_closure 2023-12-30 15:24:15 +00:00
weak_lang_items.rs Remove Session methods that duplicate DiagCtxt methods. 2023-12-24 08:05:28 +11:00