compiler: Factor rustc_target::abi out of hir_typeck

This commit is contained in:
Jubilee Young 2024-10-08 17:25:22 -07:00
parent 9d95c8bd16
commit ff17ce2f6a
2 changed files with 3 additions and 1 deletions

View File

@ -6,6 +6,7 @@ edition = "2021"
[dependencies]
# tidy-alphabetical-start
itertools = "0.12"
rustc_abi = { path = "../rustc_abi" }
rustc_ast = { path = "../rustc_ast" }
rustc_ast_ir = { path = "../rustc_ast_ir" }
rustc_attr = { path = "../rustc_attr" }

View File

@ -1,4 +1,5 @@
use hir::HirId;
use rustc_abi::Primitive::Pointer;
use rustc_errors::codes::*;
use rustc_errors::struct_span_code_err;
use rustc_hir as hir;
@ -6,7 +7,7 @@
use rustc_middle::bug;
use rustc_middle::ty::layout::{LayoutError, SizeSkeleton};
use rustc_middle::ty::{self, Ty, TyCtxt, TypeVisitableExt};
use rustc_target::abi::{Pointer, VariantIdx};
use rustc_target::abi::VariantIdx;
use tracing::trace;
use super::FnCtxt;