1
Fork 0

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

@ -32,7 +32,7 @@ pub fn expand_option_env<'cx>(cx: &'cx mut ExtCtxt,
Some(v) => v,
};
let sp = sp.with_ctxt(sp.ctxt().apply_mark(cx.current_expansion.mark));
let sp = sp.apply_mark(cx.current_expansion.mark);
let e = match env::var(&*var.as_str()) {
Err(..) => {
let lt = cx.lifetime(sp, keywords::StaticLifetime.ident());