diff options
| author | Jubilee Young <workingjubilee@gmail.com> | 2024-11-02 21:44:31 -0700 |
|---|---|---|
| committer | Jubilee Young <workingjubilee@gmail.com> | 2025-02-06 01:39:46 -0800 |
| commit | 89da3614e53a1fbebf61ec58c32ca26e371211ae (patch) | |
| tree | 84e8857ce7ed4ba6093c0948805b12be718bcf35 /compiler/rustc_target/src/lib.rs | |
| parent | 59588250ad973ce69bd15879314c9769e65f36b3 (diff) | |
| download | rust-89da3614e53a1fbebf61ec58c32ca26e371211ae.tar.gz rust-89da3614e53a1fbebf61ec58c32ca26e371211ae.zip | |
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.
Diffstat (limited to 'compiler/rustc_target/src/lib.rs')
| -rw-r--r-- | compiler/rustc_target/src/lib.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/rustc_target/src/lib.rs b/compiler/rustc_target/src/lib.rs index 50679ab8cc8..11fc09d26e4 100644 --- a/compiler/rustc_target/src/lib.rs +++ b/compiler/rustc_target/src/lib.rs @@ -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; } |
