granite-rust/compiler/rustc_expand/src
Aaron Hill b9b2546417
Unconditionally capture tokens for attributes.
This allows us to avoid synthesizing tokens in `prepend_attr`, since we
have the original tokens available.

We still need to synthesize tokens when expanding `cfg_attr`,
but this is an unavoidable consequence of the syntax of `cfg_attr` -
the user does not supply the `#` and `[]` tokens that a `cfg_attr`
expands to.
2020-10-21 18:57:29 -04:00
..
mbe Avoid cloning the contents of a TokenStream in a few places 2020-10-19 12:30:41 -04:00
mut_visit mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
parse Move lexer unit tests to rustc_lexer 2020-08-30 19:53:36 +02:00
tokenstream mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
base.rs Remove unused code from remaining compiler crates 2020-10-14 04:14:32 +02:00
build.rs Remove unused code from remaining compiler crates 2020-10-14 04:14:32 +02:00
config.rs Unconditionally capture tokens for attributes. 2020-10-21 18:57:29 -04:00
expand.rs Unconditionally capture tokens for attributes. 2020-10-21 18:57:29 -04:00
lib.rs Remove redundant #![feature(...)] 's from compiler/ 2020-09-17 07:58:45 +02:00
mbe.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
module.rs Syntactically permit unsafety on mods 2020-09-10 06:56:33 -07:00
placeholders.rs Attach tokens to ast::Stmt 2020-09-10 17:33:06 -04:00
proc_macro.rs Improve E0777 help message 2020-10-02 16:33:44 +02:00
proc_macro_server.rs Rollup merge of #75146 - tmiasko:range-overflow, r=Mark-Simulacrum 2020-09-16 01:30:30 +02:00
tests.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00