mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-28 18:43:01 +00:00
Remove InternedCallableDefId
It's unnecessary
This commit is contained in:
parent
c0258d01ba
commit
133418e3cc
7 changed files with 19 additions and 42 deletions
|
|
@ -37,7 +37,7 @@ use hir_expand::{
|
|||
};
|
||||
use hir_ty::{
|
||||
Adjustment, AliasTy, InferenceResult, Interner, LifetimeElisionKind, ProjectionTy,
|
||||
Substitution, TraitEnvironment, Ty, TyExt, TyKind, TyLoweringContext,
|
||||
Substitution, ToChalk, TraitEnvironment, Ty, TyExt, TyKind, TyLoweringContext,
|
||||
diagnostics::{
|
||||
InsideUnsafeBlock, record_literal_missing_fields, record_pattern_missing_fields,
|
||||
unsafe_operations,
|
||||
|
|
@ -1169,8 +1169,7 @@ impl<'db> SourceAnalyzer<'db> {
|
|||
)
|
||||
}
|
||||
TyKind::FnDef(fn_id, subst) => {
|
||||
let fn_id = hir_ty::db::InternedCallableDefId::from(*fn_id);
|
||||
let fn_id = db.lookup_intern_callable_def(fn_id);
|
||||
let fn_id = ToChalk::from_chalk(db, *fn_id);
|
||||
let generic_def_id = match fn_id {
|
||||
CallableDefId::StructId(id) => id.into(),
|
||||
CallableDefId::FunctionId(id) => id.into(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue