about summary refs log tree commit diff
path: root/src/test/codegen/stack-alloc-string-slice.rs
diff options
context:
space:
mode:
authorSteven Fackler <sfackler@gmail.com>2013-08-07 00:50:23 -0400
committerSteven Fackler <sfackler@gmail.com>2013-08-08 10:35:42 -0700
commitc3825c835197a97ff4f254802efde80335d3833b (patch)
tree9e9d9bca31ab992cc5de1434e7cbcf917261a3e6 /src/test/codegen/stack-alloc-string-slice.rs
parent9db698a81b0d68b093030fe52f941146aba65dd3 (diff)
downloadrust-c3825c835197a97ff4f254802efde80335d3833b.tar.gz
rust-c3825c835197a97ff4f254802efde80335d3833b.zip
env! syntax extension changes
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.

Close #2248
Diffstat (limited to 'src/test/codegen/stack-alloc-string-slice.rs')
0 files changed, 0 insertions, 0 deletions