Skip to content

Commit 8d0a049

Browse files
committed
Declare module rustc_codegen_llvm::back in the normal way
Declaring these submodules directly in `lib.rs` was needlessly confusing.
1 parent 3507a74 commit 8d0a049

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pub(crate) mod archive;
2+
pub(crate) mod lto;
3+
pub(crate) mod owned_target_machine;
4+
mod profiling;
5+
pub(crate) mod write;

compiler/rustc_codegen_llvm/src/lib.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,11 @@ use rustc_session::Session;
4747
use rustc_session::config::{OptLevel, OutputFilenames, PrintKind, PrintRequest};
4848
use rustc_span::Symbol;
4949

50-
mod back {
51-
pub(crate) mod archive;
52-
pub(crate) mod lto;
53-
pub(crate) mod owned_target_machine;
54-
mod profiling;
55-
pub(crate) mod write;
56-
}
57-
5850
mod abi;
5951
mod allocator;
6052
mod asm;
6153
mod attributes;
54+
mod back;
6255
mod base;
6356
mod builder;
6457
mod callee;

0 commit comments

Comments
 (0)