]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/clippy_lints/src/large_stack_arrays.rs
Rollup merge of #88647 - ChrisDenton:win-symlink-docs, r=joshtriplett
[rust.git] / src / tools / clippy / clippy_lints / src / large_stack_arrays.rs
index c46b98022c6cad6c76a877f69d5e0652c4d4a333..bbb6c1f902ce077e7fcfc6f168021f71fb356cde 100644 (file)
@@ -4,19 +4,18 @@
 use rustc_hir::{Expr, ExprKind};
 use rustc_lint::{LateContext, LateLintPass};
 use rustc_middle::mir::interpret::ConstValue;
+use rustc_middle::ty::layout::LayoutOf;
 use rustc_middle::ty::{self, ConstKind};
 use rustc_session::{declare_tool_lint, impl_lint_pass};
 
-use crate::rustc_target::abi::LayoutOf;
-
 declare_clippy_lint! {
-    /// **What it does:** Checks for local arrays that may be too large.
-    ///
-    /// **Why is this bad?** Large local arrays may cause stack overflow.
+    /// ### What it does
+    /// Checks for local arrays that may be too large.
     ///
-    /// **Known problems:** None.
+    /// ### Why is this bad?
+    /// Large local arrays may cause stack overflow.
     ///
-    /// **Example:**
+    /// ### Example
     /// ```rust,ignore
     /// let a = [0u32; 1_000_000];
     /// ```