Skip to content

Commit 86fca87

Browse files
committed
Use the correct span when emitting the env! result
1 parent 9c8a269 commit 86fca87

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_builtin_macros/src

1 file changed

+1
-1
lines changed

compiler/rustc_builtin_macros/src/env.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ pub fn expand_env<'cx>(
108108

109109
return DummyResult::any(sp);
110110
}
111-
Some(value) => cx.expr_str(sp, value),
111+
Some(value) => cx.expr_str(span, value),
112112
};
113113
MacEager::expr(e)
114114
}

0 commit comments

Comments
 (0)