about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/mod.rs
AgeCommit message (Expand)AuthorLines
2025-01-30Rollup merge of #135882 - hkBst:master, r=estebankMatthias Krüger-4/+2
2025-01-24use `fmt::from_fn` in more places, instead of using structs that impl formatt...Yotam Ofek-35/+25
2025-01-23simplify similar_tokens from Option<Vec<_>> to Vec<_>Marijn Schouten-4/+2
2025-01-21Only assert the `Parser` size on specific archesJosh Stone-2/+3
2025-01-11Remove allocations from case-insensitive comparison to keywordsMark Rousskov-2/+3
2024-12-19Fix `Parser` size assertion on s390x.Nicholas Nethercote-3/+3
2024-12-19Speed up `Parser::expected_token_types`.Nicholas Nethercote-127/+99
2024-12-19Remove `bra`/`ket` naming.Nicholas Nethercote-20/+20
2024-12-19Tweak some parser `check`/`eat` methods.Nicholas Nethercote-25/+20
2024-12-19Rename `Parser::expected_tokens` as `Parser::expected_token_types`.Nicholas Nethercote-11/+11
2024-12-18Rollup merge of #134161 - nnethercote:overhaul-token-cursors, r=spastorino许杰友 Jieyou Xu (Joe)-32/+60
2024-12-18Re-export more `rustc_span::symbol` things from `rustc_span`.Nicholas Nethercote-2/+1
2024-12-18Overhaul `TokenTreeCursor`.Nicholas Nethercote-32/+60
2024-12-15Add hir::AttributeJonathan Dönszelmann-4/+4
2024-12-15Rename `value` field to `expr` to simplify later commits' diffsOli Scherer-1/+1
2024-12-02Change `AttrArgs::Eq` into a struct variantOli Scherer-1/+1
2024-11-21Add metavariables to `TokenDescription`.Nicholas Nethercote-15/+26
2024-11-21Introduce `InvisibleOrigin` on invisible delimiters.Nicholas Nethercote-6/+6
2024-11-13Optimize `check_keyword_case`.Nicholas Nethercote-1/+2
2024-10-28Tweak `expand_incomplete_parse` warning.Nicholas Nethercote-1/+1
2024-09-23Rollup merge of #130551 - nnethercote:fix-break-last-token, r=petrochenkovJubilee-18/+21
2024-09-23Fix `break_last_token`.Nicholas Nethercote-18/+21
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-5/+5
2024-09-21Parser: recover from `:::` to `::`Pavel Grigorenko-4/+17
2024-09-11Also fix if in elseMichael Goulet-6/+4
2024-09-08Auto merge of #129346 - nnethercote:fix-double-handling-in-collect_tokens, r=...bors-2/+8
2024-09-06Add initial support for raw lifetimesMichael Goulet-1/+1
2024-08-24Avoid double-handling of attributes in `collect_tokens`.Nicholas Nethercote-1/+6
2024-08-23Split the assertion in `NodeRange::new`.Nicholas Nethercote-1/+2
2024-08-16Overhaul token collection.Nicholas Nethercote-9/+7
2024-08-16Add an assertion to `NodeRange::new`.Nicholas Nethercote-0/+1
2024-08-16Convert a bool to `Trailing`.Nicholas Nethercote-1/+7
2024-08-14Use `impl PartialEq<TokenKind> for Token` more.Nicholas Nethercote-4/+4
2024-08-12Rollup merge of #128994 - nnethercote:fix-Parser-look_ahead-more, r=compiler-...Guillaume Gomez-4/+6
2024-08-12Fix bug in `Parser::look_ahead`.Nicholas Nethercote-4/+6
2024-08-11Use assert_matches around the compilerMichael Goulet-1/+2
2024-08-03Rollup merge of #127921 - spastorino:stabilize-unsafe-extern-blocks, r=compil...Matthias Krüger-3/+0
2024-08-03Rollup merge of #128483 - nnethercote:still-more-cfg-cleanups, r=petrochenkovMatthias Krüger-20/+50
2024-08-01Distinguish the two kinds of token range.Nicholas Nethercote-20/+50
2024-07-29Mark Parser::eat/check methods as must_useMichael Goulet-4/+15
2024-07-29Reformat `use` declarations.Nicholas Nethercote-6/+7
2024-07-25improve error message when `global_asm!` uses `asm!` optionsFolkert-2/+5
2024-07-23Stabilize unsafe extern blocks (RFC 3484)Santiago Pastorino-3/+0
2024-07-19Auto merge of #127957 - matthiaskrgr:rollup-1u5ivck, r=matthiaskrgrbors-5/+5
2024-07-19Rollup merge of #127903 - nnethercote:force_collect-improvements, r=petrochenkovMatthias Krüger-5/+4
2024-07-19Rollup merge of #127350 - veera-sivarajan:bugfix-126311, r=lcnrMatthias Krüger-0/+1
2024-07-19Overhaul comments in `collect_tokens_trailing_token`.Nicholas Nethercote-0/+1
2024-07-19Make `Parser::num_bump_calls` 0-indexed.Nicholas Nethercote-0/+5
2024-07-19Simplify `CaptureState::inner_attr_ranges`.Nicholas Nethercote-1/+1
2024-07-19Remove an unnecessary `ForceCollect::Yes`.Nicholas Nethercote-5/+4