From 233459ea333a6bddd0ab6201b0eaef2623df809d Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Mon, 24 Oct 2016 16:30:22 +0200 Subject: [PATCH] clean up docs for clippy_dump --- clippy_lints/src/utils/inspector.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/clippy_lints/src/utils/inspector.rs b/clippy_lints/src/utils/inspector.rs index f14b3df46..2af1d8dec 100644 --- a/clippy_lints/src/utils/inspector.rs +++ b/clippy_lints/src/utils/inspector.rs @@ -8,15 +8,19 @@ use syntax::ast::{Attribute, MetaItemKind}; /// **What it does:** Dumps every ast/hir node which has the `#[clippy_dump]` attribute /// -/// **Why is this bad?** 😈 -/// -/// **Known problems:** ∅ -/// /// **Example:** /// ```rust /// #[clippy_dump] /// extern crate foo; /// ``` +/// +/// prints +/// +/// ``` +/// item `foo` +/// visibility inherited from outer item +/// extern crate dylib source: "/path/to/foo.so" +/// ``` declare_lint! { pub DEEP_CODE_INSPECTION, Warn,