rust/compiler/rustc_expand/src
Mara Bos 540d4743cc
Rollup merge of #78603 - petrochenkov:fourdigits, r=matthewjasper
expand: Tweak a comment in implementation of `macro_rules`

The answer to the removed FIXME is that we don't apply mark to the span `sp` just because that span is no longer used. We could apply it, but that would just be unnecessary extra work.

The comments in code tell why the span is unused, it's a span of `$var` literally, which is lost for `tt` variables because their tokens are outputted directly, but kept for other variables which are outputted as [groups](https://doc.rust-lang.org/nightly/proc_macro/struct.Group.html) and `sp` is kept as the group's span.

Closes https://github.com/rust-lang/rust/issues/2887
2020-11-01 11:53:37 +01:00
..
mbe expand: Tweak a comment in implementation of macro_rules 2020-10-31 18:13:46 +03: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 parser: Cleanup LazyTokenStream and avoid some clones 2020-10-31 01:56:34 +03:00
expand.rs Rollup merge of #78326 - Aaron1011:fix/min-stmt-lints, r=petrochenkov 2020-10-25 18:43:49 +09:00
lib.rs Remove redundant #![feature(...)] 's from compiler/ 2020-09-17 07:58:45 +02:00
mbe.rs Fix some more clippy warnings 2020-10-30 10:12:56 -04:00
module.rs Syntactically permit unsafety on mods 2020-09-10 06:56:33 -07:00
placeholders.rs Fix some more clippy warnings 2020-10-30 10:12:56 -04:00
proc_macro_server.rs Rollup merge of #75146 - tmiasko:range-overflow, r=Mark-Simulacrum 2020-09-16 01:30:30 +02:00
proc_macro.rs Improve E0777 help message 2020-10-02 16:33:44 +02:00
tests.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00