rust/tests/ui/reachable
2024-10-05 19:10:47 -04:00
..
auxiliary
expr_add.rs
expr_add.stderr
expr_again.rs
expr_again.stderr
expr_andand.rs
expr_array.rs
expr_array.stderr
expr_assign.rs
expr_assign.stderr Evaluating place expr that is never read from does not diverge 2024-10-05 18:36:47 -04:00
expr_block.rs
expr_block.stderr
expr_call.rs
expr_call.stderr
expr_cast.rs
expr_cast.stderr
expr_if.rs
expr_if.stderr
expr_loop.rs
expr_loop.stderr
expr_match.rs
expr_match.stderr
expr_method.rs
expr_method.stderr
expr_oror.rs
expr_repeat.rs
expr_repeat.stderr
expr_return_in_macro.rs
expr_return_in_macro.stderr
expr_return.rs
expr_return.stderr
expr_struct.rs
expr_struct.stderr
expr_tup.rs
expr_tup.stderr
expr_type.rs
expr_type.stderr
expr_unary.rs
expr_unary.stderr
expr_while.rs
expr_while.stderr
foreign-priv.rs
issue-948.rs
issue-11225-1.rs
issue-11225-2.rs
issue-11225-3.rs
reachable-unnameable-type-alias.rs
README.md
unreachable-arm.rs
unreachable-arm.stderr Reword the "unreachable pattern" explanations 2024-08-19 21:39:57 +02:00
unreachable-code-ret.rs
unreachable-code-ret.stderr
unreachable-code.rs
unreachable-code.stderr
unreachable-in-call.rs
unreachable-in-call.stderr
unreachable-loop-patterns.rs Revert warning empty patterns as unreachable 2024-09-11 18:36:45 +02:00
unreachable-loop-patterns.stderr Revert warning empty patterns as unreachable 2024-09-11 18:36:45 +02:00
unreachable-try-pattern.rs
unreachable-try-pattern.stderr Add a machine-applicable suggestion to "unreachable pattern" 2024-09-13 21:01:29 +02:00
unreachable-variant.rs
unreachable-variant.stderr
unwarned-match-on-never.rs
unwarned-match-on-never.stderr Be far more strict about what we consider to be a read of never 2024-10-05 19:10:47 -04:00

A variety of tests around reachability. These tests in general check two things:

  • that we get unreachable code warnings in reasonable locations;
  • that we permit coercions into ! from expressions which diverge, where an expression "diverges" if it must execute some subexpression of type !, or it has type ! itself.