about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/attr_wrapper.rs
AgeCommit message (Expand)AuthorLines
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
2024-07-02Import `std::{iter,mem}`.Nicholas Nethercote-11/+10
2024-07-02Rename `make_token_stream`.Nicholas Nethercote-6/+6
2024-07-02Shrink parser positions from `usize` to `u32`.Nicholas Nethercote-12/+9
2024-07-02Move more things around in `collect_tokens_trailing_token`.Nicholas Nethercote-23/+18
2024-07-02Move things around in `collect_tokens_trailing_token`.Nicholas Nethercote-7/+7
2024-07-02Flip an if/else in `AttrTokenStream::to_attr_token_stream`.Nicholas Nethercote-3/+3
2024-07-02Fix comment.Nicholas Nethercote-3/+3
2024-07-02Fix a typo in a comment.Nicholas Nethercote-1/+1
2024-06-19Auto merge of #126678 - nnethercote:fix-duplicated-attrs-on-nt-expr, r=petroc...bors-1/+5
2024-06-19Expand another comment.Nicholas Nethercote-1/+5
2024-06-18Prefer `dcx` methods over fields or fields' methodsOli Scherer-1/+1