diff options
| author | Paul Stansifer <paul.stansifer@gmail.com> | 2012-05-24 13:44:42 -0700 | 
|---|---|---|
| committer | Paul Stansifer <paul.stansifer@gmail.com> | 2012-05-24 14:39:22 -0700 | 
| commit | 5b72e52e472ca06f42700a322dc2cac4c38e05f1 (patch) | |
| tree | e72b6b15740c5c166e5c2ed9f4ef417a1ae7d93f /src/librustsyntax/parse/eval.rs | |
| parent | 09652c8f5f0f12913396898afd4fb382ae90a448 (diff) | |
| download | rust-5b72e52e472ca06f42700a322dc2cac4c38e05f1.tar.gz rust-5b72e52e472ca06f42700a322dc2cac4c38e05f1.zip | |
Access parse/attrs.rs with an impl.
Diffstat (limited to 'src/librustsyntax/parse/eval.rs')
| -rw-r--r-- | src/librustsyntax/parse/eval.rs | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/src/librustsyntax/parse/eval.rs b/src/librustsyntax/parse/eval.rs index 1e883083e94..98d75499878 100644 --- a/src/librustsyntax/parse/eval.rs +++ b/src/librustsyntax/parse/eval.rs @@ -1,5 +1,5 @@ import parser::{parser, SOURCE_FILE}; -import attr::parse_inner_attrs_and_next; +import attr::parser_attr; export eval_crate_directives_to_mod; @@ -65,7 +65,7 @@ fn parse_companion_mod(cx: ctx, prefix: str, suffix: option<str>) if file_exists(modpath) { #debug("found companion mod"); let p0 = new_parser_from_file(cx.sess, cx.cfg, modpath, SOURCE_FILE); - let inner_attrs = parse_inner_attrs_and_next(p0); + let inner_attrs = p0.parse_inner_attrs_and_next(); let first_item_outer_attrs = inner_attrs.next; let m0 = p0.parse_mod_items(token::EOF, first_item_outer_attrs); cx.sess.chpos = p0.reader.chpos; @@ -97,7 +97,7 @@ fn eval_crate_directive(cx: ctx, cdir: @ast::crate_directive, prefix: str, } else { prefix + path::path_sep() + file_path }; let p0 = new_parser_from_file(cx.sess, cx.cfg, full_path, SOURCE_FILE); - let inner_attrs = parse_inner_attrs_and_next(p0); + let inner_attrs = p0.parse_inner_attrs_and_next(); let mod_attrs = attrs + inner_attrs.inner; let first_item_outer_attrs = inner_attrs.next; let m0 = p0.parse_mod_items(token::EOF, first_item_outer_attrs); | 
