about summary refs log tree commit diff
path: root/compiler/rustc_target/src/lib.rs
diff options
context:
space:
mode:
authorJubilee Young <workingjubilee@gmail.com>2024-10-09 12:20:28 -0700
committerJubilee Young <workingjubilee@gmail.com>2024-10-11 17:41:52 -0700
commit10721909f29024ba56a9ce667da8652a99a04784 (patch)
tree75236319d03880c1fbc2415227fb73e6b06ced10 /compiler/rustc_target/src/lib.rs
parent255bdd2f24de119d85073e0c48acdebca25af551 (diff)
downloadrust-10721909f29024ba56a9ce667da8652a99a04784.tar.gz
rust-10721909f29024ba56a9ce667da8652a99a04784.zip
compiler: Wire `{TyAnd,}Layout` into `rustc_abi`
This finally unites TyAndLayout, Layout, and LayoutS into the same crate,
as one might imagine they would be placed. No functional changes.
Diffstat (limited to 'compiler/rustc_target/src/lib.rs')
-rw-r--r--compiler/rustc_target/src/lib.rs11
1 files changed, 10 insertions, 1 deletions
diff --git a/compiler/rustc_target/src/lib.rs b/compiler/rustc_target/src/lib.rs
index 2121c4110dd..50679ab8cc8 100644
--- a/compiler/rustc_target/src/lib.rs
+++ b/compiler/rustc_target/src/lib.rs
@@ -21,8 +21,8 @@
 
 use std::path::{Path, PathBuf};
 
-pub mod abi;
 pub mod asm;
+pub mod callconv;
 pub mod json;
 pub mod spec;
 pub mod target_features;
@@ -30,6 +30,15 @@ pub mod target_features;
 #[cfg(test)]
 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 crate::callconv as call;
+}
+
 pub use rustc_abi::HashStableContext;
 
 /// The name of rustc's own place to organize libraries.