From 7b18976f085a741322c735f0a4279816547d7eaf Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 27 Sep 2013 19:46:09 -0700 Subject: Remove all usage of @ast::Crate --- src/libsyntax/parse/mod.rs | 4 ++-- src/libsyntax/parse/parser.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libsyntax/parse') 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(), -- cgit 1.4.1-3-g733a5