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
tychk: Ensure diverging else of let-else is actually diverging
Make sure the `else` expression resolves to the never type.
gcc/rust/ChangeLog:
* typecheck/rust-hir-type-check-stmt.cc (TypeCheckStmt::visit): Check diverging else
against `!`.
gcc/testsuite/ChangeLog:
* rust/compile/let-else-invalid-type.rs: New test.
0 commit comments