mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22: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
|
@ -574,7 +574,7 @@ impl Evaluator<'_> {
|
|||
}
|
||||
|
||||
fn layout_adt(&self, adt: AdtId, subst: Substitution) -> Result<Layout> {
|
||||
self.db.layout_of_adt(adt, subst.clone()).map_err(|e| {
|
||||
self.db.layout_of_adt(adt, subst.clone(), self.crate_id).map_err(|e| {
|
||||
MirEvalError::LayoutError(e, TyKind::Adt(chalk_ir::AdtId(adt), subst).intern(Interner))
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue