summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser
AgeCommit message (Expand)AuthorLines
2024-12-19Make `TokenType::from_u32` foolproof.Nicholas Nethercote-115/+126
2024-12-19Speed up `Parser::expected_token_types`.Nicholas Nethercote-704/+1263
2024-12-19Remove `bra`/`ket` naming.Nicholas Nethercote-24/+24
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-24/+25
2024-12-18Auto merge of #134443 - joshtriplett:use-field-init-shorthand, r=lqd,tgross35...bors-1/+1
2024-12-18Rollup merge of #134253 - nnethercote:overhaul-keywords, r=petrochenkov许杰友 Jieyou Xu (Joe)-4/+4
2024-12-18Rollup merge of #134161 - nnethercote:overhaul-token-cursors, r=spastorino许杰友 Jieyou Xu (Joe)-42/+72
2024-12-18Only have one source of truth for keywords.Nicholas Nethercote-2/+2
2024-12-18Simplify `AllKeywords`.Nicholas Nethercote-2/+2
2024-12-18Re-export more `rustc_span::symbol` things from `rustc_span`.Nicholas Nethercote-25/+16
2024-12-18Overhaul `TokenTreeCursor`.Nicholas Nethercote-33/+63
2024-12-18Rename `RefTokenTreeCursor`.Nicholas Nethercote-9/+9
2024-12-17Use field init shorthand where possibleJosh Triplett-1/+1
2024-12-16Rollup merge of #134284 - estebank:issue-74863, r=lcnrMatthias Krüger-2/+2
2024-12-15Add hir::AttributeJonathan Dönszelmann-7/+6
2024-12-15Rename `value` field to `expr` to simplify later commits' diffsOli Scherer-1/+1
2024-12-13Keep track of patterns that could have introduced a binding, but didn'tEsteban Küber-2/+2
2024-12-13Rollup merge of #134140 - compiler-errors:unsafe-binders-ast, r=oli-obkMatthias Krüger-3/+39
2024-12-13Rollup merge of #133937 - estebank:silence-resolve-errors-from-mod-with-parse...Matthias Krüger-1/+1
2024-12-13Stabilize async closuresMichael Goulet-4/+1
2024-12-12Add testsMichael Goulet-1/+3
2024-12-12Add unwrap_unsafe_binder and wrap_unsafe_binder macro operatorsMichael Goulet-2/+21
2024-12-12Parsing unsafe bindersMichael Goulet-1/+16
2024-12-12Rollup merge of #134187 - nnethercote:rm-PErr, r=jieyouxuMatthias Krüger-3/+3
2024-12-12Rollup merge of #134173 - onur-ozkan:allow-symbol-intern-string-literal, r=ji...Matthias Krüger-0/+4
2024-12-12Remove `PErr`.Nicholas Nethercote-3/+3
2024-12-11allow `symbol_intern_string_literal` lint in test modulesonur-ozkan-0/+4
2024-12-11Don't emit "field expressions may not have generic arguments" if it's a metho...Orion Gonzalez-2/+5
2024-12-10Keep track of parse errors in `mod`s and don't emit resolve errors for paths ...Esteban Küber-1/+1
2024-12-09Detect `struct S(ty = val);`Esteban Küber-1/+17
2024-12-09Introduce `default_field_values` featureEsteban Küber-4/+9
2024-12-08Rollup merge of #133424 - Nadrieril:guard-patterns-parsing, r=fee1-deadMatthias Krüger-48/+68
2024-12-04Fix suggestion when shorthand self has erroneous typeMichael Goulet-1/+29
2024-12-03Rollup merge of #133545 - clubby789:symbol-intern-lit, r=jieyouxuMatthias Krüger-2/+2
2024-12-03Rollup merge of #132612 - compiler-errors:async-trait-bounds, r=lcnrMatthias Krüger-2/+2
2024-12-02Rollup merge of #133746 - oli-obk:push-xwyrylxmrtvq, r=jieyouxuGuillaume Gomez-1/+1
2024-12-02Gate async fn trait bound modifier on async_trait_boundsMichael Goulet-2/+2
2024-12-02Change `AttrArgs::Eq` into a struct variantOli Scherer-1/+1
2024-11-30Eliminate magic numbers from expression precedenceDavid Tolnay-15/+9
2024-11-30Eliminate precedence arithmetic from rustc_parseDavid Tolnay-17/+26
2024-11-30Rollup merge of #133623 - nnethercote:parse_expr_bottom-spans, r=compiler-errors许杰友 Jieyou Xu (Joe)-21/+14
2024-11-28Replace `Symbol::intern` calls with preinterned symbolsclubby789-2/+2
2024-11-28Improve span handling in `parse_expr_bottom`.Nicholas Nethercote-21/+14
2024-11-28Trim extra space in 'repeated `mut`' diagnosticclubby789-1/+3
2024-11-26Rollup merge of #133140 - dtolnay:precedence, r=fmeaseMichael Goulet-7/+10
2024-11-25Refactor `where` predicates, and reserve for attributes supportFrank King-32/+30
2024-11-24parse guard patternsNadrieril-37/+56
2024-11-24refactor pat parser method names/doc-comments to agree with RFC 3637Max Niederman-21/+22
2024-11-21Implement the unsafe-fields RFC.Luca Versari-2/+20