Skip to content

Commit 787f4c9

Browse files
committed
auto merge of #8976 : alexcrichton/rust/issue-5425, r=pnkfelix
Closes #5425
2 parents 142dab4 + 2c573e9 commit 787f4c9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: src/librustc/back/link.rs

+4
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,10 @@ pub fn build_link_meta(sess: Session,
616616
|| fmt!("output file name `%s` doesn't\
617617
appear to have a stem",
618618
output.to_str())).to_managed();
619+
if name.is_empty() {
620+
sess.fatal("missing crate link meta `name`, and the \
621+
inferred name is blank");
622+
}
619623
warn_missing(sess, "name", name);
620624
name
621625
}

0 commit comments

Comments
 (0)