summary refs log tree commit diff
path: root/compiler/rustc_ast/src/tokenstream.rs
AgeCommit message (Expand)AuthorLines
2024-12-18Overhaul `TokenTreeCursor`.Nicholas Nethercote-37/+4
2024-12-18Remove `Peekable<TokenStreamIter>` uses.Nicholas Nethercote-1/+4
2024-12-18Rename `RefTokenTreeCursor`.Nicholas Nethercote-18/+16
2024-12-18Simplify `RefTokenTreeCursor::look_ahead`.Nicholas Nethercote-2/+2
2024-11-21Introduce `InvisibleOrigin` on invisible delimiters.Nicholas Nethercote-3/+3
2024-11-12Delete the `cfg(not(parallel))` serial compilerNoratrieb-1/+0
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-1/+1
2024-09-06Add initial support for raw lifetimesMichael Goulet-2/+2
2024-07-29Reformat `use` declarations.Nicholas Nethercote-7/+8
2024-07-10Add some comments.Nicholas Nethercote-1/+4
2024-07-10Factor out `AttrsTarget` flattening code.Nicholas Nethercote-64/+68
2024-07-10Rework `Attribute::get_tokens`.Nicholas Nethercote-4/+5
2024-07-07Add an size assertion.Nicholas Nethercote-0/+1
2024-07-07Rename some attribute types for consistency.Nicholas Nethercote-11/+11
2024-07-07Remove `HasSpan` trait.Nicholas Nethercote-3/+3
2024-07-07Rename `Attribute::tokens` (the inherent method).Nicholas Nethercote-2/+2
2024-07-02Just `push` in `AttrTokenStream::to_token_trees`.Nicholas Nethercote-16/+12
2024-07-02Rename `TokenStream::new` argument.Nicholas Nethercote-2/+2
2024-07-02Change `AttrTokenStream::to_tokenstream` to `to_token_trees`.Nicholas Nethercote-16/+7
2024-06-24Fix a typo in a comment.Nicholas Nethercote-1/+1
2024-05-23Use `JointHidden` in a couple of suitable places.Nicholas Nethercote-2/+2
2024-05-14Remove `NtIdent` and `NtLifetime`.Nicholas Nethercote-11/+14
2024-05-13Remove a `Span` from `TokenKind::Interpolated`.Nicholas Nethercote-3/+3
2024-05-07compiler: derive Debug in parserJubilee Young-1/+1
2024-04-29Remove `extern crate rustc_macros` from numerous crates.Nicholas Nethercote-1/+1
2024-04-24Make `LazyAttrTokenStream::encode` panic.Nicholas Nethercote-3/+2
2024-04-18Simplify `static_assert_size`s.Nicholas Nethercote-1/+1
2024-04-03Check `x86_64` size assertions on `aarch64`, tooZalathar-1/+1
2024-03-21Shrink the comment on `TokenTree`.Nicholas Nethercote-12/+1
2024-02-20Add newtype for raw identsclubby789-1/+1
2024-01-06Auto merge of #119478 - bjorn3:no_serialize_specialization, r=wesleywiserbors-4/+4
2024-01-04macro_rules: Less hacky heuristic for using `tt` metavariable spansVadim Petrochenkov-22/+1
2023-12-31Avoid specialization for the Span Encodable and Decodable implsbjorn3-4/+4
2023-12-11Add spacing information to delimiters.Nicholas Nethercote-20/+35
2023-12-11Improve `print_tts` by changing `tokenstream::Spacing`.Nicholas Nethercote-18/+64
2023-11-16More detail when expecting expression but encountering bad macro argumentEsteban Küber-2/+2
2023-10-13Format all the let chains in compilerMichael Goulet-1/+3
2023-09-04improve `AttrTokenStream`mojave2-11/+7
2023-07-31Remove `TokenTreeCursor::replace_prev_and_rewind`.Nicholas Nethercote-9/+0
2023-07-31Move doc comment desugaring out of `TokenCursor`.Nicholas Nethercote-3/+89
2023-07-27Remove `Iterator` impl for `TokenTreeCursor`.Nicholas Nethercote-13/+8
2023-07-27Make `TokenTree::uninterpolate` take `&self` and return a `Cow`.Nicholas Nethercote-5/+7
2023-07-03Use Lrc::make_mut instead of Lrc::get_mutThe 8472-10/+4
2023-07-03perform TokenStream replacement in-place when possible in expand_macroThe 8472-3/+18
2023-05-13refactor: add chunks method to TokenStream to obviate rustdoc clonesCaleb Cartwright-0/+4
2023-05-06correct literals for dyn thread safeSparrowLii-1/+1
2023-05-06introduce `DynSend` and `DynSync` auto traitSparrowLii-6/+7
2023-02-03Rename `Cursor`/`CursorRef` as `TokenTreeCursor`/`RefTokenTreeCursor`.Nicholas Nethercote-14/+16
2023-02-03Make clear that `TokenTree::Token` shouldn't contain a delimiter.Nicholas Nethercote-1/+2
2023-02-03Improve doc comment desugaring.Nicholas Nethercote-0/+9