6use clippy_utils::{is_entrypoint_fn, is_trait_impl_item};
7use rustc_data_structures::fx::FxHashSet;
8▶use rustc_errors::Applicability;
9use rustc_hir::{Attribute, FieldDef, ImplItemKind, ItemKind, Node, Safety, TraitItemKind};
10use rustc_lint::{EarlyContext, EarlyLintPass, LateContext, LateLintPass, LintContext};
· · ·
424 /// ### What it does
425 /// Checks the doc comments of publicly visible functions that
426▶ /// return a `Result` type and warns if there is no `# Errors` section.
427 ///
428 /// ### Why is this bad?
· · ·
429▶ /// Documenting the type of errors that can be returned from a
430 /// function can help callers write code to handle the errors appropriately.
431 ///
· · ·
430▶ /// function can help callers write code to handle the errors appropriately.
431 ///
432 /// ### Examples
· · ·
433▶ /// Since the following function returns a `Result` it has an `# Errors` section in
434 /// its doc comment:
435 ///
+ 8 more matches in this file