1
Fork 0

Workaround issue #107747

Only required until fix #107803 is merged into stage0 compiler, expected
when beta 1.69.0 is released on 2023-03-09, then this commit can be
reverted.
This commit is contained in:
Alan Egerton 2023-02-11 10:02:18 +00:00
parent 36d09e3906
commit b409329c62
No known key found for this signature in database
GPG key ID: 7D4C2F6C22122532
5 changed files with 17 additions and 3 deletions

View file

@ -7,8 +7,10 @@ use rustc_arena::DroplessArena;
use rustc_hir::def::DefKind;
use rustc_hir::def_id::{DefId, LocalDefId};
use rustc_middle::ty::query::Providers;
#[cfg(not(bootstrap))]
use rustc_middle::ty::TypeVisitable;
use rustc_middle::ty::{self, CrateVariancesMap, SubstsRef, Ty, TyCtxt};
use rustc_middle::ty::{DefIdTree, TypeSuperVisitable, TypeVisitable};
use rustc_middle::ty::{DefIdTree, TypeSuperVisitable};
use std::ops::ControlFlow;
/// Defines the `TermsContext` basically houses an arena where we can