rust/src/test/ui/reachable
2022-06-16 14:40:29 +03:00
..
auxiliary
expr_add.rs
expr_add.stderr
expr_again.rs Remove box syntax from most places in src/test outside of the issues dir 2021-09-26 04:07:44 +02:00
expr_again.stderr Bless tests 2021-10-15 02:36:58 -05:00
expr_andand.rs
expr_array.rs
expr_array.stderr
expr_assign.rs
expr_assign.stderr
expr_block.rs
expr_block.stderr Bless tests 2021-10-15 02:36:58 -05:00
expr_box.rs
expr_box.stderr
expr_call.rs
expr_call.stderr
expr_cast.rs Don't abort compilation after giving a lint error 2021-11-08 01:22:28 +00:00
expr_cast.stderr Don't abort compilation after giving a lint error 2021-11-08 01:22:28 +00:00
expr_if.rs
expr_if.stderr Bless tests 2021-10-15 02:36:58 -05:00
expr_loop.rs
expr_loop.stderr Bless tests 2021-10-15 02:36:58 -05:00
expr_match.rs
expr_match.stderr Bless tests 2021-10-15 02:36:58 -05:00
expr_method.rs
expr_method.stderr
expr_oror.rs
expr_repeat.rs
expr_repeat.stderr
expr_return.rs
expr_return.stderr
expr_return_in_macro.rs
expr_return_in_macro.stderr
expr_struct.rs
expr_struct.stderr
expr_tup.rs
expr_tup.stderr
expr_type.rs
expr_type.stderr
expr_unary.rs Replace ! with * in ui test of unary expr reachability 2021-11-21 19:30:17 -08:00
expr_unary.stderr Replace ! with * in ui test of unary expr reachability 2021-11-21 19:30:17 -08:00
expr_while.rs
expr_while.stderr
README.md
unreachable-arm.rs Remove box syntax from most places in src/test outside of the issues dir 2021-09-26 04:07:44 +02:00
unreachable-arm.stderr
unreachable-code-ret.rs
unreachable-code-ret.stderr Bless tests 2021-10-15 02:36:58 -05:00
unreachable-code.rs
unreachable-code.stderr fix one more case of trailing space 2022-06-16 14:40:29 +03:00
unreachable-in-call.rs
unreachable-in-call.stderr
unreachable-loop-patterns.rs Simplify for loop desugar 2021-11-21 08:15:21 -06:00
unreachable-loop-patterns.stderr Simplify for loop desugar 2021-11-21 08:15:21 -06:00
unreachable-try-pattern.rs
unreachable-try-pattern.stderr
unreachable-variant.rs
unreachable-variant.stderr
unwarned-match-on-never.rs
unwarned-match-on-never.stderr

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.