rust/src/test/run-fail
bors a722296b6e Auto merge of #50653 - oli-obk:bad_const, r=cramertj
Make the `const_err` lint `deny`-by-default

At best these things are runtime panics (debug mode) or overflows (release mode). More likely they are public constants that are unused in the crate declaring them.

This is not a breaking change, as dependencies won't break and root crates can `#![warn(const_err)]`, though I don't know why anyone would do that.
2018-05-18 17:17:35 +00:00
..
rfc-1937-termination-trait dyn_trait feature-gate just for stage0 2018-04-27 10:04:58 -05:00
adjust_never.rs Add back missing #![feature(never_type)]s 2018-04-21 15:18:13 +08:00
args-panic.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
assert-as-macro.rs Kill more isizes 2015-01-31 17:40:40 +01:00
assert-eq-macro-panic.rs updated assert_eq test, fixed incorrect assert_ne message and added test. 2017-06-13 14:17:59 +01:00
assert-macro-explicit.rs Update infrastructure for fail -> panic 2014-10-29 16:06:13 -04:00
assert-macro-fmt.rs Remove all i suffixes 2015-01-30 04:38:54 +01:00
assert-macro-owned.rs Update infrastructure for fail -> panic 2014-10-29 16:06:13 -04:00
assert-macro-static.rs Update infrastructure for fail -> panic 2014-10-29 16:06:13 -04:00
assert-ne-macro-panic.rs updated assert_eq test, fixed incorrect assert_ne message and added test. 2017-06-13 14:17:59 +01:00
binop-fail-3.rs rustc_typeck: use subtyping on the LHS of binops. 2017-10-31 17:34:46 +02:00
binop-panic.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
borrowck-local-borrow.rs Update tests for -Zborrowck-mir -> -Zborrowck=mode migration 2017-11-26 16:39:15 +01:00
bounds-check-no-overflow.rs core: Use primitive indexing in slice's Index/IndexMut 2016-09-14 20:19:35 +02:00
bug-811.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
bug-2470-bounds-check-overflow.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
call-fn-never-arg.rs Add back missing #![feature(never_type)]s 2018-04-21 15:18:13 +08:00
cast-never.rs Add back missing #![feature(never_type)]s 2018-04-21 15:18:13 +08:00
die-macro-expr.rs Mass rename uint/int to usize/isize 2015-03-26 12:10:22 -07:00
die-macro-pure.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
die-macro.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
diverging-closure.rs Fix diverging closures 2015-04-06 22:17:35 +09:00
divide-by-zero.rs Fix some pretty printing tests 2016-10-18 23:23:40 +03:00
doublepanic.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
dst-raw-slice.rs Remove all i suffixes 2015-01-30 04:38:54 +01:00
explicit-panic-msg.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
explicit-panic.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
expr-fn-panic.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
expr-if-panic-fn.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
expr-if-panic.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
expr-match-panic-fn.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
expr-match-panic.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
fmt-panic.rs test: Rename files, fail -> panic. 2014-11-11 09:36:12 -08:00
for-each-loop-panic.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
glob-use-std.rs Fix some pretty printing tests 2016-10-18 23:23:40 +03:00
hashmap-capacity-overflow.rs Remove int/uint from libstd/lib.rs 2015-03-01 13:03:44 +01:00
if-check-panic.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
if-cond-bot.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
issue-948.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
issue-2444.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
issue-2761.rs librustc: Remove fail_unless! 2013-03-29 16:39:08 -07:00
issue-3029.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
issue-6458-1.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
issue-12920.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
issue-13202.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
issue-18576.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
issue-20971.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
issue-23354-2.rs Fix broken codegen for [expr; n] where "expr" diverges 2015-03-14 14:23:43 +01:00
issue-23354.rs Always evaluate the expression in [expr; n] 2015-03-14 14:19:29 +01:00
issue-28934.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
issue-29798.rs Add tests for issues with the E-needstest label 2017-07-25 12:23:16 +09:00
issue-30380.rs Disable old trans access via -Z orbit, #[rustc_no_mir] or --disable-orbit. 2016-08-24 13:23:37 +03:00
issue-44216-add-instant.rs Relaxed error pattern, and add test for SystemTime as well. 2017-09-10 12:35:47 +08:00
issue-44216-add-system-time.rs Relaxed error pattern, and add test for SystemTime as well. 2017-09-10 12:35:47 +08:00
issue-44216-sub-instant.rs Relaxed error pattern, and add test for SystemTime as well. 2017-09-10 12:35:47 +08:00
issue-44216-sub-system-time.rs Relaxed error pattern, and add test for SystemTime as well. 2017-09-10 12:35:47 +08:00
main-panic.rs Rename main thread from "<main>" to "main". 2016-05-22 22:42:10 +08:00
match-bot-panic.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
match-disc-bot.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
match-wildcards.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
meta-revision-bad.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
meta-revision-ok.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
mir_codegen_calls_converging_drops.rs Rename trans to codegen everywhere. 2018-05-17 15:08:30 +03:00
mir_codegen_calls_converging_drops_2.rs Rename trans to codegen everywhere. 2018-05-17 15:08:30 +03:00
mir_codegen_calls_diverging.rs Rename trans to codegen everywhere. 2018-05-17 15:08:30 +03:00
mir_codegen_calls_diverging_drops.rs Rename trans to codegen everywhere. 2018-05-17 15:08:30 +03:00
mir_codegen_no_landing_pads.rs Rename trans to codegen everywhere. 2018-05-17 15:08:30 +03:00
mir_codegen_no_landing_pads_diverging.rs Rename trans to codegen everywhere. 2018-05-17 15:08:30 +03:00
mir_drop_panics.rs Migrate to eprint/eprintln macros where appropriate. 2017-09-28 11:38:35 -04:00
mir_dynamic_drops_1.rs Add 'ignore-cloudabi' to tests that don't and won't build on CloudABI. 2018-01-02 14:11:41 +01:00
mir_dynamic_drops_2.rs Add 'ignore-cloudabi' to tests that don't and won't build on CloudABI. 2018-01-02 14:11:41 +01:00
mir_dynamic_drops_3.rs Add 'ignore-cloudabi' to tests that don't and won't build on CloudABI. 2018-01-02 14:11:41 +01:00
mir_indexing_oob_1.rs Disable old trans access via -Z orbit, #[rustc_no_mir] or --disable-orbit. 2016-08-24 13:23:37 +03:00
mir_indexing_oob_2.rs Disable old trans access via -Z orbit, #[rustc_no_mir] or --disable-orbit. 2016-08-24 13:23:37 +03:00
mir_indexing_oob_3.rs Disable old trans access via -Z orbit, #[rustc_no_mir] or --disable-orbit. 2016-08-24 13:23:37 +03:00
mod-zero.rs Fix some pretty printing tests 2016-10-18 23:23:40 +03:00
never-associated-type.rs Add back missing #![feature(never_type)]s 2018-04-21 15:18:13 +08:00
never-type-arg.rs Add back missing #![feature(never_type)]s 2018-04-21 15:18:13 +08:00
overflowing-add.rs Make the const_err lint deny-by-default 2018-05-12 16:21:02 +02:00
overflowing-lsh-1.rs Fix some pretty printing tests 2016-10-18 23:23:40 +03:00
overflowing-lsh-2.rs Fix some pretty printing tests 2016-10-18 23:23:40 +03:00
overflowing-lsh-3.rs Fix some pretty printing tests 2016-10-18 23:23:40 +03:00
overflowing-lsh-4.rs Fix some pretty printing tests 2016-10-18 23:23:40 +03:00
overflowing-mul.rs Make the const_err lint deny-by-default 2018-05-12 16:21:02 +02:00
overflowing-neg.rs Make the const_err lint deny-by-default 2018-05-12 16:21:02 +02:00
overflowing-pow-signed.rs Fix overflow checking in unsigned pow() 2016-08-06 20:31:08 -04:00
overflowing-pow-unsigned.rs Change the expected panic message for unsigned 2016-08-06 23:58:16 -04:00
overflowing-rsh-1.rs Fix some pretty printing tests 2016-10-18 23:23:40 +03:00
overflowing-rsh-2.rs Fix some pretty printing tests 2016-10-18 23:23:40 +03:00
overflowing-rsh-3.rs Fix some pretty printing tests 2016-10-18 23:23:40 +03:00
overflowing-rsh-4.rs Fix some pretty printing tests 2016-10-18 23:23:40 +03:00
overflowing-rsh-5.rs Fix some pretty printing tests 2016-10-18 23:23:40 +03:00
overflowing-rsh-6.rs Fix some pretty printing tests 2016-10-18 23:23:40 +03:00
overflowing-sub.rs Make the const_err lint deny-by-default 2018-05-12 16:21:02 +02:00
panic-arg.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
panic-macro-any-wrapped.rs Switched to Box::new in many places. 2015-03-03 21:05:55 +01:00
panic-macro-any.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
panic-macro-explicit.rs test: Rename files, fail -> panic. 2014-11-11 09:36:12 -08:00
panic-macro-fmt.rs Remove all i suffixes 2015-01-30 04:38:54 +01:00
panic-macro-owned.rs test: Rename files, fail -> panic. 2014-11-11 09:36:12 -08:00
panic-macro-static.rs test: Rename files, fail -> panic. 2014-11-11 09:36:12 -08:00
panic-main.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
panic-parens.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
panic-set-handler.rs Migrate to eprint/eprintln macros where appropriate. 2017-09-28 11:38:35 -04:00
panic-set-unset-handler.rs Migrate to eprint/eprintln macros where appropriate. 2017-09-28 11:38:35 -04:00
panic-take-handler-nop.rs Auto merge of #33803 - WiSaGaN:feature/rename-main-thread, r=alexcrichton 2016-06-03 19:36:32 -07:00
panic-task-name-none.rs Adding ignore-emscripten to failing tests. 2016-09-30 14:02:44 -07:00
panic-task-name-owned.rs Adding ignore-emscripten to failing tests. 2016-09-30 14:02:44 -07:00
panic.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
result-get-panic.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
return-never-coerce.rs Remove excessive trailing newlines. 2017-12-30 15:50:52 +08:00
rhs-type.rs Rename trans to codegen everywhere. 2018-05-17 15:08:30 +03:00
run-unexported-tests.rs Fix some pretty printing tests 2016-10-18 23:23:40 +03:00
simd-intrinsic-float-minmax.rs fix tests 2018-03-26 10:20:41 +02:00
str-overrun.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
task-spawn-barefn.rs Adding ignore-emscripten to failing tests. 2016-09-30 14:02:44 -07:00
test-panic.rs Fix some pretty printing tests 2016-10-18 23:23:40 +03:00
test-should-fail-bad-message.rs Fix some pretty printing tests 2016-10-18 23:23:40 +03:00
test-should-panic-bad-message.rs Warn when a #[should_panic] test has an unexpected message 2016-11-18 21:01:19 +10:30
test-should-panic-no-message.rs Warn when a #[should_panic] test has an unexpected message 2016-11-18 21:01:19 +10:30
test-tasks-invalid-value.rs Fix some pretty printing tests 2016-10-18 23:23:40 +03:00
tls-exit-status.rs Add 'ignore-cloudabi' to tests that don't and won't build on CloudABI. 2018-01-02 14:11:41 +01:00
unimplemented-macro-panic.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
unique-panic.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
unreachable-fmt-msg.rs Add optional messages to the unreachable macro. 2014-11-10 19:35:25 -08:00
unreachable-macro-panic.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
unreachable-static-msg.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
unreachable.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
unwind-interleaved.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
unwind-rec.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
unwind-rec2.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
unwind-unique.rs Switched to Box::new in many places. 2015-03-03 21:05:55 +01:00
vec-overrun.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
while-body-panics.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30
while-panic.rs run rustfmt on test/run-fail folder 2016-06-06 00:21:14 +05:30