rust/src/libsyntax
bors 9d1de0b699 auto merge of #11077 : alexcrichton/rust/crate-id, r=cmr
Right now the --crate-id and related flags are all process *after* the entire
crate is parsed. This is less than desirable when used with makefiles because it
means that just to learn the output name of the crate you have to parse the
entire crate (unnecessary).

This commit changes the behavior to lift the handling of these flags much sooner
in the compilation process. This allows us to not have to parse the entire crate
and only have to worry about parsing the crate attributes themselves. The
related methods have all been updated to take an array of attributes rather than
a crate.

Additionally, this ceases duplication of the "what output are we producing"
logic in order to correctly handle things in the case of --test.

Finally, this adds tests for all of this functionality to ensure that it does
not regress.
2013-12-20 15:21:33 -08:00
..
ext Remove obsolete mutability from ast::Ty 2013-12-17 03:01:40 +09:00
parse auto merge of #11077 : alexcrichton/rust/crate-id, r=cmr 2013-12-20 15:21:33 -08:00
print Remove obsolete mutability from ast::Ty 2013-12-17 03:01:40 +09:00
util Remove dead codes 2013-12-08 02:55:28 -05:00
abi.rs libsyntax: Remove all non-proc do syntax. 2013-11-26 08:24:18 -08:00
ast.rs Remove obsolete mutability from ast::Ty 2013-12-17 03:01:40 +09:00
ast_map.rs Generalize item_span into node_span, which works on more types. 2013-12-19 19:58:08 +08:00
ast_util.rs Remove fk_anon 2013-12-12 23:01:47 +09:00
attr.rs Rename pkgid to crate_id 2013-12-19 10:10:23 -05:00
codemap.rs Add --dep-info to write Makefile-compatible dependency info. 2013-12-12 13:57:47 -07:00
diagnostic.rs syntax: print expansion info from #[attribute] macros in the correct 2013-12-07 13:41:11 +11:00
fold.rs Remove obsolete mutability from ast::Ty 2013-12-17 03:01:40 +09:00
lib.rs Rename pkgid to crate_id 2013-12-19 10:10:23 -05:00
opt_vec.rs Make 'self lifetime illegal. 2013-12-11 10:54:06 -08:00
pkgid.rs Change pkgid parser to allow overriding the inferred crate name. 2013-12-17 07:41:39 -07:00
visit.rs auto merge of #11005 : sanxiyn/rust/mut, r=alexcrichton 2013-12-17 06:26:40 -08:00