From 8d53b89b66bd4ae765e102afbd4d3a24c12f6c3e Mon Sep 17 00:00:00 2001 From: Fabian Drinck Date: Sun, 10 Jun 2018 18:07:58 +0200 Subject: [PATCH] Circumvent const fn problem --- src/librustc_driver/test.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_driver/test.rs b/src/librustc_driver/test.rs index d8894722519c..f66a4f8a538a 100644 --- a/src/librustc_driver/test.rs +++ b/src/librustc_driver/test.rs @@ -184,7 +184,7 @@ fn test_env_with_pool( } 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> {