diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-01-31 07:44:34 +0000 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-01-31 07:54:01 +0000 |
| commit | 340414ed7bbcdd28a6a5baa0e3229c07029387b4 (patch) | |
| tree | a3f208d67adb7e1a64e377bf1c55e5773909a4c0 /compiler/rustc_lint | |
| parent | f1d273cbfbebe108306455b7b34bbc625a24fa7a (diff) | |
| download | rust-340414ed7bbcdd28a6a5baa0e3229c07029387b4.tar.gz rust-340414ed7bbcdd28a6a5baa0e3229c07029387b4.zip | |
Review changes
Diffstat (limited to 'compiler/rustc_lint')
| -rw-r--r-- | compiler/rustc_lint/src/builtin.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/builtin.rs b/compiler/rustc_lint/src/builtin.rs index 697e90fdaa9..5d85cfe330a 100644 --- a/compiler/rustc_lint/src/builtin.rs +++ b/compiler/rustc_lint/src/builtin.rs @@ -581,7 +581,7 @@ impl<'tcx> LateLintPass<'tcx> for MissingDoc { fn check_impl_item(&mut self, cx: &LateContext<'_>, impl_item: &hir::ImplItem<'_>) { let context = method_context(cx, impl_item.owner_id.def_id); - + match context { // If the method is an impl for a trait, don't doc. MethodLateContext::TraitImpl => return, |
