about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/attr.rs
AgeCommit message (Expand)AuthorLines
2024-08-03Rollup merge of #128483 - nnethercote:still-more-cfg-cleanups, r=petrochenkovMatthias Krüger-3/+3
2024-08-01Distinguish the two kinds of token range.Nicholas Nethercote-3/+3
2024-07-30Add toggle for `parse_meta_item` unsafe parsingcarbotaniuman-4/+17
2024-07-29Reformat `use` declarations.Nicholas Nethercote-7/+7
2024-07-26Move `is_complete` to the module that uses it.Nicholas Nethercote-11/+0
2024-07-19Auto merge of #127957 - matthiaskrgr:rollup-1u5ivck, r=matthiaskrgrbors-8/+7
2024-07-19Overhaul comments in `collect_tokens_trailing_token`.Nicholas Nethercote-8/+5
2024-07-19Simplify `CaptureState::inner_attr_ranges`.Nicholas Nethercote-3/+3
2024-07-19Only check `force_collect` in `collect_tokens_trailing_token`.Nicholas Nethercote-8/+4
2024-07-19Use `ForceCollect` in `parse_attr_item`.Nicholas Nethercote-4/+7
2024-07-07Simplify `ReplaceRange`.Nicholas Nethercote-1/+1
2024-07-05Remove some unnecessary integer conversions.Nicholas Nethercote-2/+2
2024-06-06Fix buildcarbotaniuman-4/+4
2024-06-06Parse unsafe attributescarbotaniuman-3/+32
2024-06-05Inline and remove `parse_crate{,_attrs}_from_{file,source_str}`.Nicholas Nethercote-1/+1
2024-05-13Remove a `Span` from `TokenKind::Interpolated`.Nicholas Nethercote-1/+1
2024-05-10Fix parse error message for meta itemsLeón Orell Valerian Liehr-26/+30
2024-03-21Rewrite `parse_meta_item`.Nicholas Nethercote-11/+7
2024-03-21Use `maybe_whole!` to streamline `parse_attr_item`.Nicholas Nethercote-19/+10
2024-03-15Make `unexpected` always "return" `PResult<()>` & add `unexpected_any`Maybe Waffle-3/+3
2024-03-05Rename all `ParseSess` variables/fields/lifetimes as `psess`.Nicholas Nethercote-3/+3
2024-02-28Rename `DiagnosticBuilder` as `Diag`.Nicholas Nethercote-2/+2
2024-02-19Prefer `DiagnosticBuilder` over `Diagnostic` in diagnostic modifiers.Nicholas Nethercote-2/+2
2024-01-29Stop using `String` for error codes.Nicholas Nethercote-2/+2
2024-01-12Suggest quoting unquoted idents in attrssjwang05-4/+24
2024-01-10Rename consuming chaining methods on `DiagnosticBuilder`.Nicholas Nethercote-4/+7
2024-01-08Remove all eight `DiagnosticBuilder::*_with_code` methods.Nicholas Nethercote-5/+4
2024-01-08Use chaining in `DiagnosticBuilder` construction.Nicholas Nethercote-14/+13
2024-01-03Rename some `Diagnostic` setters.Nicholas Nethercote-1/+1
2023-12-24Remove `ParseSess` methods that duplicate `DiagCtxt` methods.Nicholas Nethercote-1/+1
2023-12-24Remove `Parser` methods that duplicate `DiagCtxt` methods.Nicholas Nethercote-3/+3
2023-12-18Use `.into_diagnostic()` less.Nicholas Nethercote-3/+4
2023-12-18Rename `Parser::span_diagnostic` as `Parser::dcx`.Nicholas Nethercote-2/+2
2023-12-10remove redundant importssurechen-1/+0
2023-12-02Use `Session::diagnostic` in more places.Nicholas Nethercote-2/+2
2023-11-16More detail when expecting expression but encountering bad macro argumentEsteban Küber-2/+2
2023-08-02Move `TokenCursor::num_next_calls` into `Parser` and rename it.Nicholas Nethercote-3/+3
2023-06-27Simplify some conditionsMaybe Waffle-10/+7
2023-04-16fix clippy::toplevel_ref_arg and ::manual_mapMatthias Krüger-3/+3
2023-02-22errors: generate typed identifiers in each crateDavid Wood-9/+10
2023-02-21Use `ThinVec` in various AST types.Nicholas Nethercote-2/+5
2022-12-10compiler: remove unnecessary imports and qualified pathsKaDiWa-1/+0
2022-11-28Rename `NestedMetaItem::[Ll]iteral` as `NestedMetaItem::[Ll]it`.Nicholas Nethercote-1/+1
2022-11-28Rename `ast::Lit` as `ast::MetaItemLit`.Nicholas Nethercote-4/+5
2022-11-22`rustc_parse`: remove `ref` patternsMaybe Waffle-6/+6
2022-11-21Match crate and slug namesmejrs-6/+6
2022-11-16Use `token::Lit` in `ast::ExprKind::Lit`.Nicholas Nethercote-2/+2
2022-10-23Migrate all diagnosticsNilstrieb-14/+14
2022-09-27Implement IntoDiagnosticArg for rustc_ast::token::Token(Kind)Xiretza-3/+1
2022-09-27Rework "inner attribute not permitted" errorsXiretza-56/+51