about summary refs log tree commit diff
path: root/src/libsyntax_expand/proc_macro.rs
AgeCommit message (Collapse)AuthorLines
2019-12-30Rename directories for some crates from `syntax_x` to `rustc_x`Vadim Petrochenkov-239/+0
`syntax_expand` -> `rustc_expand` `syntax_pos` -> `rustc_span` `syntax_ext` -> `rustc_builtin_macros`
2019-12-22Format the worldMark Rousskov-51/+49
2019-12-06parse_meta: ditch parse_in_attrMazdak Farrokhzad-5/+5
2019-12-06derive: avoid parse_in_attrMazdak Farrokhzad-25/+62
2019-12-02syntax: Use `ast::MacArgs` for attributesVadim Petrochenkov-2/+2
2019-11-16expand: Stop marking derive helper attributes as knownVadim Petrochenkov-18/+1
Pass them through name resolution instead
2019-11-10move syntax::parse -> librustc_parseMazdak Farrokhzad-3/+6
also move MACRO_ARGUMENTS -> librustc_parse
2019-11-07syntax::parser::token -> syntax::tokenMazdak Farrokhzad-1/+2
2019-11-06Make doc comments cheaper with `AttrKind`.Nicholas Nethercote-2/+2
`AttrKind` is a new type with two variants, `Normal` and `DocComment`. It's a big performance win (over 10% in some cases) because `DocComment` lets doc comments (which are common) be represented very cheaply. `Attribute` gets some new helper methods to ease the transition: - `has_name()`: check if the attribute name matches a single `Symbol`; for `DocComment` variants it succeeds if the symbol is `sym::doc`. - `is_doc_comment()`: check if it has a `DocComment` kind. - `{get,unwrap}_normal_item()`: extract the item from a `Normal` variant; panic otherwise. Fixes #60935.
2019-11-06Remove unnecessary `Deref` impl for `Attribute`.Nicholas Nethercote-2/+2
This kind of thing just makes the code harder to read.
2019-10-27rustc, rustc_passes: don't depend on syntax_expand.Mazdak Farrokhzad-5/+0
This is done by moving some data definitions to syntax::expand.
2019-10-27syntax/attr: reduce reliance on parserMazdak Farrokhzad-1/+8
2019-10-16move syntax::ext to new crate syntax_expandMazdak Farrokhzad-0/+215