rust/compiler/rustc_ast/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
..
attr Remove MacDelimiter. 2023-08-03 09:03:30 +10:00
expand Remember names of cfg-ed out items to mention them in diagnostics 2023-06-01 19:17:19 +02:00
util Improve spans for indexing expressions 2023-08-04 13:17:39 +02:00
ast.rs Improve spans for indexing expressions 2023-08-04 13:17:39 +02:00
ast_traits.rs Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
entry.rs Fixup missing renames from #[main] to #[rustc_main] 2022-06-22 18:24:09 +02:00
format.rs get auto traits for parallel rustc 2023-08-02 16:21:45 +08:00
lib.rs make rustc compilable 2023-04-16 07:25:13 +00:00
mut_visit.rs Improve spans for indexing expressions 2023-08-04 13:17:39 +02:00
node_id.rs Various minor Idx-related tweaks 2023-04-16 02:42:50 -07:00
ptr.rs make rustc compilable 2023-04-16 07:25:13 +00:00
token.rs Fix an erroneous comment. 2023-08-02 10:32:35 +10:00
tokenstream.rs Remove TokenTreeCursor::replace_prev_and_rewind. 2023-07-31 14:47:06 +10:00
visit.rs Improve spans for indexing expressions 2023-08-04 13:17:39 +02:00