rust/compiler/rustc_passes/src
Nilstrieb 5706be1854 Improve spans for indexing expressions
Indexing is similar to method calls in having an arbitrary
left-hand-side and then something on the right, which is the main part
of the expression. Method calls already have a span for that right part,
but indexing does not. This means that long method chains that use
indexing have really bad spans, especially when the indexing panics and
that span in coverted into a panic location.

This does the same thing as method calls for the AST and HIR, storing an
extra span which is then put into the `fn_span` field in THIR.
2023-08-04 13:17:39 +02:00
..
liveness Match unmatched backticks in compiler/ that are part of rustdoc 2023-03-03 08:39:00 +01:00
check_attr.rs validate doc(masked) 2023-07-24 18:04:35 +02:00
check_const.rs inline format!() args from rustc_codegen_llvm to the end (4) 2023-07-25 23:20:28 +02:00
dead.rs Rollup merge of #113698 - compiler-errors:rpitit-check, r=spastorino 2023-07-14 19:33:29 +02:00
debugger_visualizer.rs Don't sort output of debugger_visualizer query because it already is in deterministic order. 2023-05-17 16:02:22 +02:00
diagnostic_items.rs Move expansion of query macros in rustc_middle to rustc_middle::query 2023-05-15 08:49:13 +02:00
entry.rs Move expansion of query macros in rustc_middle to rustc_middle::query 2023-05-15 08:49:13 +02:00
errors.rs validate doc(masked) 2023-07-24 18:04:35 +02:00
hir_id_validator.rs inline format!() args from rustc_codegen_llvm to the end (4) 2023-07-25 23:20:28 +02:00
hir_stats.rs inline format!() args from rustc_codegen_llvm to the end (4) 2023-07-25 23:20:28 +02:00
lang_items.rs Move expansion of query macros in rustc_middle to rustc_middle::query 2023-05-15 08:49:13 +02:00
layout_test.rs refactor(rustc_middle): Substs -> GenericArg 2023-07-14 13:27:35 +01:00
lib.rs Turn debugger_visualizers from feed- into regular query. 2023-05-16 18:50:36 +02:00
lib_features.rs Move expansion of query macros in rustc_middle to rustc_middle::query 2023-05-15 08:49:13 +02:00
liveness.rs Improve spans for indexing expressions 2023-08-04 13:17:39 +02:00
loops.rs Separate AnonConst from ConstBlock in HIR. 2023-06-02 21:25:18 +00:00
naked_functions.rs hir: Add Become expression kind 2023-06-26 08:56:32 +00:00
reachable.rs Lower generic const items to HIR 2023-07-28 22:21:40 +02:00
stability.rs Re-format let-else per rustfmt update 2023-07-12 21:49:27 -04:00
upvars.rs Move expansion of query macros in rustc_middle to rustc_middle::query 2023-05-15 08:49:13 +02:00
weak_lang_items.rs rustc: Remove needless lifetimes 2022-12-20 22:10:40 +01:00