diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-10-28 12:56:51 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-10-28 12:58:10 -0700 |
| commit | 83219269d54a04ac072cce0e4eb6d7ca7d07014c (patch) | |
| tree | c2a64349235ce962ebcc47c8ceb9f5861adcb42f /src/comp/syntax/parse | |
| parent | bdd358e26e639d35a023be588b48150a9e9695d8 (diff) | |
| download | rust-83219269d54a04ac072cce0e4eb6d7ca7d07014c.tar.gz rust-83219269d54a04ac072cce0e4eb6d7ca7d07014c.zip | |
rustc: Remove broken --depend flag
Diffstat (limited to 'src/comp/syntax/parse')
| -rw-r--r-- | src/comp/syntax/parse/eval.rs | 6 | ||||
| -rw-r--r-- | src/comp/syntax/parse/parser.rs | 3 |
2 files changed, 0 insertions, 9 deletions
diff --git a/src/comp/syntax/parse/eval.rs b/src/comp/syntax/parse/eval.rs index 75ad25748b7..8a48a8ec2d1 100644 --- a/src/comp/syntax/parse/eval.rs +++ b/src/comp/syntax/parse/eval.rs @@ -8,14 +8,9 @@ import syntax::parse::parser::{parser, new_parser_from_file, parse_mod_items, SOURCE_FILE}; export eval_crate_directives_to_mod; -export mode_parse; - -tag eval_mode { mode_depend; mode_parse; } type ctx = @{p: parser, - mode: eval_mode, - mutable deps: [str], sess: parser::parse_sess, mutable chpos: uint, mutable byte_pos: uint, @@ -48,7 +43,6 @@ fn eval_crate_directive(cx: ctx, cdir: @ast::crate_directive, prefix: str, if std::fs::path_is_absolute(file_path) { file_path } else { prefix + std::fs::path_sep() + file_path }; - if cx.mode == mode_depend { cx.deps += [full_path]; ret; } let p0 = new_parser_from_file(cx.sess, cx.cfg, full_path, cx.chpos, cx.byte_pos, SOURCE_FILE); diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index dea3b493bd5..dc1b7fb3047 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -2584,11 +2584,8 @@ fn parse_crate_from_crate_file(input: str, cfg: ast::crate_cfg, let crate_attrs = leading_attrs.inner; let first_cdir_attr = leading_attrs.next; let cdirs = parse_crate_directives(p, token::EOF, first_cdir_attr); - let deps: [str] = []; let cx = @{p: p, - mode: eval::mode_parse, - mutable deps: deps, sess: sess, mutable chpos: p.get_chpos(), mutable byte_pos: p.get_byte_pos(), |
