We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0691c01 commit 462604aCopy full SHA for 462604a
src/librustc/back/link.rs
@@ -607,8 +607,8 @@ pub fn build_link_meta(sess: Session,
607
fn crate_meta_name(sess: Session, output: &Path, opt_name: Option<@str>)
608
-> @str {
609
match opt_name {
610
- Some(v) => v,
611
- None => {
+ Some(v) if !v.is_empty() => v,
+ _ => {
612
// to_managed could go away if there was a version of
613
// filestem that returned an @str
614
let name = session::expect(sess,
@@ -624,8 +624,8 @@ pub fn build_link_meta(sess: Session,
624
625
fn crate_meta_vers(sess: Session, opt_vers: Option<@str>) -> @str {
626
match opt_vers {
627
628
629
let vers = @"0.0";
630
warn_missing(sess, "vers", vers);
631
vers
0 commit comments