Produce expansion info for more builtin macros

This commit is contained in:
Oliver Schneider 2017-09-01 17:45:46 +02:00
parent a59a6d8a56
commit c4d5a1e17b
No known key found for this signature in database
GPG key ID: A69F8D225B3AD7D9
6 changed files with 15 additions and 5 deletions

View file

@ -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,