summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/mod.rs
AgeCommit message (Expand)AuthorLines
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
2024-07-18Parser: Suggest Placing the Return Type After Function ParametersVeera-0/+1
2024-07-18Remove `TrailingToken`.Nicholas Nethercote-11/+1
2024-07-16Remove references to `maybe_whole_expr`.Nicholas Nethercote-1/+0
2024-07-14Rollup merge of #127273 - nnethercote:fix-DebugParser, r=workingjubileeMatthias Krüger-8/+10
2024-07-13Rollup merge of #127558 - nnethercote:more-Attribute-cleanups, r=petrochenkovJubilee-1/+1
2024-07-13Fix `DebugParser`.Nicholas Nethercote-8/+10
2024-07-12Add a new special case to `Parser::look_ahead`.Nicholas Nethercote-0/+29
2024-07-12Remove the bogus special case from `Parser::look_ahead`.Nicholas Nethercote-35/+2
2024-07-09Move `Spacing` into `FlatToken`.Nicholas Nethercote-1/+1
2024-07-07Rename some attribute types for consistency.Nicholas Nethercote-9/+8
2024-07-07Simplify `ReplaceRange`.Nicholas Nethercote-2/+2
2024-07-02Shrink parser positions from `usize` to `u32`.Nicholas Nethercote-3/+3
2024-06-20Properly gate `safe` keyword in pre-expansionMichael Goulet-0/+3
2024-06-19Auto merge of #126678 - nnethercote:fix-duplicated-attrs-on-nt-expr, r=petroc...bors-11/+0
2024-06-19Refactor `parse_expr_res`.Nicholas Nethercote-11/+0
2024-06-18Prefer `dcx` methods over fields or fields' methodsOli Scherer-1/+1