about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/attr_wrapper.rs
AgeCommit message (Expand)AuthorLines
2025-04-30Use `ThinVec` to shrink `LazyAttrTokenStreamInner`.Nicholas Nethercote-2/+3
2025-04-30Simplify `LazyAttrTokenStream`.Nicholas Nethercote-18/+6
2025-04-29Move various token stream things from `rustc_parse` to `rustc_ast`.Nicholas Nethercote-163/+6
2025-04-21Remove `token::{Open,Close}Delim`.Nicholas Nethercote-22/+22
2025-04-02Impl `Copy` for `Token` and `TokenKind`.Nicholas Nethercote-2/+2
2025-02-08Rustfmtbjorn3-4/+4
2024-11-21Introduce `InvisibleOrigin` on invisible delimiters.Nicholas Nethercote-2/+2
2024-11-04Revert "Avoid nested replacement ranges" from #129346.Nicholas Nethercote-7/+21
2024-09-23Rollup merge of #130551 - nnethercote:fix-break-last-token, r=petrochenkovJubilee-17/+19
2024-09-23Fix `break_last_token`.Nicholas Nethercote-17/+19
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-5/+5
2024-09-11clippy::useless_conversionMichael Goulet-1/+1
2024-08-24Optimize `collect_tokens` a little.Nicholas Nethercote-23/+40
2024-08-24Avoid double-handling of attributes in `collect_tokens`.Nicholas Nethercote-4/+19
2024-08-23Avoid nested replacement ranges.Nicholas Nethercote-21/+7
2024-08-23Return earlier in some cases in `collect_token`.Nicholas Nethercote-17/+22
2024-08-23Avoid unnecessary `cloned`.Nicholas Nethercote-1/+1
2024-08-23Clarify a comment.Nicholas Nethercote-3/+5
2024-08-16Overhaul token collection.Nicholas Nethercote-28/+67
2024-08-16Convert a bool to `Trailing`.Nicholas Nethercote-6/+6
2024-08-16Make visibilities minimal and consistent in `attr_wrapper.rs`.Nicholas Nethercote-6/+6
2024-08-16Remove size assertion on `AttrWrapper`.Nicholas Nethercote-1/+0
2024-08-01Distinguish the two kinds of token range.Nicholas Nethercote-54/+70
2024-08-01Streamline attribute stitching on AST nodes.Nicholas Nethercote-4/+3
2024-07-29Reformat `use` declarations.Nicholas Nethercote-7/+10
2024-07-26Rollup merge of #128224 - nnethercote:fewer-replace_ranges, r=petrochenkovTrevor Gross-25/+21
2024-07-26Remove an unnecessary block.Nicholas Nethercote-11/+9
2024-07-26Tweak a loop.Nicholas Nethercote-5/+7
2024-07-26Fix a comment.Nicholas Nethercote-3/+3
2024-07-26Don't include inner attribute ranges in `CaptureState`.Nicholas Nethercote-6/+2
2024-07-26Invert the sense of `is_complete` and rename it as `needs_tokens`.Nicholas Nethercote-11/+13
2024-07-26Move `is_complete` to the module that uses it.Nicholas Nethercote-2/+13
2024-07-26Inline and remove `AttrWrapper::is_complete`.Nicholas Nethercote-8/+4
2024-07-26Invert early exit conditions in `collect_tokens_trailing_token`.Nicholas Nethercote-29/+29
2024-07-19Overhaul comments in `collect_tokens_trailing_token`.Nicholas Nethercote-67/+123
2024-07-19Move `inner_attr` code downwards.Nicholas Nethercote-10/+10
2024-07-19Remove `final_attrs` local variable.Nicholas Nethercote-4/+2
2024-07-19Simplify `CaptureState::inner_attr_ranges`.Nicholas Nethercote-1/+1
2024-07-18Remove `TrailingToken`.Nicholas Nethercote-22/+10
2024-07-13Rollup merge of #127558 - nnethercote:more-Attribute-cleanups, r=petrochenkovJubilee-64/+47
2024-07-10Change empty replace range condition.Nicholas Nethercote-15/+16
2024-07-09Move `Spacing` into `FlatToken`.Nicholas Nethercote-16/+12
2024-07-08Split the stack in `make_attr_token_stream`.Nicholas Nethercote-26/+17
2024-07-08Use iterator normally in `make_attr_token_stream`.Nicholas Nethercote-4/+2
2024-07-08Use an `@` pattern to shorten some code.Nicholas Nethercote-6/+3
2024-07-08Clear `inner_attr_ranges` regularly.Nicholas Nethercote-8/+3
2024-07-07Remove `Clone` derive from `LazyAttrTokenStreamImpl`.Nicholas Nethercote-1/+0
2024-07-07Rename some attribute types for consistency.Nicholas Nethercote-15/+14
2024-07-07Simplify `ReplaceRange`.Nicholas Nethercote-21/+18
2024-07-05Remove some unnecessary integer conversions.Nicholas Nethercote-3/+1