RobbieClarken f5d0a452ba Add lint for pub fns returning a Result without documenting errors
The Rust Book recommends that functions that return a `Result` type have
a doc comment with an `# Errors` section describing the kind of errors
that can be returned
(https://doc.rust-lang.org/book/ch14-02-publishing-to-crates-io.html#commonly-used-sections).
This change adds a lint to enforce this. The lint is allow by default;
it can be enabled with `#![warn(clippy::missing_errors_doc)]`.

Closes #4854.
2019-12-06 17:19:05 +10:30
..
2019-11-27 14:39:28 -08:00
2019-10-26 21:54:04 +02:00
2019-11-07 17:11:06 +01:00
2019-11-07 17:11:06 +01:00
2019-11-07 17:11:06 +01:00
2019-11-07 17:11:06 +01:00
2019-11-07 17:11:06 +01:00
2019-11-06 18:15:04 +01:00
2019-11-22 14:25:44 +01:00
2019-10-26 21:54:04 +02:00
2019-10-26 21:54:04 +02:00
2019-12-03 18:37:07 +01:00
2019-10-26 21:54:04 +02:00
2019-11-22 14:25:44 +01:00
2019-11-22 14:25:44 +01:00
2019-11-22 14:25:44 +01:00
2019-12-03 13:42:05 +01:00
2019-12-03 13:42:05 +01:00
2019-12-03 13:42:05 +01:00
2019-11-10 15:52:59 +02:00
2019-11-25 18:12:52 +03:00
2019-11-25 18:12:52 +03:00
2019-10-26 21:54:04 +02:00
2019-11-15 22:39:27 +01:00
2019-11-15 22:39:27 +01:00