summary refs log tree commit diff
path: root/compiler/rustc_ast/src/attr
AgeCommit message (Expand)AuthorLines
2024-07-29Reformat `use` declarations.Nicholas Nethercote-13/+13
2024-07-10Rework `Attribute::get_tokens`.Nicholas Nethercote-13/+10
2024-07-07Rename `Attribute::tokens` (the inherent method).Nicholas Nethercote-1/+2
2024-07-02Change `AttrTokenStream::to_tokenstream` to `to_token_trees`.Nicholas Nethercote-6/+8
2024-06-25Extra panic cases.Nicholas Nethercote-1/+8
2024-06-06Change comment to FIXMEcarbotaniuman-1/+3
2024-06-06Fix buildcarbotaniuman-7/+7
2024-06-06Parse unsafe attributescarbotaniuman-8/+25
2024-05-21Move `#[do_not_recommend]` to the `#[diagnostic]` namespaceGeorg Semmler-0/+11
2024-05-13Remove a `Span` from `TokenKind::Interpolated`.Nicholas Nethercote-1/+1
2024-04-24Rename `NestedMetaItem::name_value_literal`.Nicholas Nethercote-2/+3
2024-04-24Remove `MetaItemKind::value_str`.Nicholas Nethercote-8/+4
2024-04-04Rename ModSep to PathSepLeón Orell Valerian Liehr-3/+3
2023-12-11Add spacing information to delimiters.Nicholas Nethercote-3/+3
2023-11-21Fix `clippy::needless_borrow` in the compilerNilstrieb-1/+1
2023-11-16More detail when expecting expression but encountering bad macro argumentEsteban Küber-1/+1
2023-10-13Format all the let chains in compilerMichael Goulet-3/+1
2023-10-12Use `TokenStream::token_alone` in one place.Nicholas Nethercote-4/+4
2023-09-12`#[diagnostic::on_unimplemented]` without filtersGeorg Semmler-0/+16
2023-08-03Remove `MacDelimiter`.Nicholas Nethercote-8/+6
2023-07-27Make `TokenTree::uninterpolate` take `&self` and return a `Cow`.Nicholas Nethercote-7/+7
2023-07-27Use `TokenStream::trees` instead of `into_trees` for attributes.Nicholas Nethercote-14/+13
2023-05-24Use `Option::is_some_and` and `Result::is_ok_and` in the compilerMaybe Waffle-3/+3
2023-04-16Remove WorkerLocal from AttrIdGeneratorJohn Kåre Alsaker-32/+4
2023-03-22rustc: Remove unused `Session` argument from some attribute functionsVadim Petrochenkov-0/+22
2023-02-21Use `ThinVec` in various AST types.Nicholas Nethercote-5/+5
2023-02-11rustc_ast: Merge impls and reorder methods for attributes and meta itemsVadim Petrochenkov-311/+307
2023-02-01ast: Optimize list and value extraction primitives for attributesVadim Petrochenkov-23/+43
2023-01-05Fix `uninlined_format_args` for some compiler cratesnils-1/+1
2022-12-05Remove three uses of `LitKind::synthesize_token_lit`.Nicholas Nethercote-2/+3
2022-12-05Remove `mk_name_value_item{,_str}`.Nicholas Nethercote-15/+0
2022-12-02Remove `token::Lit` from `ast::MetaItemLit`.Nicholas Nethercote-1/+3
2022-12-02Rename `LitKind::to_token_lit` as `LitKind::synthesize_token_lit`.Nicholas Nethercote-2/+2
2022-11-29Avoid more `MetaItem`-to-`Attribute` conversions.Nicholas Nethercote-115/+52
2022-11-29Inline and remove `MetaItemLit::from_lit_kind`.Nicholas Nethercote-2/+2
2022-11-28Rename `NestedMetaItem::[Ll]iteral` as `NestedMetaItem::[Ll]it`.Nicholas Nethercote-6/+6
2022-11-28Rename `ast::Lit` as `ast::MetaItemLit`.Nicholas Nethercote-9/+9
2022-11-27Prefer doc comments over `//`-comments in compilerMaybe Waffle-5/+7
2022-11-23Fix an ICE parsing a malformed attribute.Nicholas Nethercote-3/+6
2022-11-22Split `MacArgs` in two.Nicholas Nethercote-26/+28
2022-11-21Remove `ref` patterns from `rustc_ast`Maybe Waffle-46/+44
2022-11-17Use `ThinVec` in `ast::Path`.Nicholas Nethercote-4/+3
2022-11-16Use `token::Lit` in `ast::ExprKind::Lit`.Nicholas Nethercote-5/+7
2022-09-14add debug assertion for max `attr_id`SparrowLii-1/+24
2022-09-14make `mk_attr_id` part of `ParseSess`SparrowLii-15/+32
2022-09-13Rollup merge of #101752 - GuillaumeGomez:improve-attr-docs, r=lqdMatthias Krüger-1/+11
2022-09-12Improve Attribute doc methodsGuillaume Gomez-1/+11
2022-09-09Rename `{Create,Lazy}TokenStream` as `{To,Lazy}AttrTokenStream`.Nicholas Nethercote-3/+3
2022-09-09Change return type of `Attribute::tokens`.Nicholas Nethercote-9/+7
2022-09-09Rename `AttrAnnotatedToken{Stream,Tree}`.Nicholas Nethercote-3/+3