Produce expansion info for more builtin macros
This commit is contained in:
parent
a59a6d8a56
commit
c4d5a1e17b
6 changed files with 15 additions and 5 deletions
|
@ -32,6 +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 e = match env::var(&*var.as_str()) {
|
||||
Err(..) => {
|
||||
cx.expr_path(cx.path_all(sp,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue