]> git.lizzy.rs Git - rust.git/commitdiff
Work around to fix issue https://github.com/rust-lang/rust/issues/53912
authorDenis Merigoux <denis.merigoux@gmail.com>
Thu, 6 Sep 2018 17:23:42 +0000 (10:23 -0700)
committerEduard-Mihai Burtescu <edy.burt@gmail.com>
Fri, 16 Nov 2018 12:11:09 +0000 (14:11 +0200)
src/librustc_codegen_llvm/lib.rs

index 5d9bae5412e1a38fbe9db46214311b51355ea81b..d4cd2f786f813534f9640de6437dcfcf90e4ce86 100644 (file)
@@ -116,7 +116,10 @@ mod back {
 mod declare;
 mod glue;
 mod intrinsic;
-pub mod llvm;
+
+// The following is a work around that replaces `pub mod llvm;` and that fixes issue 53912.
+#[path = "llvm/mod.rs"] mod llvm_; pub mod llvm { pub use super::llvm_::*; }
+
 mod llvm_util;
 mod metadata;
 mod meth;