about summary refs log tree commit diff
path: root/compiler/rustc_mir/src/transform/coverage/debug.rs
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2020-11-01 11:53:37 +0100
committerGitHub <noreply@github.com>2020-11-01 11:53:37 +0100
commit540d4743ccc7597f68d9832c232e212167ae2fac (patch)
tree3bd9ea7fd1d84077382a1422d6e180898591e1cc /compiler/rustc_mir/src/transform/coverage/debug.rs
parent8ed31d278244d3db9d326b7480f53eaa02429e60 (diff)
parent7652bc3f683d2d0a70ef4da47dc730bf41f2f87d (diff)
downloadrust-540d4743ccc7597f68d9832c232e212167ae2fac.tar.gz
rust-540d4743ccc7597f68d9832c232e212167ae2fac.zip
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
Diffstat (limited to 'compiler/rustc_mir/src/transform/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions