about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMichael Woerister <michaelwoerister@posteo>2017-10-25 17:33:03 +0200
committerMichael Woerister <michaelwoerister@posteo>2017-10-25 17:33:03 +0200
commit6faba5bf8d19de75249280c200399d1cef9abe2b (patch)
tree0d36a4b30fdb96b1f251f349a079b1c3f5e48dc8 /src
parent87691846e3c92fa2cccd66f7ce3d7b00ee0de1d4 (diff)
downloadrust-6faba5bf8d19de75249280c200399d1cef9abe2b.tar.gz
rust-6faba5bf8d19de75249280c200399d1cef9abe2b.zip
Fix librustc_driver unit test after API change.
Diffstat (limited to 'src')
-rw-r--r--src/librustc_driver/test.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librustc_driver/test.rs b/src/librustc_driver/test.rs
index 6de36820f0c..d86d51f3747 100644
--- a/src/librustc_driver/test.rs
+++ b/src/librustc_driver/test.rs
@@ -23,6 +23,7 @@ use rustc::middle::resolve_lifetime;
 use rustc::ty::subst::{Kind, Subst};
 use rustc::traits::{ObligationCause, Reveal};
 use rustc::ty::{self, Ty, TyCtxt, TypeFoldable};
+use rustc::ty::maps::OnDiskCache;
 use rustc::infer::{self, InferOk, InferResult};
 use rustc::infer::type_variable::TypeVariableOrigin;
 use rustc_metadata::cstore::CStore;
@@ -156,6 +157,7 @@ fn test_env<F>(source_string: &str,
                              resolutions,
                              named_region_map.unwrap(),
                              hir_map,
+                             OnDiskCache::new_empty(sess.codemap()),
                              "test_crate",
                              tx,
                              &outputs,