diff options
| author | bors <bors@rust-lang.org> | 2014-02-06 08:06:33 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-02-06 08:06:33 -0800 |
| commit | f039d10cf73d8bc9a57fcdfe38c5f0b0a3a98b5a (patch) | |
| tree | 745138c6ee6d8053b148d3b803dd9d0f54fd8a78 /src/libsyntax/parse | |
| parent | 27dcd873cb63ddf2057cbae341be9ccae7b011c3 (diff) | |
| parent | 5719ff73bfe2f9ed769ad3f454407aac6a727444 (diff) | |
| download | rust-f039d10cf73d8bc9a57fcdfe38c5f0b0a3a98b5a.tar.gz rust-f039d10cf73d8bc9a57fcdfe38c5f0b0a3a98b5a.zip | |
auto merge of #12048 : sanxiyn/rust/crate-config, r=alexcrichton
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/parse/mod.rs b/src/libsyntax/parse/mod.rs index faebd97e7c2..050ff5cef32 100644 --- a/src/libsyntax/parse/mod.rs +++ b/src/libsyntax/parse/mod.rs @@ -74,7 +74,7 @@ pub fn parse_crate_from_file( cfg: ast::CrateConfig, sess: @ParseSess ) -> ast::Crate { - new_parser_from_file(sess, /*bad*/ cfg.clone(), input).parse_crate_mod() + new_parser_from_file(sess, cfg, input).parse_crate_mod() // why is there no p.abort_if_errors here? } @@ -94,7 +94,7 @@ pub fn parse_crate_from_source_str(name: ~str, sess: @ParseSess) -> ast::Crate { let mut p = new_parser_from_source_str(sess, - /*bad*/ cfg.clone(), + cfg, name, source); maybe_aborted(p.parse_crate_mod(),p) @@ -106,7 +106,7 @@ pub fn parse_crate_attrs_from_source_str(name: ~str, sess: @ParseSess) -> ~[ast::Attribute] { let mut p = new_parser_from_source_str(sess, - /*bad*/ cfg.clone(), + cfg, name, source); let (inner, _) = maybe_aborted(p.parse_inner_attrs_and_next(),p); |
