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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user