rust/src/libsyntax
bors 6928a10e3f auto merge of #8362 : sfackler/rust/env, r=alexcrichton
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.
2013-08-09 05:35:06 -07:00
..
ext auto merge of #8362 : sfackler/rust/env, r=alexcrichton 2013-08-09 05:35:06 -07:00
parse Forbid priv where it has no effect 2013-08-07 22:41:12 -04:00
print Updated std::Option, std::Either and std::Result 2013-08-05 22:42:21 +02:00
util remove obsolete foreach keyword 2013-08-03 22:48:02 -04:00
abi.rs Updated std::Option, std::Either and std::Result 2013-08-05 22:42:21 +02:00
ast_map.rs Make node_id_to_str print more useful info in some cases. Closes #2410. 2013-08-05 10:33:55 -07:00
ast_util.rs core: option.map_consume -> option.map_move 2013-08-07 08:52:09 -07:00
ast.rs Updated std::Option, std::Either and std::Result 2013-08-05 22:42:21 +02:00
attr.rs core: option.map_consume -> option.map_move 2013-08-07 08:52:09 -07:00
codemap.rs auto merge of #8278 : cmr/rust/workaround, r=brson 2013-08-05 20:07:59 -07:00
diagnostic.rs core: option.map_consume -> option.map_move 2013-08-07 08:52:09 -07:00
fold.rs core: option.map_consume -> option.map_move 2013-08-07 08:52:09 -07:00
oldvisit.rs rm obsolete for support from the compiler 2013-08-04 00:39:48 -04:00
opt_vec.rs Generalize the ty::substs struct so that it can represent 2013-07-24 16:52:57 -04:00
syntax.rs Add initial support for a new formatting syntax 2013-08-07 19:21:43 -07:00
visit.rs rm obsolete for support from the compiler 2013-08-04 00:39:48 -04:00