compiler: make rustc_target have less weird reexports

rustc_target has had a lot of weird reexports for various reasons, but
now we're at a point where we can actually start reducing their number.
We remove weird shadowing-dependent behavior and import directly from
rustc_abi instead of doing weird renaming imports.

This is only incremental progress and does not entirely fix the crate.
This commit is contained in:
Jubilee Young
2024-11-02 21:44:31 -07:00
parent 59588250ad
commit 89da3614e5
23 changed files with 143 additions and 125 deletions

View File

@@ -31,10 +31,7 @@ pub mod target_features;
mod tests;
pub mod abi {
pub(crate) use Float::*;
pub(crate) use Primitive::*;
// Explicitly import `Float` to avoid ambiguity with `Primitive::Float`.
pub use rustc_abi::{Float, *};
pub use rustc_abi::*;
pub use crate::callconv as call;
}