Add note around redefinitions

This commit is contained in:
Charlie Marsh
2022-12-09 23:18:51 -05:00
parent 6739602806
commit 5728dceef0

View File

@@ -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];