Skip to content

Commit

Permalink
Remove deleted pass from rustdoc test suite
Browse files Browse the repository at this point in the history
`src/test/rustdoc-ui/deprecated-attrs.rs`
tells rustdoc to run the `collapse-docs` pass, which no longer exists
(it was removed in #80261).
Rustdoc doesn't actually give a proper diagnostic here; instead it
prints an `error!` log. Now that tracing is compiled unconditionally,
the log is now being emitted by default, because it's at the error
level.

rustdoc shouldn't be using `error!` logging for diagnostics in the first
place, but in the meantime this change gets the testsuite to pass.
  • Loading branch information
jyn514 committed Mar 1, 2021
1 parent 65f0b25 commit 6dc9934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/rustdoc-ui/deprecated-attrs.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// check-pass

#![doc(no_default_passes, passes = "collapse-docs unindent-comments")]
#![doc(no_default_passes, passes = "unindent-comments")]

struct SomeStruct;

Expand Down

0 comments on commit 6dc9934

Please sign in to comment.