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

@@ -35,7 +35,7 @@ pub fn expand_assert<'cx>(
None
};
let sp = sp.with_ctxt(sp.ctxt().apply_mark(cx.current_expansion.mark));
let sp = sp.apply_mark(cx.current_expansion.mark);
let panic_call = Mac_ {
path: Path::from_ident(sp, Ident::from_str("panic")),
tts: if let Some(ts) = custom_msg_args {