mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Remove last traces of adt from Ty
This commit is contained in:
parent
882fe0a47e
commit
936c6950e7
3 changed files with 7 additions and 6 deletions
|
@ -12,7 +12,7 @@ use crate::{
|
|||
db::HirDatabase,
|
||||
diagnostics::{MissingFields, MissingOkInTailExpr},
|
||||
ty::{ApplicationTy, InferenceResult, Ty, TypeCtor},
|
||||
Adt, Function, Name, Path,
|
||||
Function, Name, Path, Struct,
|
||||
};
|
||||
|
||||
pub use hir_def::{
|
||||
|
@ -69,7 +69,7 @@ impl<'a, 'b> ExprValidator<'a, 'b> {
|
|||
}
|
||||
|
||||
let struct_def = match self.infer[id].as_adt() {
|
||||
Some((Adt::Struct(s), _)) => s,
|
||||
Some((AdtId::StructId(s), _)) => Struct::from(s),
|
||||
_ => return,
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue