Use Span::apply_mark where possible

This commit is contained in:
Vadim Petrochenkov
2018-03-18 23:51:53 +03:00
parent e2afefd80b
commit 43ad972318
9 changed files with 14 additions and 14 deletions

View File

@@ -57,6 +57,6 @@ pub fn expand_syntax_ext(cx: &mut base::ExtCtxt,
}
}
}
let sp = sp.with_ctxt(sp.ctxt().apply_mark(cx.current_expansion.mark));
let sp = sp.apply_mark(cx.current_expansion.mark);
base::MacEager::expr(cx.expr_str(sp, Symbol::intern(&accumulator)))
}