Skip to content

Commit 8d53b89

Browse files
Circumvent const fn problem
1 parent 3f2060a commit 8d53b89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_driver/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ fn test_env_with_pool<F>(
184184
}
185185

186186
const D1: ty::DebruijnIndex = ty::INNERMOST;
187-
const D2: ty::DebruijnIndex = D1.shifted_in(1);
187+
const D2: ty::DebruijnIndex = ty::DebruijnIndex(1);
188188

189189
impl<'a, 'gcx, 'tcx> Env<'a, 'gcx, 'tcx> {
190190
pub fn tcx(&self) -> TyCtxt<'a, 'gcx, 'tcx> {

0 commit comments

Comments
 (0)