Consider making htmldocck
more specific
#76942
Labels
A-testsuite
Area: The testsuite used to check the correctness of rustc
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Currently
htmldocck
allows the text in rustdoc tests to be shorter, but not longer than the expected test. So if the actual text wereOption<T
and you wroteOption<T>
, it would fail the test. But if the actual wereOption<T>
and the expected wereOption<T
, it would pass the test.This behavior is not super intuitive and seems like it could lead to false negatives where it didn't catch regressions. Rustdoc should consider changing it.
Originally posted by @jyn514 in #76934 (comment)
The text was updated successfully, but these errors were encountered: