diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-09-27 19:46:09 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-09-29 16:21:25 -0700 |
| commit | 7b18976f085a741322c735f0a4279816547d7eaf (patch) | |
| tree | e610f211effee055e5bad662a561f67580e62e45 /src/libsyntax/parse | |
| parent | 22ef7e72f4c96b7688dad08c498a4389077d033a (diff) | |
| download | rust-7b18976f085a741322c735f0a4279816547d7eaf.tar.gz rust-7b18976f085a741322c735f0a4279816547d7eaf.zip | |
Remove all usage of @ast::Crate
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/mod.rs | 4 | ||||
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/libsyntax/parse/mod.rs b/src/libsyntax/parse/mod.rs index 37f2f8345cd..a492a2283e3 100644 --- a/src/libsyntax/parse/mod.rs +++ b/src/libsyntax/parse/mod.rs @@ -73,7 +73,7 @@ pub fn parse_crate_from_file( input: &Path, cfg: ast::CrateConfig, sess: @mut ParseSess -) -> @ast::Crate { +) -> ast::Crate { new_parser_from_file(sess, /*bad*/ cfg.clone(), input).parse_crate_mod() // why is there no p.abort_if_errors here? } @@ -83,7 +83,7 @@ pub fn parse_crate_from_source_str( source: @str, cfg: ast::CrateConfig, sess: @mut ParseSess -) -> @ast::Crate { +) -> ast::Crate { let p = new_parser_from_source_str(sess, /*bad*/ cfg.clone(), name, diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 6c905c252c1..5a68e32a533 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -5140,7 +5140,7 @@ impl Parser { // Parses a source module as a crate. This is the main // entry point for the parser. - pub fn parse_crate_mod(&self) -> @Crate { + pub fn parse_crate_mod(&self) -> Crate { let lo = self.span.lo; // parse the crate's inner attrs, maybe (oops) one // of the attrs of an item: @@ -5149,7 +5149,7 @@ impl Parser { // parse the items inside the crate: let m = self.parse_mod_items(token::EOF, first_item_outer_attrs); - @ast::Crate { + ast::Crate { module: m, attrs: inner, config: self.cfg.clone(), |
