1
Fork 0

compiler: Directly use rustc_abi in ty_utils

This commit is contained in:
Jubilee Young 2024-11-02 19:33:06 -07:00
parent 6c16a3123b
commit 092135b7b4
4 changed files with 19 additions and 21 deletions

View file

@ -1,8 +1,8 @@
use std::assert_matches::assert_matches;
use rustc_abi::{BackendRepr, FieldsShape, Scalar, Size, Variants};
use rustc_middle::bug;
use rustc_middle::ty::layout::{HasTyCtxt, LayoutCx, TyAndLayout};
use rustc_target::abi::*;
/// Enforce some basic invariants on layouts.
pub(super) fn partially_check_layout<'tcx>(cx: &LayoutCx<'tcx>, layout: &TyAndLayout<'tcx>) {