6928a10e3f
env! aborts compilation of the specified environment variable is not defined and takes an optional second argument containing a custom error message. option_env! creates an Option<&'static str> containing the value of the environment variable. There are no run-pass tests that check the behavior when the environment variable is defined since the test framework doesn't support setting environment variables at compile time as opposed to runtime. However, both env! and option_env! are used inside of rustc itself, which should act as a sufficient test. Fixes #2248. |
||
---|---|---|
.. | ||
ext | ||
parse | ||
util | ||
abi.rs | ||
ast_map.rs | ||
ast_util.rs | ||
ast.rs | ||
attr.rs | ||
codemap.rs | ||
diagnostic.rs | ||
fold.rs | ||
oldvisit.rs | ||
opt_vec.rs | ||
syntax.rs | ||
visit.rs |