Skip to main content

shadowing_warnings

Function shadowing_warnings 

Source
pub fn shadowing_warnings(
    index: &SymbolIndex,
    line_index: &LineIndex,
    uri: Option<&Url>,
) -> Vec<Diagnostic>
Expand description

Warnings for re-declared names: a second Let x in the same block makes the earlier x unreachable from that point on — legal, and usually a misspelled Set.