rust/src/test
Mazdak Farrokhzad 05c31baf83
Rollup merge of #59639 - cuviper:ignore-uninhabited, r=eddyb
Never return uninhabited values at all

Functions with uninhabited return values are already marked `noreturn`,
but we were still generating return instructions for this. When running
with `-C passes=lint`, LLVM prints:

    Unusual: Return statement in function with noreturn attribute

The LLVM manual makes a stronger statement about `noreturn` though:

> This produces undefined behavior at runtime if the function ever does
dynamically return.

We now emit an `abort` anywhere that would have tried to return an
uninhabited value.

Fixes #48227
cc #7463 #48229

r? @eddyb
2019-04-04 15:09:04 +02:00
..
assembly Introduce assembly tests 2019-02-27 23:33:05 +01:00
auxiliary
codegen Rollup merge of #59639 - cuviper:ignore-uninhabited, r=eddyb 2019-04-04 15:09:04 +02:00
codegen-units
compile-fail Allow closure to unsafe fn coercion 2019-04-01 00:00:43 +09:00
debuginfo Rollup merge of #59380 - philipc:thinlto-variant, r=michaelwoerister 2019-03-30 14:14:53 +01:00
incremental Update tests 2019-03-30 18:43:26 +01:00
mir-opt Fixes for shallow borrows 2019-03-31 15:14:50 +01:00
pretty rustc: pass Option<&Substs> and Namespace around in ty::item_path. 2019-03-15 13:25:10 +02:00
run-fail Use the correct state for poisoning a generator 2019-03-03 20:34:26 +00:00
run-make Introduce assembly tests 2019-02-27 23:33:05 +01:00
run-make-fulldeps Rollup merge of #59371 - dlrobertson:rename_va_list_copy, r=joshtriplett 2019-03-28 13:35:40 +01:00
run-pass Rollup merge of #59446 - Aaron1011:fix/debuginfo-overflow, r=oli-obk 2019-04-02 18:25:15 +02:00
run-pass-fulldeps reduce repetition in librustc(_lint) wrt. impl LintPass 2019-04-03 23:37:31 +02:00
run-pass-valgrind
rustdoc Auto merge of #58927 - GuillaumeGomez:default-keyword, r=QuietMisdreavus 2019-03-21 08:55:50 +00:00
rustdoc-js Move rustdoc-js testing into compiletest 2019-02-28 18:08:48 +01:00
rustdoc-js-std Rename rustdoc js test suites 2019-02-25 17:46:06 +01:00
rustdoc-ui compiletest: make path normalization smarter 2019-03-25 01:06:45 -04:00
rustfix tests: Do not use -Z parse-only, continue compilation to test recovery 2019-01-06 22:20:46 +03:00
ui Auto merge of #59517 - Zoxc:new-queries, r=oli-obk 2019-04-04 08:26:18 +00:00
ui-fulldeps Rollup merge of #59669 - Centril:lint-pass-macro, r=oli-obk 2019-04-04 01:49:12 +02:00
COMPILER_TESTS.md