about summary refs log tree commit diff
path: root/compiler/rustc_ast/src/tokenstream.rs
AgeCommit message (Expand)AuthorLines
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
2023-01-05Fix `uninlined_format_args` for some compiler cratesnils-2/+1
2022-12-10compiler: remove unnecessary imports and qualified pathsKaDiWa-1/+1
2022-12-01Remove useless borrows and derefsMaybe Waffle-4/+4
2022-11-27Prefer doc comments over `//`-comments in compilerMaybe Waffle-10/+10
2022-10-12Use `tidy-alphabetical` in the compilerNilstrieb-1/+2
2022-10-05Remove `TokenStreamBuilder`.Nicholas Nethercote-72/+45
2022-10-03Add comments to `Spacing`.Nicholas Nethercote-0/+11
2022-10-01Group together more size assertions.Nicholas Nethercote-8/+13
2022-09-09Rename `{Create,Lazy}TokenStream` as `{To,Lazy}AttrTokenStream`.Nicholas Nethercote-21/+21
2022-09-09Inline and remove `TokenStream::opt_from_ast`.Nicholas Nethercote-15/+12
2022-09-09Tweak some formatting.Nicholas Nethercote-9/+5
2022-09-09Change return type of `Attribute::tokens`.Nicholas Nethercote-2/+2
2022-09-09Rename `AttrAnnotatedToken{Stream,Tree}`.Nicholas Nethercote-20/+20
2022-09-09Move `Spacing` out of `AttrAnnotatedTokenStream`.Nicholas Nethercote-16/+7
2022-09-01Auto merge of #100869 - nnethercote:replace-ThinVec, r=spastorinobors-1/+2
2022-08-30Use more `into_iter` rather than `drain(..)`Donough Liu-1/+1
2022-08-29Replace `rustc_data_structures::thin_vec::ThinVec` with `thin_vec::ThinVec`.Nicholas Nethercote-1/+2
2022-07-29Remove `TreeAndSpacing`.Nicholas Nethercote-78/+74
2022-06-20Merge `TokenStreamBuilder::push` into `TokenStreamBuilder::build`.Nicholas Nethercote-53/+32
2022-06-20Remove `TokenStream::from_streams`.Nicholas Nethercote-40/+37
2022-06-20Remove `Cursor::index`.Nicholas Nethercote-4/+0
2022-06-20Remove `Cursor::append`.Nicholas Nethercote-11/+1
2022-06-08Use delayed error handling for `Encodable` and `Encoder` infallible.Nicholas Nethercote-2/+2
2022-05-22rustc_parse: Move AST -> TokenStream conversion logic to `rustc_ast`Vadim Petrochenkov-7/+86
2022-05-18use `CursorRef` more, to not to clone `Tree`sklensy-2/+11
2022-04-28rustc_ast: Harmonize delimiter naming with `proc_macro::Delimiter`Vadim Petrochenkov-4/+4
2022-04-21Introduced `Cursor::next_with_spacing_ref`.Nicholas Nethercote-0/+8
2022-04-20Inline `Cursor::next_with_spacing`.Nicholas Nethercote-0/+1
2022-04-19Inline and remove `TokenTree::{open_tt,close_tt}`.Nicholas Nethercote-10/+0
2022-04-19Tweak `Cursor::next_with_spacing`.Nicholas Nethercote-5/+3
2022-03-30Spellchecking compiler commentsYuri Astrakhan-1/+1
2022-02-262 - Make more use of let_chainsCaio-35/+33
2022-01-22Make `Decodable` and `Decoder` infallible.Nicholas Nethercote-1/+1