]> git.lizzy.rs Git - rust.git/commitdiff
Fix librustc_driver unit test after API change.
authorMichael Woerister <michaelwoerister@posteo>
Wed, 25 Oct 2017 15:33:03 +0000 (17:33 +0200)
committerMichael Woerister <michaelwoerister@posteo>
Wed, 25 Oct 2017 15:33:03 +0000 (17:33 +0200)
src/librustc_driver/test.rs

index 6de36820f0c19746508b8e849cec7888fa239251..d86d51f3747225da74988678638d1021e8317918 100644 (file)
@@ -23,6 +23,7 @@
 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,