We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca72d7f commit 09ed27cCopy full SHA for 09ed27c
src/libsyntax/ext/base.rs
@@ -681,7 +681,6 @@ impl<'a> ExtCtxt<'a> {
681
pub fn expansion_cause(&self) -> Span {
682
let mut expn_id = self.backtrace;
683
let mut last_macro = None;
684
- let mut current_expn = None;
685
loop {
686
if self.codemap().with_expn_info(expn_id, |info| {
687
info.map_or(None, |i| {
@@ -690,7 +689,6 @@ impl<'a> ExtCtxt<'a> {
690
689
return None;
691
}
692
expn_id = i.call_site.expn_id;
693
- current_expn = Some(i.call_site);
694
if i.callee.format != CompilerExpansion {
695
last_macro = Some(i.call_site)
696
0 commit comments