rust/src/test/ui/consts/const-eval
Mazdak Farrokhzad a958314472
Rollup merge of #69839 - RalfJung:miri-error-cleanup, r=oli-obk
Miri error reform

Some time ago we started moving Miri errors into a few distinct categories, but we never classified all the old errors. That's what this PR does.

~~This is on top of https://github.com/rust-lang/rust/pull/69762; [relative diff](https://github.com/RalfJung/rust/compare/validity-errors...RalfJung:miri-error-cleanup).~~

r? @oli-obk

Fixes https://github.com/rust-lang/const-eval/issues/4
2020-03-18 18:03:40 +01:00
..
auxiliary
simd
assign-to-static-within-other-static-2.rs
assign-to-static-within-other-static-2.stderr
assign-to-static-within-other-static.rs
assign-to-static-within-other-static.stderr
conditional_array_execution.rs Errors in promoteds may only cause lints not hard errors 2020-01-10 09:08:25 +01:00
conditional_array_execution.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
const_fn_ptr_fail2.rs Errors in promoteds may only cause lints not hard errors 2020-01-10 09:08:25 +01:00
const_fn_ptr_fail2.stderr rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros. 2020-02-06 21:46:38 +02:00
const_fn_ptr_fail.rs
const_fn_ptr_fail.stderr
const_fn_ptr.rs
const_fn_ptr.stderr
const_let.rs
const_let.stderr
const_panic_libcore_main.rs Remove eh_unwind_resume lang item 2020-03-05 17:36:50 +00:00
const_panic_libcore_main.stderr rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros. 2020-02-06 21:46:38 +02:00
const_panic_libcore.rs
const_panic_libcore.stderr rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros. 2020-02-06 21:46:38 +02:00
const_panic.rs
const_panic.stderr rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros. 2020-02-06 21:46:38 +02:00
const_prop_errors.rs Move some const-eval build-pass tests to check-pass 2020-03-12 16:58:34 +01:00
const_raw_ptr_ops.rs
const_raw_ptr_ops.stderr make error message less confusing 2020-03-11 19:44:23 +01:00
const_signed_pat.rs Move some const-eval build-pass tests to check-pass 2020-03-12 16:58:34 +01:00
const_transmute.rs
const-eval-intrinsic-promotion.rs
const-eval-intrinsic-promotion.stderr
const-eval-overflow2.rs
const-eval-overflow2.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
const-eval-overflow2b.rs
const-eval-overflow2b.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
const-eval-overflow2c.rs
const-eval-overflow2c.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
const-eval-overflow-2.rs Update tests 2020-01-09 21:23:12 +03:00
const-eval-overflow-2.stderr Update tests 2020-01-09 21:23:12 +03:00
const-eval-overflow-3.rs
const-eval-overflow-3.stderr
const-eval-overflow-3b.rs
const-eval-overflow-3b.stderr
const-eval-overflow-4.rs
const-eval-overflow-4.stderr
const-eval-overflow-4b.rs
const-eval-overflow-4b.stderr
const-eval-span.rs
const-eval-span.stderr
const-pointer-values-in-various-types.rs
const-pointer-values-in-various-types.stderr make error message less confusing 2020-03-11 19:44:23 +01:00
dangling.rs fix some cases of unexpected exceptions leaving validation 2020-03-08 22:04:54 +01:00
dangling.stderr fix some cases of unexpected exceptions leaving validation 2020-03-08 22:04:54 +01:00
dont_promote_unstable_const_fn_cross_crate.rs
dont_promote_unstable_const_fn_cross_crate.stderr
dont_promote_unstable_const_fn.rs
dont_promote_unstable_const_fn.stderr
double_check2.rs
double_check2.stderr
double_check.rs Move some const-eval build-pass tests to check-pass 2020-03-12 16:58:34 +01:00
double_promotion.rs Move some more tests to check-pass 2020-03-12 17:22:44 +01:00
duration_conversion.rs Move some const-eval build-pass tests to check-pass 2020-03-12 16:58:34 +01:00
enum_discr.rs
extern_fat_pointer.rs Move some const-eval build-pass tests to check-pass 2020-03-12 16:58:34 +01:00
feature-gate-const_fn_union.rs
feature-gate-const_fn_union.stderr --bless --compare-mode=nll 2020-02-09 20:43:49 +01:00
feature-gate-const_panic.rs
feature-gate-const_panic.stderr --bless --compare-mode=nll 2020-02-09 20:43:49 +01:00
generic-slice.rs
generic-slice.stderr
ice-generic-assoc-const.rs Move some const-eval build-pass tests to check-pass 2020-03-12 16:58:34 +01:00
ice-packed.rs Move some more tests to check-pass 2020-03-12 17:22:44 +01:00
index_out_of_bounds_propagated.rs fix tests, and use variants to test debug and release builds together 2020-02-15 10:47:27 +01:00
index_out_of_bounds_propagated.stderr better lint names 2020-02-18 22:49:47 +01:00
index_out_of_bounds.rs
index_out_of_bounds.stderr
index-out-of-bounds-never-type.rs
index-out-of-bounds-never-type.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
infinite_loop.rs
infinite_loop.stderr --bless --compare-mode=nll 2020-02-09 20:43:49 +01:00
issue-43197.rs Errors in promoteds may only cause lints not hard errors 2020-01-10 09:08:25 +01:00
issue-43197.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
issue-44578.rs Errors in promoteds may only cause lints not hard errors 2020-01-10 09:08:25 +01:00
issue-44578.stderr Errors in promoteds may only cause lints not hard errors 2020-01-10 09:08:25 +01:00
issue-47971.rs Move some const-eval build-pass tests to check-pass 2020-03-12 16:58:34 +01:00
issue-49296.rs
issue-49296.stderr fmt, tweak messages and bless 2020-03-11 19:44:23 +01:00
issue-50706.rs Move some const-eval build-pass tests to check-pass 2020-03-12 16:58:34 +01:00
issue-50814-2.rs
issue-50814-2.stderr
issue-50814.rs Promote Refs to constants instead of static 2020-01-10 09:08:24 +01:00
issue-50814.stderr Promote Refs to constants instead of static 2020-01-10 09:08:24 +01:00
issue-51300.rs Move some more tests to check-pass 2020-03-12 17:22:44 +01:00
issue-52442.rs
issue-52442.stderr --bless --compare-mode=nll 2020-02-09 20:43:49 +01:00
issue-52475.rs
issue-52475.stderr --bless --compare-mode=nll 2020-02-09 20:43:49 +01:00
issue-53157.rs Move some const-eval build-pass tests to check-pass 2020-03-12 16:58:34 +01:00
issue-53401.rs Move some const-eval build-pass tests to check-pass 2020-03-12 16:58:34 +01:00
issue-55541.rs Move some const-eval build-pass tests to check-pass 2020-03-12 16:58:34 +01:00
issue-62272.rs
issue-62272.stderr --bless --compare-mode=nll 2020-02-09 20:43:49 +01:00
issue-64908.rs
issue-64970.rs
issue-65394.rs
issue-65394.stderr --bless --compare-mode=nll 2020-02-09 20:43:49 +01:00
match-test-ptr-null.rs
match-test-ptr-null.stderr --bless --compare-mode=nll 2020-02-09 20:43:49 +01:00
mod-static-with-const-fn.rs
mod-static-with-const-fn.stderr
no_lint_for_statically_known_error.rs Move some const-eval build-pass tests to check-pass 2020-03-12 16:58:34 +01:00
panic-assoc-never-type.rs
panic-assoc-never-type.stderr rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros. 2020-02-06 21:46:38 +02:00
panic-never-type.rs
panic-never-type.stderr rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros. 2020-02-06 21:46:38 +02:00
promote_mutable_zst_mir_borrowck.rs Move some const-eval build-pass tests to check-pass 2020-03-12 16:58:34 +01:00
promote-static.rs Use the correct type for static qualifs 2019-12-25 21:09:51 +00:00
promoted_const_fn_fail_deny_const_err.rs
promoted_const_fn_fail_deny_const_err.stderr
promoted_const_fn_fail.rs
promoted_const_fn_fail.stderr
promoted_errors.noopt.stderr better lint names 2020-02-18 22:49:47 +01:00
promoted_errors.opt_with_overflow_checks.stderr better lint names 2020-02-18 22:49:47 +01:00
promoted_errors.opt.stderr better lint names 2020-02-18 22:49:47 +01:00
promoted_errors.rs avoid excessive number of revisions 2020-02-19 11:25:41 +01:00
promoted_raw_ptr_ops.rs
promoted_raw_ptr_ops.stderr
pub_const_err_bin.rs Move some const-eval build-pass tests to check-pass 2020-03-12 16:58:34 +01:00
pub_const_err_bin.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
pub_const_err.rs Move some const-eval build-pass tests to check-pass 2020-03-12 16:58:34 +01:00
pub_const_err.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
ref_to_int_match.rs Update tests 2020-01-09 21:23:12 +03:00
ref_to_int_match.stderr Update tests 2020-01-09 21:23:12 +03:00
shift_overflow.rs
shift_overflow.stderr
simple_with_undef.rs Move some const-eval build-pass tests to check-pass 2020-03-12 16:58:34 +01:00
strlen.rs
transmute-const-promotion.rs
transmute-const-promotion.stderr
transmute-const.rs
transmute-const.stderr miri value visitor: fix some wrong assumptions about layout; improve error messages 2020-02-18 09:50:11 +01:00
ub-enum.rs fix type size mismatch on 32bit 2020-03-08 12:41:59 +01:00
ub-enum.stderr fix type size mismatch on 32bit 2020-03-08 12:41:59 +01:00
ub-nonnull.rs const validation ub tests: use transmute instead of unions 2020-03-06 22:41:49 +01:00
ub-nonnull.stderr fmt, tweak messages and bless 2020-03-11 19:44:23 +01:00
ub-ref.rs better error messages for invalid boxes (and a few more tests) 2020-03-06 22:41:49 +01:00
ub-ref.stderr better error messages for invalid boxes (and a few more tests) 2020-03-06 22:41:49 +01:00
ub-uninhabit.rs const validation ub tests: use transmute instead of unions 2020-03-06 22:41:49 +01:00
ub-uninhabit.stderr const validation ub tests: use transmute instead of unions 2020-03-06 22:41:49 +01:00
ub-upvars.rs
ub-upvars.stderr miri: validity visitor comments and path printing improvements 2020-02-26 13:34:02 +01:00
ub-wide-ptr.rs fmt, tweak messages and bless 2020-03-11 19:44:23 +01:00
ub-wide-ptr.stderr generalize InvalidNullPointerUsage to InvalidIntPointerUsage 2020-03-11 19:44:23 +01:00
union_promotion.rs
union_promotion.stderr
union-const-eval-field.rs
union-const-eval-field.stderr
union-ice.rs
union-ice.stderr
union-ub.rs
union-ub.stderr miri value visitor: fix some wrong assumptions about layout; improve error messages 2020-02-18 09:50:11 +01:00
unused-broken-const.rs
unused-broken-const.stderr
valid-const.rs
validate_uninhabited_zsts.rs Resolve long compile times when evaluating always valid constants 2019-12-29 16:45:58 -05:00
validate_uninhabited_zsts.stderr bless tests 2020-03-13 08:52:04 +01:00
write-to-uninhabited-enum-variant.rs
zst_operand_eval.rs Move some const-eval build-pass tests to check-pass 2020-03-12 16:58:34 +01:00