Skip to content

Commit 8fbe448

Browse files
committed
---
yaml --- r: 6017 b: refs/heads/master c: 8321926 h: refs/heads/master i: 6015: b70bc0b v: v3
1 parent e6dfb76 commit 8fbe448

File tree

4 files changed

+1
-11
lines changed

4 files changed

+1
-11
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: bdd358e26e639d35a023be588b48150a9e9695d8
2+
refs/heads/master: 83219269d54a04ac072cce0e4eb6d7ca7d07014c

trunk/src/comp/driver/rustc.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,6 @@ options:
246246
--ls list the symbols defined by a crate file
247247
-L <path> add a directory to the library search path
248248
--noverify suppress LLVM verification step (slight speedup)
249-
--depend print dependencies, in makefile-rule form
250249
--parse-only parse only; do not compile, assemble, or link
251250
--no-trans run all passes except translation; no output
252251
-g produce debug info

trunk/src/comp/syntax/parse/eval.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,9 @@ import syntax::parse::parser::{parser, new_parser_from_file,
88
parse_mod_items, SOURCE_FILE};
99

1010
export eval_crate_directives_to_mod;
11-
export mode_parse;
12-
13-
tag eval_mode { mode_depend; mode_parse; }
1411

1512
type ctx =
1613
@{p: parser,
17-
mode: eval_mode,
18-
mutable deps: [str],
1914
sess: parser::parse_sess,
2015
mutable chpos: uint,
2116
mutable byte_pos: uint,
@@ -48,7 +43,6 @@ fn eval_crate_directive(cx: ctx, cdir: @ast::crate_directive, prefix: str,
4843
if std::fs::path_is_absolute(file_path) {
4944
file_path
5045
} else { prefix + std::fs::path_sep() + file_path };
51-
if cx.mode == mode_depend { cx.deps += [full_path]; ret; }
5246
let p0 =
5347
new_parser_from_file(cx.sess, cx.cfg, full_path, cx.chpos,
5448
cx.byte_pos, SOURCE_FILE);

trunk/src/comp/syntax/parse/parser.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2584,11 +2584,8 @@ fn parse_crate_from_crate_file(input: str, cfg: ast::crate_cfg,
25842584
let crate_attrs = leading_attrs.inner;
25852585
let first_cdir_attr = leading_attrs.next;
25862586
let cdirs = parse_crate_directives(p, token::EOF, first_cdir_attr);
2587-
let deps: [str] = [];
25882587
let cx =
25892588
@{p: p,
2590-
mode: eval::mode_parse,
2591-
mutable deps: deps,
25922589
sess: sess,
25932590
mutable chpos: p.get_chpos(),
25942591
mutable byte_pos: p.get_byte_pos(),

0 commit comments

Comments
 (0)