rust/compiler/rustc_parse/src/parser
许杰友 Jieyou Xu (Joe) ea72c19c7d
Rollup merge of #133623 - nnethercote:parse_expr_bottom-spans, r=compiler-errors
Improve span handling in `parse_expr_bottom`.

`parse_expr_bottom` stores `this.token.span` in `lo`, but then fails to use it in many places where it could. This commit fixes that, and likewise (to a smaller extent) in `parse_ty_common`.

r? ``@spastorino``
2024-11-30 12:56:54 +08:00
..
mut_visit Reformat use declarations. 2024-07-29 08:26:52 +10:00
tokenstream Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
attr.rs Rename NestedMetaItem to MetaItemInner 2024-10-06 23:28:30 +09:00
attr_wrapper.rs Introduce InvisibleOrigin on invisible delimiters. 2024-11-21 08:16:54 +11:00
diagnostics.rs Improve span handling in parse_expr_bottom. 2024-11-28 17:01:50 +11:00
expr.rs Improve span handling in parse_expr_bottom. 2024-11-28 17:01:50 +11:00
generics.rs Refactor where predicates, and reserve for attributes support 2024-11-25 16:38:35 +08:00
item.rs Implement the unsafe-fields RFC. 2024-11-21 19:32:07 +01:00
mod.rs Add metavariables to TokenDescription. 2024-11-21 08:16:55 +11:00
nonterminal.rs Prepare for invisible delimiters. 2024-11-21 08:22:11 +11:00
pat.rs Trim extra space in 'repeated mut' diagnostic 2024-11-28 01:37:01 +00:00
path.rs Move trait bound modifiers into ast::PolyTraitRef 2024-10-14 09:20:38 -04:00
stmt.rs review comment: move logic to new method 2024-11-16 20:03:31 +00:00
tests.rs Add Unicode block-drawing compiler output support 2024-11-10 23:57:18 +01:00
ty.rs Improve span handling in parse_expr_bottom. 2024-11-28 17:01:50 +11:00