diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2017-10-31 15:24:55 -0400 |
|---|---|---|
| committer | Sean Griffin <sean@seantheprogrammer.com> | 2018-03-01 08:04:26 -0700 |
| commit | 17df455c2eda9717e2d7ff2f43809b553852d7e6 (patch) | |
| tree | 3804cad77be0b8bc6cb160c3d582060a9f6de39d | |
| parent | a985634fc08893d9e1255e287ad4bacc2cefa2ce (diff) | |
| download | rust-17df455c2eda9717e2d7ff2f43809b553852d7e6.tar.gz rust-17df455c2eda9717e2d7ff2f43809b553852d7e6.zip | |
fix tests in `librustc_driver`
| -rw-r--r-- | src/librustc_driver/test.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustc_driver/test.rs b/src/librustc_driver/test.rs index 35d2205cf33..665a71a9089 100644 --- a/src/librustc_driver/test.rs +++ b/src/librustc_driver/test.rs @@ -444,7 +444,8 @@ fn sub_free_bound_false_infer() { //! does NOT hold for any instantiation of `_#1`. test_env(EMPTY_SOURCE_STR, errors(&[]), |env| { - let t_infer1 = env.infcx.next_ty_var(TypeVariableOrigin::MiscVariable(DUMMY_SP)); + let t_infer1 = env.infcx.next_ty_var(ty::UniverseIndex::ROOT, + TypeVariableOrigin::MiscVariable(DUMMY_SP)); let t_rptr_bound1 = env.t_rptr_late_bound(1); env.check_not_sub(env.t_fn(&[t_infer1], env.tcx().types.isize), env.t_fn(&[t_rptr_bound1], env.tcx().types.isize)); |
