From 5728dceef0c4f0f7f070eb4568a4b0b0949a528c Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Fri, 9 Dec 2022 23:18:51 -0500 Subject: [PATCH] Add note around redefinitions --- src/check_ast.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/check_ast.rs b/src/check_ast.rs index 4852fba80a..4df87909b7 100644 --- a/src/check_ast.rs +++ b/src/check_ast.rs @@ -3202,6 +3202,9 @@ impl<'a> Checker<'a> { } } + // Look for any bindings that were redefined in another scope, and remain unused. + // Note that we only store references in `redefinitions` if the bindings are in + // different scopes. if self.settings.enabled.contains(&CheckCode::F811) { for (name, index) in &scope.values { let binding = &self.bindings[*index];