rust/compiler/rustc_ast/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
..
ast mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
attr Unconditionally capture tokens for attributes. 2020-10-21 18:57:29 -04:00
expand mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
util Auto merge of #78066 - bugadani:wat, r=jonas-schievink 2020-10-18 13:50:31 +00:00
ast.rs Unconditionally capture tokens for attributes. 2020-10-21 18:57:29 -04:00
crate_disambiguator.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
entry.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
lib.rs tidy 2020-09-23 22:08:30 +02:00
mut_visit.rs Unconditionally capture tokens for attributes. 2020-10-21 18:57:29 -04:00
node_id.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
ptr.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
token.rs Parse inline const expressions 2020-10-16 15:15:30 -03:00
tokenstream.rs Auto merge of #77250 - Aaron1011:feature/flat-token-collection, r=petrochenkov 2020-10-21 15:03:14 +00:00
visit.rs Add check_generic_arg early pass 2020-10-16 17:14:36 -03:00