rust/src/test/ui/reachable
2020-02-06 21:46:38 +02:00
..
auxiliary Organize never_type tests 2019-10-15 16:58:14 +02:00
expr_add.rs Revert "Remove #![feature(never_type)] from tests." 2019-12-14 09:01:04 -05:00
expr_add.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
expr_again.rs Remove licenses 2018-12-25 21:08:33 -07:00
expr_again.stderr rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros. 2020-02-06 21:46:38 +02: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 Normalise notes with the/is 2020-01-24 16:24:50 +00:00
expr_assign.rs Revert "Remove #![feature(never_type)] from tests." 2019-12-14 09:01:04 -05:00
expr_assign.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
expr_block.rs Remove licenses 2018-12-25 21:08:33 -07:00
expr_block.stderr rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros. 2020-02-06 21:46:38 +02:00
expr_box.rs Remove licenses 2018-12-25 21:08:33 -07:00
expr_box.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
expr_call.rs Revert "Remove #![feature(never_type)] from tests." 2019-12-14 09:01:04 -05:00
expr_call.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
expr_cast.rs Revert "Remove #![feature(never_type)] from tests." 2019-12-14 09:01:04 -05:00
expr_cast.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
expr_if.rs Various test changes 2019-05-10 19:41:10 +02:00
expr_if.stderr rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros. 2020-02-06 21:46:38 +02:00
expr_loop.rs Remove licenses 2018-12-25 21:08:33 -07:00
expr_loop.stderr rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros. 2020-02-06 21:46:38 +02:00
expr_match.rs Remove licenses 2018-12-25 21:08:33 -07:00
expr_match.stderr rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros. 2020-02-06 21:46:38 +02:00
expr_method.rs Revert "Remove #![feature(never_type)] from tests." 2019-12-14 09:01:04 -05:00
expr_method.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00: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 Normalise notes with the/is 2020-01-24 16:24:50 +00:00
expr_return.rs Remove licenses 2018-12-25 21:08:33 -07:00
expr_return.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
expr_return_in_macro.rs Some formatting cleanup 2019-09-18 19:31:38 -04:00
expr_return_in_macro.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
expr_struct.rs Remove licenses 2018-12-25 21:08:33 -07:00
expr_struct.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
expr_tup.rs Remove licenses 2018-12-25 21:08:33 -07:00
expr_tup.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
expr_type.rs Revert "Remove #![feature(never_type)] from tests." 2019-12-14 09:01:04 -05:00
expr_type.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
expr_unary.rs Revert "Remove #![feature(never_type)] from tests." 2019-12-14 09:01:04 -05:00
expr_unary.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
expr_while.rs Enforce 'cond: bool' in while-expr + improve reachability diags. 2019-07-06 06:43:58 +02:00
expr_while.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
README.md
unreachable-arm.rs Organize never_type tests 2019-10-15 16:58:14 +02:00
unreachable-arm.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
unreachable-code.rs Organize never_type tests 2019-10-15 16:58:14 +02:00
unreachable-code.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
unreachable-in-call.rs Organize never_type tests 2019-10-15 16:58:14 +02:00
unreachable-in-call.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
unreachable-loop-patterns.rs Revert "Remove #![feature(never_type)] from tests." 2019-12-14 09:01:04 -05:00
unreachable-loop-patterns.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
unreachable-try-pattern.rs Revert "Remove #![feature(never_type)] from tests." 2019-12-14 09:01:04 -05:00
unreachable-try-pattern.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
unreachable-variant.rs Organize never_type tests 2019-10-15 16:58:14 +02:00
unreachable-variant.stderr resolve: Point at the private item definitions in privacy errors 2020-01-16 21:59:11 +03:00
unwarned-match-on-never.rs Revert "Remove #![feature(never_type)] from tests." 2019-12-14 09:01:04 -05:00
unwarned-match-on-never.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00: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.