about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2018-09-25 13:58:22 -0400
committerNiko Matsakis <niko@alum.mit.edu>2018-09-26 09:38:26 -0400
commitcbaf36adaf268eb4e4da7abb0ef2f4cd5380497d (patch)
treee5a92288587c21b1a3230961c8b218720cf8745a /src
parente2deef32d4a2f07249c567534528d5264ba0a160 (diff)
downloadrust-cbaf36adaf268eb4e4da7abb0ef2f4cd5380497d.tar.gz
rust-cbaf36adaf268eb4e4da7abb0ef2f4cd5380497d.zip
fix rustc_driver tests
Diffstat (limited to 'src')
-rw-r--r--src/librustc_driver/test.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_driver/test.rs b/src/librustc_driver/test.rs
index 0a7bd3d9702..fec69d91d8c 100644
--- a/src/librustc_driver/test.rs
+++ b/src/librustc_driver/test.rs
@@ -21,7 +21,7 @@ use rustc::ty::subst::Subst;
 use rustc::traits::ObligationCause;
 use rustc::ty::{self, Ty, TyCtxt, TypeFoldable};
 use rustc::ty::query::OnDiskCache;
-use rustc::infer::{self, InferOk, InferResult};
+use rustc::infer::{self, InferOk, InferResult, SuppressRegionErrors};
 use rustc::infer::outlives::env::OutlivesEnvironment;
 use rustc::infer::type_variable::TypeVariableOrigin;
 use rustc_metadata::cstore::CStore;
@@ -177,7 +177,7 @@ fn test_env_with_pool<F>(
             });
             let outlives_env = OutlivesEnvironment::new(param_env);
             let def_id = tcx.hir.local_def_id(ast::CRATE_NODE_ID);
-            infcx.resolve_regions_and_report_errors(def_id, &region_scope_tree, &outlives_env);
+            infcx.resolve_regions_and_report_errors(def_id, &region_scope_tree, &outlives_env, SuppressRegionErrors::default());
             assert_eq!(tcx.sess.err_count(), expected_err_count);
         });
     });