about summary refs log tree commit diff
path: root/src/libsyntax/ext/proc_macro_server.rs
AgeCommit message (Collapse)AuthorLines
2019-09-04flatten rustc_lexer::character_properties moduleAleksey Kladov-2/+1
On the call site, `rustc_lexer::is_whitespace` reads much better than `character_properties::is_whitespace`.
2019-09-04remove XID and Pattern_White_Space unicode tables from libcoreAleksey Kladov-2/+2
They are only used by rustc_lexer, and are not needed elsewhere. So we move the relevant definitions into rustc_lexer (while the actual unicode data comes from the unicode-xid crate) and make the rest of the compiler use it.
2019-08-27proc_macro: Update `Span::def_site` to use the proc macro definition locationVadim Petrochenkov-4/+3
Which is no longer dummy and is available from metadata now.
2019-08-23Audit uses of `apply_mark` in built-in macrosVadim Petrochenkov-9/+2
Replace them with equivalents of `Span::{def_site,call_site}` from proc macro API. The new API is much less error prone and doesn't rely on macros having default transparency.
2019-08-15hygiene: `ExpnInfo` -> `ExpnData`Vadim Petrochenkov-1/+1
For naming consistency with everything else in this area
2019-08-15hygiene: Remove `Option`s from functions returning `ExpnInfo`Vadim Petrochenkov-2/+2
The expansion info is not optional and should always exist
2019-08-15syntax_pos: `NO_EXPANSION`/`SyntaxContext::empty()` -> `SyntaxContext::root()`Vadim Petrochenkov-1/+1
For consistency with `ExpnId::root`. Also introduce a helper `Span::with_root_ctxt` for creating spans with `SyntaxContext::root()` context
2019-08-05add unknown tokenAleksey Kladov-1/+1
2019-07-27Move proc macro server into libsyntaxVadim Petrochenkov-0/+715