Skip to content

Commit

Permalink
Use the correct span when emitting the env! result
Browse files Browse the repository at this point in the history
  • Loading branch information
thomcc committed Nov 4, 2023
1 parent 9c8a269 commit 86fca87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_builtin_macros/src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ pub fn expand_env<'cx>(

return DummyResult::any(sp);
}
Some(value) => cx.expr_str(sp, value),
Some(value) => cx.expr_str(span, value),
};
MacEager::expr(e)
}
Expand Down

0 comments on commit 86fca87

Please sign in to comment.