Remove invalid assertion back::link::from add_upstream_rust_crates().

This commit is contained in:
Michael Woerister
2019-04-04 15:04:37 +02:00
parent e43f99ce57
commit ef648f4a49
-4
View File
@@ -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();