about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/attr.rs
AgeCommit message (Expand)AuthorLines
2025-08-22Move validate_attr to `rustc_attr_parsing`Jonathan Brouwer-1/+1
2025-08-14Add FnContext in parser for diagnosticxizheyin-1/+2
2025-04-29Move various token stream things from `rustc_parse` to `rustc_ast`.Nicholas Nethercote-2/+2
2025-03-13Provide helpful diagnostics for shebang lookalikesPyrode-1/+18
2025-03-03Rename `ast::TokenKind::Not` as `ast::TokenKind::Bang`.Nicholas Nethercote-2/+2
2025-02-28Remove `NtMeta`.Nicholas Nethercote-16/+22
2024-12-19Speed up `Parser::expected_token_types`.Nicholas Nethercote-21/+20
2024-12-18Re-export more `rustc_span::symbol` things from `rustc_span`.Nicholas Nethercote-2/+1
2024-12-15Add hir::AttributeJonathan Dönszelmann-3/+2
2024-10-06Rename NestedMetaItem to MetaItemInnercodemountains-5/+5
2024-10-01Use `ast::NestedMetaItem` when evaluating cfg predicateUrgau-3/+5
2024-08-24Rollup merge of #128524 - chenyukang:yukang-fix-127930-invalid-outer-style-su...Trevor Gross-12/+26
2024-08-17Auto merge of #128771 - carbotaniuman:stabilize_unsafe_attr, r=nnethercotebors-3/+1
2024-08-16Overhaul token collection.Nicholas Nethercote-7/+11
2024-08-16Convert a bool to `Trailing`.Nicholas Nethercote-2/+4
2024-08-14Use `impl PartialEq<TokenKind> for Token` more.Nicholas Nethercote-3/+3
2024-08-07Stabilize `unsafe_attributes`carbotaniuman-3/+1
2024-08-04don't suggest turning crate-level attributes into outer styleyukang-12/+26
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