Skip to content

Commit cbaf36a

Browse files
committed
fix rustc_driver tests
1 parent e2deef3 commit cbaf36a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_driver/test.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use rustc::ty::subst::Subst;
2121
use rustc::traits::ObligationCause;
2222
use rustc::ty::{self, Ty, TyCtxt, TypeFoldable};
2323
use rustc::ty::query::OnDiskCache;
24-
use rustc::infer::{self, InferOk, InferResult};
24+
use rustc::infer::{self, InferOk, InferResult, SuppressRegionErrors};
2525
use rustc::infer::outlives::env::OutlivesEnvironment;
2626
use rustc::infer::type_variable::TypeVariableOrigin;
2727
use rustc_metadata::cstore::CStore;
@@ -177,7 +177,7 @@ fn test_env_with_pool<F>(
177177
});
178178
let outlives_env = OutlivesEnvironment::new(param_env);
179179
let def_id = tcx.hir.local_def_id(ast::CRATE_NODE_ID);
180-
infcx.resolve_regions_and_report_errors(def_id, &region_scope_tree, &outlives_env);
180+
infcx.resolve_regions_and_report_errors(def_id, &region_scope_tree, &outlives_env, SuppressRegionErrors::default());
181181
assert_eq!(tcx.sess.err_count(), expected_err_count);
182182
});
183183
});

0 commit comments

Comments
 (0)