Skip to content

Commit f04a7fc

Browse files
authored
Rollup merge of #107384 - Nilstrieb:bool-for-deletion, r=oli-obk
Remove `BOOL_TY_FOR_UNIT_TESTING` It is not used anymore for unit testing.
2 parents 36a2f0f + 5152e84 commit f04a7fc

File tree

1 file changed

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

1 file changed

+0
-13
lines changed

Diff for: compiler/rustc_middle/src/ty/mod.rs

-13
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ pub use generics::*;
3131
use rustc_ast as ast;
3232
use rustc_ast::node_id::NodeMap;
3333
use rustc_attr as attr;
34-
use rustc_data_structures::fingerprint::Fingerprint;
3534
use rustc_data_structures::fx::{FxHashMap, FxHashSet, FxIndexMap, FxIndexSet};
3635
use rustc_data_structures::intern::Interned;
3736
use rustc_data_structures::stable_hasher::{HashStable, StableHasher};
@@ -453,18 +452,6 @@ pub struct CReaderCacheKey {
453452
#[rustc_pass_by_value]
454453
pub struct Ty<'tcx>(Interned<'tcx, WithCachedTypeInfo<TyKind<'tcx>>>);
455454

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-
468455
impl ty::EarlyBoundRegion {
469456
/// Does this early bound region have a name? Early bound regions normally
470457
/// always have names except when using anonymous lifetimes (`'_`).

0 commit comments

Comments
 (0)