From 6faba5bf8d19de75249280c200399d1cef9abe2b Mon Sep 17 00:00:00 2001 From: Michael Woerister Date: Wed, 25 Oct 2017 17:33:03 +0200 Subject: [PATCH] Fix librustc_driver unit test after API change. --- src/librustc_driver/test.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/librustc_driver/test.rs b/src/librustc_driver/test.rs index 6de36820f0c1..d86d51f37472 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(source_string: &str, resolutions, named_region_map.unwrap(), hir_map, + OnDiskCache::new_empty(sess.codemap()), "test_crate", tx, &outputs,