diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-09-04 01:07:36 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-09-04 01:09:56 -0700 |
| commit | 2c573e933b0cebfe8426c1b56f09e76a5fb48546 (patch) | |
| tree | 270e351e13dedc2f3f94ff850981c4815136d24c | |
| parent | 4f151b388bc55731aa7493ae712e13740aff2380 (diff) | |
| download | rust-2c573e933b0cebfe8426c1b56f09e76a5fb48546.tar.gz rust-2c573e933b0cebfe8426c1b56f09e76a5fb48546.zip | |
Don't die with an ICE on a blank library name
Closes #5425
| -rw-r--r-- | src/librustc/back/link.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/librustc/back/link.rs b/src/librustc/back/link.rs index 64fa25fde20..6422290eec5 100644 --- a/src/librustc/back/link.rs +++ b/src/librustc/back/link.rs @@ -616,6 +616,10 @@ pub fn build_link_meta(sess: Session, || fmt!("output file name `%s` doesn't\ appear to have a stem", output.to_str())).to_managed(); + if name.is_empty() { + sess.fatal("missing crate link meta `name`, and the \ + inferred name is blank"); + } warn_missing(sess, "name", name); name } |
