diff options
| author | Fabian Drinck <fabian.drinck@rwth-aachen.de> | 2018-06-10 18:07:58 +0200 |
|---|---|---|
| committer | Fabian Drinck <fabian.drinck@rwth-aachen.de> | 2018-06-14 18:44:37 +0200 |
| commit | 8d53b89b66bd4ae765e102afbd4d3a24c12f6c3e (patch) | |
| tree | a44e1208a376dc3b90857a131fa9fb91ad08c734 /src | |
| parent | 3f2060aa7c07f3c7788b56d190446663bc67d360 (diff) | |
| download | rust-8d53b89b66bd4ae765e102afbd4d3a24c12f6c3e.tar.gz rust-8d53b89b66bd4ae765e102afbd4d3a24c12f6c3e.zip | |
Circumvent const fn problem
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_driver/test.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_driver/test.rs b/src/librustc_driver/test.rs index d8894722519..f66a4f8a538 100644 --- a/src/librustc_driver/test.rs +++ b/src/librustc_driver/test.rs @@ -184,7 +184,7 @@ fn test_env_with_pool<F>( } const D1: ty::DebruijnIndex = ty::INNERMOST; -const D2: ty::DebruijnIndex = D1.shifted_in(1); +const D2: ty::DebruijnIndex = ty::DebruijnIndex(1); impl<'a, 'gcx, 'tcx> Env<'a, 'gcx, 'tcx> { pub fn tcx(&self) -> TyCtxt<'a, 'gcx, 'tcx> { |
