You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: clippy_lints/src/redundant_locals.rs
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -17,9 +17,9 @@ declare_clippy_lint! {
17
17
/// Checks for redundant redefinitions of local bindings.
18
18
///
19
19
/// ### Why is this bad?
20
-
/// Redundant redefinitions of local bindings do not change behavior and are likely to be unintended.
20
+
/// Redundant redefinitions of local bindings do not change behavior other than variable's lifetimes and are likely to be unintended.
21
21
///
22
-
/// Note that although these bindings do not affect your code's meaning, they _may_ affect `rustc`'s stack allocation.
22
+
/// These rebindings can be intentional to shorten the lifetimes of variables because they affect when the `Drop` implementation is called. Other than that, they do not affect your code's meaning but they _may_ affect `rustc`'s stack allocation.
0 commit comments