Satisfy dogfood

This commit is contained in:
Oliver Schneider 2018-05-04 12:59:45 +02:00 committed by GitHub
parent 8c9bb89608
commit 9ce6fb34ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -150,11 +150,9 @@ pub fn check_attrs<'a>(cx: &EarlyContext, valid_idents: &[String], attrs: &'a [a
spans.extend_from_slice(&current_spans);
doc.push_str(&current);
}
} else {
} else if attr.name() == "doc" {
// ignore mix of sugared and non-sugared doc
if attr.name() == "doc" {
return;
}
return;
}
}