about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-06-03 08:22:54 -0700
committerbors <bors@rust-lang.org>2016-06-03 08:22:54 -0700
commit1ceaa86e0adfcee66e549e975b2afeeb7ae8a34b (patch)
treebf65461314e03edb17ae2cf487397fa9e964a932 /src/test
parent9552bcdd92dfd09049ce9dd299b4bfc513ac075d (diff)
parent3fc0407fb39baa6f0048ff30c5f8f9cc8eba269c (diff)
downloadrust-1ceaa86e0adfcee66e549e975b2afeeb7ae8a34b.tar.gz
rust-1ceaa86e0adfcee66e549e975b2afeeb7ae8a34b.zip
Auto merge of #33997 - jseyfried:resolve_in_phase_2, r=nrc
Move name resolution into phase 2

r? @nrc
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-make/dep-info-no-analysis/Makefile6
-rw-r--r--src/test/run-make/dep-info-no-analysis/input.dd3
-rw-r--r--src/test/run-make/dep-info-no-analysis/input.rs14
-rw-r--r--src/test/run-make/execution-engine/test.rs12
4 files changed, 3 insertions, 32 deletions
diff --git a/src/test/run-make/dep-info-no-analysis/Makefile b/src/test/run-make/dep-info-no-analysis/Makefile
deleted file mode 100644
index 5d2cfadfd02..00000000000
--- a/src/test/run-make/dep-info-no-analysis/Makefile
+++ /dev/null
@@ -1,6 +0,0 @@
--include ../tools.mk
-
-all:
-	$(RUSTC) -o $(TMPDIR)/input.dd -Z no-analysis --emit dep-info input.rs
-	sed -i'.bak' 's/^.*input.dd/input.dd/g' $(TMPDIR)/input.dd
-	diff -u $(TMPDIR)/input.dd input.dd
diff --git a/src/test/run-make/dep-info-no-analysis/input.dd b/src/test/run-make/dep-info-no-analysis/input.dd
deleted file mode 100644
index f2c8676515b..00000000000
--- a/src/test/run-make/dep-info-no-analysis/input.dd
+++ /dev/null
@@ -1,3 +0,0 @@
-input.dd: input.rs
-
-input.rs:
diff --git a/src/test/run-make/dep-info-no-analysis/input.rs b/src/test/run-make/dep-info-no-analysis/input.rs
deleted file mode 100644
index 523b0f0670c..00000000000
--- a/src/test/run-make/dep-info-no-analysis/input.rs
+++ /dev/null
@@ -1,14 +0,0 @@
-// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
-// Tests that dep info can be emitted without resolving external crates.
-extern crate not_there;
-
-fn main() {}
diff --git a/src/test/run-make/execution-engine/test.rs b/src/test/run-make/execution-engine/test.rs
index 0e84a0f5221..8a7959212f5 100644
--- a/src/test/run-make/execution-engine/test.rs
+++ b/src/test/run-make/execution-engine/test.rs
@@ -238,15 +238,9 @@ fn compile_program(input: &str, sysroot: PathBuf)
 
         let krate = panictry!(driver::phase_1_parse_input(&sess, cfg, &input));
 
-        let krate = driver::phase_2_configure_and_expand(&sess, &cstore, krate, &id, None)
-            .expect("phase_2 returned `None`");
-
-        let krate = driver::assign_node_ids(&sess, krate);
-        let mut defs = ast_map::collect_definitions(&krate);
-        read_local_crates(&sess, &cstore, &defs, &krate, &id, &dep_graph);
-        let (analysis, resolutions, mut hir_forest) = {
-            driver::lower_and_resolve(&sess, &id, &mut defs, &krate,
-                                      &sess.dep_graph, MakeGlobMap::No)
+        let driver::ExpansionResult { defs, analysis, resolutions, mut hir_forest, .. } = {
+            driver::phase_2_configure_and_expand(&sess, &cstore, krate, &id, None, MakeGlobMap::No)
+                .expect("phase_2 returned `None`")
         };
 
         let arenas = ty::CtxtArenas::new();