Skip to content

Commit 1f621af

Browse files
committed
Exlude todo!() from missing_panics_in_doc
1 parent 965f4a8 commit 1f621af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/doc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ impl<'a, 'tcx> Visitor<'tcx> for FindPanicUnwrap<'a, 'tcx> {
909909
if is_panic(self.cx, macro_call.def_id)
910910
|| matches!(
911911
self.cx.tcx.item_name(macro_call.def_id).as_str(),
912-
"assert" | "assert_eq" | "assert_ne" | "todo"
912+
"assert" | "assert_eq" | "assert_ne"
913913
)
914914
{
915915
self.panic_span = Some(macro_call.span);

0 commit comments

Comments
 (0)