diff options
| author | bors <bors@rust-lang.org> | 2016-06-13 21:07:30 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-06-13 21:07:30 -0700 |
| commit | bf84f4e171fa0169af59881bc5d87ecc84d61523 (patch) | |
| tree | d8b761d077e741723110a4d5d945748fb17cac57 /src/libsyntax/ext/expand.rs | |
| parent | 6551acc8e560d242f317f4fe4324be0962c5db75 (diff) | |
| parent | 2477341d057aff05a8a009a7eb7a1168ccd4e277 (diff) | |
| download | rust-bf84f4e171fa0169af59881bc5d87ecc84d61523.tar.gz rust-bf84f4e171fa0169af59881bc5d87ecc84d61523.zip | |
Auto merge of #33749 - jseyfried:fix_call_site_span, r=nrc
Fix macro call site spans Fix macro call site spans. r? @nrc
Diffstat (limited to 'src/libsyntax/ext/expand.rs')
| -rw-r--r-- | src/libsyntax/ext/expand.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs index 31971842d63..83ddc79af84 100644 --- a/src/libsyntax/ext/expand.rs +++ b/src/libsyntax/ext/expand.rs @@ -236,14 +236,8 @@ fn expand_mac_invoc<T>(mac: ast::Mac, ident: Option<Ident>, attrs: Vec<ast::Attr }, }); - // The span that we pass to the expanders we want to - // be the root of the call stack. That's the most - // relevant span and it's the actual invocation of - // the macro. - let mac_span = fld.cx.original_span(); - let marked_tts = mark_tts(&tts[..], mark); - Some(expandfun.expand(fld.cx, mac_span, &marked_tts)) + Some(expandfun.expand(fld.cx, call_site, &marked_tts)) } IdentTT(ref expander, tt_span, allow_internal_unstable) => { |
