Skip to content

Commit 17df455

Browse files
nikomatsakissgrif
authored andcommitted
fix tests in librustc_driver
1 parent a985634 commit 17df455

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustc_driver/test.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,8 @@ fn sub_free_bound_false_infer() {
444444
//! does NOT hold for any instantiation of `_#1`.
445445
446446
test_env(EMPTY_SOURCE_STR, errors(&[]), |env| {
447-
let t_infer1 = env.infcx.next_ty_var(TypeVariableOrigin::MiscVariable(DUMMY_SP));
447+
let t_infer1 = env.infcx.next_ty_var(ty::UniverseIndex::ROOT,
448+
TypeVariableOrigin::MiscVariable(DUMMY_SP));
448449
let t_rptr_bound1 = env.t_rptr_late_bound(1);
449450
env.check_not_sub(env.t_fn(&[t_infer1], env.tcx().types.isize),
450451
env.t_fn(&[t_rptr_bound1], env.tcx().types.isize));

0 commit comments

Comments
 (0)