Skip to content

Commit 9a84fdd

Browse files
committed
Undo rust-analyser changes
1 parent 07a2ee7 commit 9a84fdd

5 files changed

Lines changed: 2 additions & 17 deletions

File tree

src/tools/rust-analyzer/Cargo.lock

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1215,7 +1215,6 @@ version = "0.0.0"
12151215
dependencies = [
12161216
"dashmap",
12171217
"hashbrown 0.14.5",
1218-
"ra-ap-rustc_type_ir",
12191218
"rayon",
12201219
"rustc-hash 2.1.1",
12211220
"triomphe",

src/tools/rust-analyzer/crates/hir-ty/src/next_solver/interner.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ use crate::{
5353
use super::{
5454
Binder, BoundExistentialPredicates, BoundTy, BoundTyKind, Clause, ClauseKind, Clauses, Const,
5555
ErrorGuaranteed, ExprConst, ExternalConstraints, GenericArg, GenericArgs, ParamConst, ParamEnv,
56-
ParamTy, PlaceholderConst, PlaceholderTy, PredefinedOpaques, Predicate, RegionKind,
57-
SolverDefId, Term, Ty, TyKind, Tys, Valtree, ValueConst,
56+
ParamTy, PlaceholderConst, PlaceholderTy, PredefinedOpaques, Predicate, SolverDefId, Term, Ty,
57+
TyKind, Tys, Valtree, ValueConst,
5858
abi::Safety,
5959
fold::{BoundVarReplacer, BoundVarReplacerDelegate, FnMutDelegate},
6060
generics::{Generics, generics},
@@ -1098,7 +1098,6 @@ impl<'db> Interner for DbInterner<'db> {
10981098
type LateParamRegion = LateParamRegion;
10991099
type BoundRegion = BoundRegion;
11001100
type PlaceholderRegion = PlaceholderRegion;
1101-
type InternedRegionKind = InternedRef<'db, RegionKind<'db>>;
11021101

11031102
type RegionAssumptions = RegionAssumptions<'db>;
11041103

src/tools/rust-analyzer/crates/intern/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ rustc-hash.workspace = true
2020
triomphe.workspace = true
2121
rayon.workspace = true
2222

23-
ra-ap-rustc_type_ir.workspace = true
24-
2523
[lints]
2624
workspace = true
2725

src/tools/rust-analyzer/crates/intern/src/intern.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ use std::{
3434
use dashmap::{DashMap, SharedValue};
3535
use hashbrown::raw::RawTable;
3636
use rustc_hash::FxBuildHasher;
37-
use rustc_type_ir::inherent::IntoKind;
3837
use triomphe::{Arc, ArcBorrow};
3938

4039
type InternMap<T> = DashMap<Arc<T>, (), FxBuildHasher>;
@@ -319,14 +318,6 @@ impl<T: Display> Display for InternedRef<'_, T> {
319318
}
320319
}
321320

322-
impl<T: Clone> IntoKind for InternedRef<'_, T> {
323-
type Kind = T;
324-
325-
fn kind(self) -> Self::Kind {
326-
self.arc.get().clone()
327-
}
328-
}
329-
330321
pub struct InternStorage<T: ?Sized> {
331322
map: OnceLock<InternMap<T>>,
332323
}

src/tools/rust-analyzer/crates/intern/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ mod intern;
77
mod intern_slice;
88
mod symbol;
99

10-
extern crate ra_ap_rustc_type_ir as rustc_type_ir;
11-
1210
pub use self::gc::{GarbageCollector, GcInternedSliceVisit, GcInternedVisit};
1311
pub use self::intern::{InternStorage, Internable, Interned, InternedRef, impl_internable};
1412
pub use self::intern_slice::{

0 commit comments

Comments
 (0)