File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -607,8 +607,8 @@ pub fn build_link_meta(sess: Session,
607
607
fn crate_meta_name ( sess : Session , output : & Path , opt_name : Option < @str > )
608
608
-> @str {
609
609
match opt_name {
610
- Some ( v) => v,
611
- None => {
610
+ Some ( v) if !v . is_empty ( ) => v,
611
+ _ => {
612
612
// to_managed could go away if there was a version of
613
613
// filestem that returned an @str
614
614
let name = session:: expect ( sess,
@@ -624,8 +624,8 @@ pub fn build_link_meta(sess: Session,
624
624
625
625
fn crate_meta_vers ( sess : Session , opt_vers : Option < @str > ) -> @str {
626
626
match opt_vers {
627
- Some ( v) => v,
628
- None => {
627
+ Some ( v) if !v . is_empty ( ) => v,
628
+ _ => {
629
629
let vers = @"0.0 ";
630
630
warn_missing ( sess, "vers" , vers) ;
631
631
vers
Original file line number Diff line number Diff line change @@ -319,7 +319,6 @@ pub fn require_unique_names(diagnostic: @mut span_handler,
319
319
for meta in metas. iter ( ) {
320
320
let name = meta. name ( ) ;
321
321
322
- // FIXME: How do I silence the warnings? --pcw (#2619)
323
322
if !set. insert ( name) {
324
323
diagnostic. span_fatal ( meta. span ,
325
324
fmt ! ( "duplicate meta item `%s`" , name) ) ;
You can’t perform that action at this time.
0 commit comments