rust/compiler/rustc_ast/src/util
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
..
comments Add test for block doc comments horizontal trim 2022-02-07 17:07:53 +01:00
case.rs Replace some bool params with an enum 2022-10-01 10:13:02 +00:00
classify.rs Remove box_syntax from AST and use in tools 2023-03-12 13:19:46 +00:00
comments.rs more clippy::style fixes: 2023-07-23 23:39:04 +02:00
literal.rs Use Option::is_some_and and Result::is_ok_and in the compiler 2023-05-24 14:20:41 +00:00
parser.rs Improve spans for indexing expressions 2023-08-04 13:17:39 +02:00
unicode.rs Remove dependency on slice_internals feature in rustc_ast 2023-01-22 13:05:47 +01:00