internal: Move layout logic from hir-def to hir-ty

This commit is contained in:
Lukas Wirth 2023-04-16 12:21:12 +02:00
parent b218009f46
commit 0bb9a17312
12 changed files with 121 additions and 138 deletions

View file

@ -11,7 +11,6 @@ use hir_def::{
RecordFieldPat, RecordLitField,
},
lang_item::{LangItem, LangItemTarget},
layout::LayoutError,
path::Path,
resolver::{resolver_for_expr, ResolveValueResult, ValueNs},
AdtId, DefWithBodyId, EnumVariantId, HasModule, ItemContainerId, LocalFieldId, TraitId,
@ -26,7 +25,7 @@ use crate::{
display::HirDisplay,
infer::{CaptureKind, CapturedItem, TypeMismatch},
inhabitedness::is_ty_uninhabited_from,
layout::layout_of_ty,
layout::{layout_of_ty, LayoutError},
mapping::ToChalk,
static_lifetime,
utils::generics,