rust/compiler/rustc_resolve/src
Matthias Krüger 99e4127d85
Rollup merge of #114434 - Nilstrieb:indexing-spans, r=est31
Improve spans for indexing expressions

fixes #114388

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.

r? compiler-errors
2023-08-04 21:31:57 +02:00
..
diagnostics Implement the unused_macro_rules lint 2022-05-05 19:13:00 +02:00
late inline format!() args up to and including rustc_codegen_llvm 2023-07-30 14:22:50 +02:00
build_reduced_graph.rs inline format!() args up to and including rustc_codegen_llvm 2023-07-30 14:22:50 +02:00
check_unused.rs inline format!() args up to and including rustc_codegen_llvm 2023-07-30 14:22:50 +02:00
def_collector.rs Remove the NodeId of ast::ExprKind::Async 2023-03-19 19:01:31 +01:00
diagnostics.rs inline format!() args up to and including rustc_codegen_llvm 2023-07-30 14:22:50 +02:00
effective_visibilities.rs resolve: Use Interned for NameBinding 2023-07-05 13:47:36 +03:00
errors.rs Add translatable diagnostic for import resolution strings 2023-06-25 08:29:28 +01:00
ident.rs inline format!() args up to and including rustc_codegen_llvm 2023-07-30 14:22:50 +02:00
imports.rs Rollup merge of #113920 - bvanjoi:fix-81413, r=petrochenkov 2023-07-31 22:49:50 +02:00
late.rs Improve spans for indexing expressions 2023-08-04 13:17:39 +02:00
lib.rs Add internal_features lint 2023-08-03 14:50:50 +02:00
macros.rs inline format!() args up to and including rustc_codegen_llvm 2023-07-30 14:22:50 +02:00
rustdoc.rs rustdoc: fix ICE from rustc_resolve and librustdoc parse divergence 2023-04-18 12:22:13 -07:00