Also emit missing_docs
lint with --test
to fulfill expectations
This commit is contained in:
parent
eb33b43bab
commit
7dd1be1d0d
2 changed files with 13 additions and 6 deletions
|
@ -426,12 +426,6 @@ impl MissingDoc {
|
|||
article: &'static str,
|
||||
desc: &'static str,
|
||||
) {
|
||||
// If we're building a test harness, then warning about
|
||||
// documentation is probably not really relevant right now.
|
||||
if cx.sess().opts.test {
|
||||
return;
|
||||
}
|
||||
|
||||
// Only check publicly-visible items, using the result from the privacy pass.
|
||||
// It's an option so the crate root can also use this function (it doesn't
|
||||
// have a `NodeId`).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue