From ef648f4a4936700c7ebf85f82cbcba29a6187bcc Mon Sep 17 00:00:00 2001 From: Michael Woerister Date: Thu, 4 Apr 2019 15:04:37 +0200 Subject: [PATCH] Remove invalid assertion back::link::from add_upstream_rust_crates(). --- src/librustc_codegen_llvm/back/link.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/librustc_codegen_llvm/back/link.rs b/src/librustc_codegen_llvm/back/link.rs index f10bc0516e5b..19419a72b94d 100644 --- a/src/librustc_codegen_llvm/back/link.rs +++ b/src/librustc_codegen_llvm/back/link.rs @@ -1396,10 +1396,6 @@ fn looks_like_rust(s: &str) -> bool { // Same thing as above, but for dynamic crates instead of static crates. fn add_dynamic_crate(cmd: &mut dyn Linker, sess: &Session, cratepath: &Path) { - // If we're performing LTO, then it should have been previously required - // that all upstream rust dependencies were available in an rlib format. - assert!(!are_upstream_rust_objects_already_included(sess)); - // Just need to tell the linker about where the library lives and // what its name is let parent = cratepath.parent();