diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-01-28 11:11:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-28 11:11:08 +0100 |
| commit | e0c8359ccf0aee2b4f4701d2e5681ceda78f22e4 (patch) | |
| tree | 74af1274c945a35c408c23086e7470493825b071 | |
| parent | b64a75f20bc9f2895e70eb577bb4fa249d8cefdc (diff) | |
| parent | 5152e84024cd9bbeeebd7bf27d048628cfc0cd95 (diff) | |
| download | rust-e0c8359ccf0aee2b4f4701d2e5681ceda78f22e4.tar.gz rust-e0c8359ccf0aee2b4f4701d2e5681ceda78f22e4.zip | |
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.
| -rw-r--r-- | compiler/rustc_middle/src/ty/mod.rs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/compiler/rustc_middle/src/ty/mod.rs b/compiler/rustc_middle/src/ty/mod.rs index 4af29fcbfb5..7001f81aa77 100644 --- a/compiler/rustc_middle/src/ty/mod.rs +++ b/compiler/rustc_middle/src/ty/mod.rs @@ -31,7 +31,6 @@ pub use generics::*; use rustc_ast as ast; use rustc_ast::node_id::NodeMap; use rustc_attr as attr; -use rustc_data_structures::fingerprint::Fingerprint; use rustc_data_structures::fx::{FxHashMap, FxHashSet, FxIndexMap, FxIndexSet}; use rustc_data_structures::intern::Interned; use rustc_data_structures::stable_hasher::{HashStable, StableHasher}; @@ -453,18 +452,6 @@ pub struct CReaderCacheKey { #[rustc_pass_by_value] pub struct Ty<'tcx>(Interned<'tcx, WithCachedTypeInfo<TyKind<'tcx>>>); -impl<'tcx> TyCtxt<'tcx> { - /// A "bool" type used in rustc_mir_transform unit tests when we - /// have not spun up a TyCtxt. - pub const BOOL_TY_FOR_UNIT_TESTING: Ty<'tcx> = - Ty(Interned::new_unchecked(&WithCachedTypeInfo { - internee: ty::Bool, - stable_hash: Fingerprint::ZERO, - flags: TypeFlags::empty(), - outer_exclusive_binder: DebruijnIndex::from_usize(0), - })); -} - impl ty::EarlyBoundRegion { /// Does this early bound region have a name? Early bound regions normally /// always have names except when using anonymous lifetimes (`'_`). |
