mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Fix layout for hir_ty::Ty
and friends
This commit is contained in:
parent
0a806fe7ad
commit
261047d019
9 changed files with 89 additions and 30 deletions
|
@ -1207,7 +1207,7 @@ impl Adt {
|
|||
if db.generic_params(self.into()).iter().count() != 0 {
|
||||
return Err(LayoutError::HasPlaceholder);
|
||||
}
|
||||
db.layout_of_adt(self.into(), Substitution::empty(Interner))
|
||||
db.layout_of_adt(self.into(), Substitution::empty(Interner), self.krate(db).id)
|
||||
}
|
||||
|
||||
/// Turns this ADT into a type. Any type parameters of the ADT will be
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue