Remove the dep-info-no-analysis test and fix other fallout.
This commit is contained in:
parent
c52968af8c
commit
3fc0407fb3
7 changed files with 21 additions and 73 deletions
|
|
@ -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
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
input.dd: input.rs
|
||||
|
||||
input.rs:
|
||||
|
|
@ -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() {}
|
||||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue