13 matches across 1 files for error lang: path:src/tools/clippy/clippy_lints/src/doc/mod.rs
snippet_mode: auto · sorted by relevance
src/tools/clippy/clippy_lints/src/doc/mod.rs RUST 13 matches · showing 5 view file →
6use clippy_utils::{is_entrypoint_fn, is_trait_impl_item};
7use rustc_data_structures::fx::FxHashSet;
8use 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
Search syntax
auth loginboth terms (AND is implicit)
auth OR logineither term
NOT path:vendorexclude matches
"exact phrase"quoted exact match
/func\s+Test/regex
handler~1fuzzy (Levenshtein 1)
file:*_test.gofilename glob
path:pkg/auth/**full path glob
lang:golanguage filter

Search any public repo from your terminal

This page calls POST /api/v1/code_search. Same tool, available over MCP for Claude/Cursor/Copilot.