about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2025-08-15 20:06:01 +1000
committerZalathar <Zalathar@users.noreply.github.com>2025-08-15 20:24:13 +1000
commit8d0a04966c97eb2015c950396e54f31f5212a888 (patch)
tree88452fe52c141b37b1a34bd6c82c8084d8891e21 /compiler
parent3507a749b365aae4eefa96ab700a9315d3280ee7 (diff)
downloadrust-8d0a04966c97eb2015c950396e54f31f5212a888.tar.gz
rust-8d0a04966c97eb2015c950396e54f31f5212a888.zip
Declare module `rustc_codegen_llvm::back` in the normal way
Declaring these submodules directly in `lib.rs` was needlessly confusing.
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_codegen_llvm/src/back/mod.rs5
-rw-r--r--compiler/rustc_codegen_llvm/src/lib.rs9
2 files changed, 6 insertions, 8 deletions
diff --git a/compiler/rustc_codegen_llvm/src/back/mod.rs b/compiler/rustc_codegen_llvm/src/back/mod.rs
new file mode 100644
index 00000000000..6cb89f80ab8
--- /dev/null
+++ b/compiler/rustc_codegen_llvm/src/back/mod.rs
@@ -0,0 +1,5 @@
+pub(crate) mod archive;
+pub(crate) mod lto;
+pub(crate) mod owned_target_machine;
+mod profiling;
+pub(crate) mod write;
diff --git a/compiler/rustc_codegen_llvm/src/lib.rs b/compiler/rustc_codegen_llvm/src/lib.rs
index ca84b6de8b1..3264a747e3a 100644
--- a/compiler/rustc_codegen_llvm/src/lib.rs
+++ b/compiler/rustc_codegen_llvm/src/lib.rs
@@ -47,18 +47,11 @@ use rustc_session::Session;
 use rustc_session::config::{OptLevel, OutputFilenames, PrintKind, PrintRequest};
 use rustc_span::Symbol;
 
-mod back {
-    pub(crate) mod archive;
-    pub(crate) mod lto;
-    pub(crate) mod owned_target_machine;
-    mod profiling;
-    pub(crate) mod write;
-}
-
 mod abi;
 mod allocator;
 mod asm;
 mod attributes;
+mod back;
 mod base;
 mod builder;
 mod callee;