use rustc_session::{declare_lint_pass, declare_tool_lint};
declare_clippy_lint! {
- /// **What it does:** Prevents the safe `std::mem::drop` function from being called on `std::mem::ManuallyDrop`.
+ /// ### What it does
+ /// Prevents the safe `std::mem::drop` function from being called on `std::mem::ManuallyDrop`.
///
- /// **Why is this bad?** The safe `drop` function does not drop the inner value of a `ManuallyDrop`.
+ /// ### Why is this bad?
+ /// The safe `drop` function does not drop the inner value of a `ManuallyDrop`.
///
- /// **Known problems:** Does not catch cases if the user binds `std::mem::drop`
+ /// ### Known problems
+ /// Does not catch cases if the user binds `std::mem::drop`
/// to a different name and calls it that way.
///
- /// **Example:**
- ///
+ /// ### Example
/// ```rust
/// struct S;
/// drop(std::mem::ManuallyDrop::new(S));