mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-17 06:28:42 +00:00
Merge pull request #1297 from oli-obk/deep_code_inspection
fix some doc issues for clippy_dump
This commit is contained in:
commit
49c2c2c628
1 changed files with 9 additions and 5 deletions
|
@ -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
|
||||
/// #[inspect]
|
||||
/// #[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,
|
||||
|
|
Loading…
Add table
Reference in a new issue