rust/src/test/ui/reachable
2019-07-06 06:43:58 +02:00
..
expr_add.rs Remove licenses 2018-12-25 21:08:33 -07:00
expr_add.stderr Update tests 2019-03-11 23:10:26 +03:00
expr_again.rs Remove licenses 2018-12-25 21:08:33 -07:00
expr_again.stderr Remove licenses 2018-12-25 21:08:33 -07:00
expr_andand.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
expr_array.rs Remove licenses 2018-12-25 21:08:33 -07:00
expr_array.stderr Update tests 2019-03-11 23:10:26 +03:00
expr_assign.rs Remove licenses 2018-12-25 21:08:33 -07:00
expr_assign.stderr Update tests 2019-03-11 23:10:26 +03:00
expr_block.rs Remove licenses 2018-12-25 21:08:33 -07:00
expr_block.stderr Update tests 2019-03-11 23:10:26 +03:00
expr_box.rs Remove licenses 2018-12-25 21:08:33 -07:00
expr_box.stderr Update tests 2019-03-11 23:10:26 +03:00
expr_call.rs Remove licenses 2018-12-25 21:08:33 -07:00
expr_call.stderr Update tests 2019-03-11 23:10:26 +03:00
expr_cast.rs Remove licenses 2018-12-25 21:08:33 -07:00
expr_cast.stderr Update tests 2019-03-11 23:10:26 +03:00
expr_if.rs Various test changes 2019-05-10 19:41:10 +02:00
expr_if.stderr Various test changes 2019-05-10 19:41:10 +02:00
expr_loop.rs Remove licenses 2018-12-25 21:08:33 -07:00
expr_loop.stderr Remove licenses 2018-12-25 21:08:33 -07:00
expr_match.rs Remove licenses 2018-12-25 21:08:33 -07:00
expr_match.stderr Remove licenses 2018-12-25 21:08:33 -07:00
expr_method.rs Remove licenses 2018-12-25 21:08:33 -07:00
expr_method.stderr Update tests 2019-03-11 23:10:26 +03:00
expr_oror.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
expr_repeat.rs Remove licenses 2018-12-25 21:08:33 -07:00
expr_repeat.stderr Update tests 2019-03-11 23:10:26 +03:00
expr_return.rs Remove licenses 2018-12-25 21:08:33 -07:00
expr_return.stderr Update tests 2019-03-11 23:10:26 +03:00
expr_struct.rs Remove licenses 2018-12-25 21:08:33 -07:00
expr_struct.stderr Update tests 2019-03-11 23:10:26 +03:00
expr_tup.rs Remove licenses 2018-12-25 21:08:33 -07:00
expr_tup.stderr Update tests 2019-03-11 23:10:26 +03:00
expr_type.rs Remove licenses 2018-12-25 21:08:33 -07:00
expr_type.stderr Update tests 2019-03-11 23:10:26 +03:00
expr_unary.rs Remove licenses 2018-12-25 21:08:33 -07:00
expr_unary.stderr Update tests 2019-03-11 23:10:26 +03:00
expr_while.rs Enforce 'cond: bool' in while-expr + improve reachability diags. 2019-07-06 06:43:58 +02:00
expr_while.stderr Enforce 'cond: bool' in while-expr + improve reachability diags. 2019-07-06 06:43:58 +02:00
README.md cherry-pick over the tests I wrote for the reachability code 2017-03-30 07:55:29 -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.