You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 28, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: clippy_lints/src/panic_in_result.rs
+12-14Lines changed: 12 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -7,24 +7,24 @@ use rustc_session::{declare_lint_pass, declare_tool_lint};
7
7
use rustc_span::Span;
8
8
9
9
declare_clippy_lint!{
10
-
/// **What it does:** Checks for usage of `panic!`, `unimplemented!`or `unreachable!` in a function of type result/option.
10
+
/// **What it does:** Checks for usage of `panic!`, `unimplemented!`, `todo!` or `unreachable!` in a function of type result.
11
11
///
12
-
/// **Why is this bad?** For some codebases, it is desirable for functions of type option/result to return an error instead of crashing. Hence unimplemented, panic and unreachable should be avoided.
12
+
/// **Why is this bad?** For some codebases, it is desirable for functions of type result to return an error instead of crashing. Hence unimplemented, panic and unreachable should be avoided.
0 commit comments