Skip to content

Commit eeb09bf

Browse files
committed
revert now-unnecessary change
1 parent 1fcf584 commit eeb09bf

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

crates/red_knot_python_semantic/src/symbol.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,9 @@ fn symbol_from_bindings_impl<'db>(
752752

753753
if let Some(first) = types.next() {
754754
let boundness = match unbound_visibility {
755-
Truthiness::AlwaysTrue => return Symbol::Unbound,
755+
Truthiness::AlwaysTrue => {
756+
unreachable!("If we have at least one binding, the scope-start should not be definitely visible")
757+
}
756758
Truthiness::AlwaysFalse => Boundness::Bound,
757759
Truthiness::Ambiguous => Boundness::PossiblyUnbound,
758760
};
@@ -841,7 +843,9 @@ fn symbol_from_declarations_impl<'db>(
841843
};
842844
if conflicting.is_empty() {
843845
let boundness = match undeclared_visibility {
844-
Truthiness::AlwaysTrue => return Ok(Symbol::Unbound.into()),
846+
Truthiness::AlwaysTrue => {
847+
unreachable!("If we have at least one declaration, the scope-start should not be definitely visible")
848+
}
845849
Truthiness::AlwaysFalse => Boundness::Bound,
846850
Truthiness::Ambiguous => Boundness::PossiblyUnbound,
847851
};

0 commit comments

Comments
 (0)