Use Span::apply_mark
where possible
This commit is contained in:
parent
e2afefd80b
commit
43ad972318
9 changed files with 14 additions and 14 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue