]> git.lizzy.rs Git - rust.git/commitdiff
fix rustc_driver tests
authorNiko Matsakis <niko@alum.mit.edu>
Tue, 25 Sep 2018 17:58:22 +0000 (13:58 -0400)
committerNiko Matsakis <niko@alum.mit.edu>
Wed, 26 Sep 2018 13:38:26 +0000 (09:38 -0400)
src/librustc_driver/test.rs

index 0a7bd3d97022dbc241b4d023be2a1b66cff00bee..fec69d91d8cf713f4cb599576e44b47503880d2c 100644 (file)
@@ -21,7 +21,7 @@
 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);
         });
     });