Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 454c473

Browse files
committed
Remove BOOL_TY_FOR_UNIT_TESTING
It is not used anymore for unit testing.
1 parent 7919ef0 commit 454c473

File tree

1 file changed

+0
-12
lines changed
  • compiler/rustc_middle/src/ty

1 file changed

+0
-12
lines changed

compiler/rustc_middle/src/ty/mod.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -453,18 +453,6 @@ pub struct CReaderCacheKey {
453453
#[rustc_pass_by_value]
454454
pub struct Ty<'tcx>(Interned<'tcx, WithCachedTypeInfo<TyKind<'tcx>>>);
455455

456-
impl<'tcx> TyCtxt<'tcx> {
457-
/// A "bool" type used in rustc_mir_transform unit tests when we
458-
/// have not spun up a TyCtxt.
459-
pub const BOOL_TY_FOR_UNIT_TESTING: Ty<'tcx> =
460-
Ty(Interned::new_unchecked(&WithCachedTypeInfo {
461-
internee: ty::Bool,
462-
stable_hash: Fingerprint::ZERO,
463-
flags: TypeFlags::empty(),
464-
outer_exclusive_binder: DebruijnIndex::from_usize(0),
465-
}));
466-
}
467-
468456
impl ty::EarlyBoundRegion {
469457
/// Does this early bound region have a name? Early bound regions normally
470458
/// always have names except when using anonymous lifetimes (`'_`).

0 commit comments

Comments
 (0)