diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2011-07-14 17:26:10 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2011-07-15 11:38:46 -0700 |
| commit | 917afa4cc9d323a888bb174f46c17610aeebfb2b (patch) | |
| tree | 7bda3042c02f37404b0ddb5efc6c6da7866a3f1d /src/comp/syntax/parse/eval.rs | |
| parent | a716eb28ecc8fcd16c9d2595e989601efaab3b1a (diff) | |
| download | rust-917afa4cc9d323a888bb174f46c17610aeebfb2b.tar.gz rust-917afa4cc9d323a888bb174f46c17610aeebfb2b.zip | |
rustc: Remove a bunch of exterior vectors
Diffstat (limited to 'src/comp/syntax/parse/eval.rs')
| -rw-r--r-- | src/comp/syntax/parse/eval.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/comp/syntax/parse/eval.rs b/src/comp/syntax/parse/eval.rs index 226d84233e0..5488867dcdd 100644 --- a/src/comp/syntax/parse/eval.rs +++ b/src/comp/syntax/parse/eval.rs @@ -1,5 +1,4 @@ -import std::vec; import std::str; import std::option; import std::option::some; @@ -19,7 +18,7 @@ tag eval_mode { mode_depend; mode_parse; } type ctx = @rec(parser p, eval_mode mode, - mutable vec[str] deps, + mutable str[] deps, parser::parse_sess sess, mutable uint chpos, ast::crate_cfg cfg); @@ -55,7 +54,7 @@ fn eval_crate_directive(ctx cx, @ast::crate_directive cdir, str prefix, } else { prefix + std::fs::path_sep() + file_path }; - if (cx.mode == mode_depend) { cx.deps += [full_path]; ret; } + if (cx.mode == mode_depend) { cx.deps += ~[full_path]; ret; } auto p0 = new_parser_from_file(cx.sess, cx.cfg, full_path, cx.chpos); auto inner_attrs = parse_inner_attrs_and_next(p0); |
