Lint to track "Panics" section of rustdoc? #22969
Labels
B-interesting-project
Represents work that is expected to be interesting in some fashion
I-panic
Servo encounters a panic.
At the moment, we have an ad-hoc script which greps for function names that look like they'll cause panic. https://github.com/servo/servo/blob/master/etc/ci/check_no_panic.sh
A somewhat more principled approach would be a lint that checks functions for the
Panics
rustdoc section, and warns if it finds a function that a) calls a function with aPanics
section of its docs, and b) doesn't have its ownPanics
section. With an appropriateallow
for cases where we're really really sure the panic can't happen.The text was updated successfully, but these errors were encountered: