rust/src/test/ui/consts/const-eval
2021-10-18 08:41:18 +01:00
..
auxiliary add test for issue 85155 and similar 2021-05-25 18:39:51 +02:00
heap adjust tests 2021-07-14 18:17:49 +02:00
simd remove const_fn feature gate from const tests 2021-04-29 09:27:45 +02:00
assign-to-static-within-other-static-2.rs Bless mut tests 2020-09-29 19:20:33 -07:00
assign-to-static-within-other-static-2.stderr Bless mut tests 2020-09-29 19:20:33 -07:00
assign-to-static-within-other-static.rs check-consts remove cannot mutate statics in initializer of another static error 2019-11-12 13:20:52 +01:00
assign-to-static-within-other-static.stderr bless; add test for mutating a static 2020-03-24 08:27:46 +01:00
conditional_array_execution.rs Add a new normalization query just for mir constants 2021-03-31 10:40:42 +00:00
conditional_array_execution.stderr make const_err a future incompat lint 2021-02-03 15:45:43 +01:00
const-eval-intrinsic-promotion.rs Check intrinsics for callability in const fns 2019-12-03 10:20:15 +01:00
const-eval-intrinsic-promotion.stderr Check intrinsics for callability in const fns 2019-12-03 10:20:15 +01: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 Update tests to remove old numeric constants 2020-11-29 00:55:55 -05:00
const-eval-overflow-3.stderr Update tests to remove old numeric constants 2020-11-29 00:55:55 -05:00
const-eval-overflow-3b.rs Update tests to remove old numeric constants 2020-11-29 00:55:55 -05:00
const-eval-overflow-3b.stderr Update tests to remove old numeric constants 2020-11-29 00:55:55 -05:00
const-eval-overflow-4.rs Update tests to remove old numeric constants 2020-11-29 00:55:55 -05:00
const-eval-overflow-4.stderr Update tests to remove old numeric constants 2020-11-29 00:55:55 -05:00
const-eval-overflow-4b.rs Update tests to remove old numeric constants 2020-11-29 00:55:55 -05:00
const-eval-overflow-4b.stderr Update tests to remove old numeric constants 2020-11-29 00:55:55 -05:00
const-eval-overflow2.rs make const_err a future incompat lint 2021-02-03 15:45:43 +01:00
const-eval-overflow2.stderr make const_err a future incompat lint 2021-02-03 15:45:43 +01:00
const-eval-overflow2b.rs make const_err a future incompat lint 2021-02-03 15:45:43 +01:00
const-eval-overflow2b.stderr make const_err a future incompat lint 2021-02-03 15:45:43 +01:00
const-eval-overflow2c.rs make const_err a future incompat lint 2021-02-03 15:45:43 +01:00
const-eval-overflow2c.stderr make const_err a future incompat lint 2021-02-03 15:45:43 +01:00
const-eval-query-stack.rs Revert tests 2021-03-31 11:33:15 +00:00
const-eval-query-stack.stderr Revert tests 2021-03-31 11:33:15 +00:00
const-eval-span.rs Surround types with backticks in type errors 2019-11-18 11:03:04 -08:00
const-eval-span.stderr Surround types with backticks in type errors 2019-11-18 11:03:04 -08:00
const-pointer-values-in-various-types.64bit.stderr adjust tests 2021-07-14 18:17:49 +02:00
const-pointer-values-in-various-types.rs Rename stderr->64bit.stderr where needed. 2021-03-31 08:23:11 +00:00
const_fn_ptr.rs remove const_fn feature gate from const tests 2021-04-29 09:27:45 +02:00
const_fn_ptr.stderr remove const_fn feature gate from const tests 2021-04-29 09:27:45 +02:00
const_fn_ptr_fail.rs remove const_fn feature gate from const tests 2021-04-29 09:27:45 +02:00
const_fn_ptr_fail.stderr remove const_fn feature gate from const tests 2021-04-29 09:27:45 +02:00
const_fn_ptr_fail2.rs remove const_fn feature gate from const tests 2021-04-29 09:27:45 +02:00
const_fn_ptr_fail2.stderr remove const_fn feature gate from const tests 2021-04-29 09:27:45 +02:00
const_let.rs rustc_mir: treat DropAndReplace as Drop + Assign in qualify_consts. 2019-07-02 09:33:55 +03:00
const_let.stderr update tests 2020-06-20 20:38:57 +00:00
const_panic.rs Stabilize const_panic 2021-10-04 02:33:33 -04:00
const_panic.stderr Stabilize const_panic 2021-10-04 02:33:33 -04:00
const_panic_2021.rs Stabilize const_panic 2021-10-04 02:33:33 -04:00
const_panic_2021.stderr Stabilize const_panic 2021-10-04 02:33:33 -04:00
const_panic_libcore_bin.rs Stabilize const_panic 2021-10-04 02:33:33 -04:00
const_panic_libcore_bin.stderr Stabilize const_panic 2021-10-04 02:33:33 -04:00
const_panic_track_caller.rs Stabilize const_panic 2021-10-04 02:33:33 -04:00
const_panic_track_caller.stderr Stabilize const_panic 2021-10-04 02:33:33 -04: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 Satisfy tidy 2020-06-20 14:15:36 +02:00
const_raw_ptr_ops.stderr Practice diagnostic message convention 2021-10-03 16:16:28 +09:00
const_raw_ptr_ops2.rs adjust tests 2021-07-14 18:17:49 +02:00
const_raw_ptr_ops2.stderr adjust tests 2021-07-14 18:17:49 +02: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 Update tests 2021-07-27 16:26:50 -04:00
dangling.rs bless you 2021-06-18 19:31:56 +02:00
dangling.stderr bless you 2021-06-18 19:31:56 +02:00
dont_promote_unstable_const_fn.rs remove const_fn feature gate from const tests 2021-04-29 09:27:45 +02:00
dont_promote_unstable_const_fn.stderr remove const_fn feature gate from const tests 2021-04-29 09:27:45 +02:00
dont_promote_unstable_const_fn_cross_crate.rs update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
dont_promote_unstable_const_fn_cross_crate.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
double_check.rs Stabilize transmute in constants and statics but not const fn 2020-07-11 09:22:17 +02:00
double_check2.rs We can make const eval sound, it's just super expensive 2020-09-19 10:36:36 +02: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 compiletest: Validate pass modes harder 2019-06-16 12:23:22 +03:00
erroneous-const.rs more erroneous-const tests 2021-05-09 16:07:00 +02:00
erroneous-const.stderr more erroneous-const tests 2021-05-09 16:07:00 +02:00
erroneous-const2.rs more erroneous-const tests 2021-05-09 16:07:00 +02:00
erroneous-const2.stderr more erroneous-const tests 2021-05-09 16:07:00 +02:00
extern_fat_pointer.rs Update tests for extern block linting 2021-01-13 07:49:16 -05:00
generic-slice.rs Add test cases for #64945 2019-10-01 14:59:16 -07:00
generic-slice.stderr Add test cases for #64945 2019-10-01 14:59:16 -07:00
ice-generic-assoc-const.rs adjust tests 2020-04-24 16:18:19 -04:00
ice-packed.rs Move some more tests to check-pass 2020-03-12 17:22:44 +01:00
index-out-of-bounds-never-type.rs make const_err a future incompat lint 2021-02-03 15:45:43 +01:00
index-out-of-bounds-never-type.stderr make const_err a future incompat lint 2021-02-03 15:45:43 +01:00
index_out_of_bounds.rs Remove licenses 2018-12-25 21:08:33 -07:00
index_out_of_bounds.stderr Make invalid integer operation messages consistent 2020-09-26 13:34:49 +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 Make invalid integer operation messages consistent 2020-09-26 13:34:49 +01:00
infinite_loop.rs Update tests 2020-06-28 10:08:12 -07:00
infinite_loop.stderr Fix drop handling for if let expressions 2021-09-01 23:47:41 +01:00
issue-43197.rs make const_err a future incompat lint 2021-02-03 15:45:43 +01:00
issue-43197.stderr make const_err a future incompat lint 2021-02-03 15:45:43 +01:00
issue-44578.rs Add a new normalization query just for mir constants 2021-03-31 10:40:42 +00:00
issue-44578.stderr clean up some const error reporting around promoteds 2021-01-24 13:34:34 +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 Introduce ~const 2021-08-27 05:07:37 +00:00
issue-49296.stderr Fix more tests 2021-08-27 05:07:38 +00: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 make const_err a future incompat lint 2021-02-03 15:45:43 +01:00
issue-50814-2.stderr const eval errors: display the current item instance if there are generics involved 2021-05-28 00:17:47 +02:00
issue-50814.rs make const_err a future incompat lint 2021-02-03 15:45:43 +01:00
issue-50814.stderr const eval errors: display the current item instance if there are generics involved 2021-05-28 00:17:47 +02:00
issue-51300.rs Move some more tests to check-pass 2020-03-12 17:22:44 +01:00
issue-52475.rs Update tests 2020-06-28 10:08:12 -07:00
issue-52475.stderr Update tests 2020-06-28 10:08:12 -07: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 Stabilize transmute in constants and statics but not const fn 2020-07-11 09:22:17 +02:00
issue-64908.rs [const-prop] Fix ICE when trying to eval polymorphic promoted MIR 2019-10-04 10:23:03 -04:00
issue-64970.rs Make error and warning annotations mandatory in UI tests 2019-11-10 21:01:02 +01:00
issue-65394.rs update diagnostics for &mut in constants 2020-06-19 11:48:46 -05:00
issue-65394.stderr Permit mutable references in all const contexts 2021-01-23 11:33:45 +00:00
issue-70723.rs Update tests 2020-06-28 10:08:12 -07:00
issue-70723.stderr Update tests 2020-06-28 10:08:12 -07:00
issue-70804-fn-subtyping.rs Update tests with new feature gate 2020-09-27 10:46:41 -07:00
issue-84957-const-str-as-bytes.rs add test for issue 84957 2021-10-18 08:41:18 +01:00
issue-85155.rs add test for issue 85155 and similar 2021-05-25 18:39:51 +02:00
issue-85155.stderr don't trim paths in collector PME message 2021-05-27 22:28:04 +02:00
livedrop.rs Update tests 2020-06-28 10:08:12 -07:00
livedrop.stderr Update tests 2020-06-28 10:08:12 -07:00
match-test-ptr-null.rs remove const_raw_ptr_to_usize_cast feature 2021-07-10 12:08:58 +02:00
match-test-ptr-null.stderr Practice diagnostic message convention 2021-10-03 16:16:28 +09:00
mod-static-with-const-fn.rs Bless mut tests 2020-09-29 19:20:33 -07:00
mod-static-with-const-fn.stderr Bless output 2020-09-29 19:20:33 -07:00
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
nrvo.rs Don't unleash NRVO const-eval test 2020-05-17 10:23:44 -07:00
panic-assoc-never-type.rs Stabilize const_panic 2021-10-04 02:33:33 -04:00
panic-assoc-never-type.stderr Stabilize const_panic 2021-10-04 02:33:33 -04:00
panic-never-type.rs Stabilize const_panic 2021-10-04 02:33:33 -04:00
panic-never-type.stderr Stabilize const_panic 2021-10-04 02:33:33 -04:00
partial_ptr_overwrite.rs add a test 2021-07-31 11:52:59 +02:00
partial_ptr_overwrite.stderr add a test 2021-07-31 11:52:59 +02:00
promote-static.rs Use the correct type for static qualifs 2019-12-25 21:09:51 +00: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
promoted_const_fn_fail.rs Update tests 2021-07-27 16:26:50 -04:00
promoted_const_fn_fail.stderr Update tests 2021-07-27 16:26:50 -04:00
promoted_const_fn_fail_deny_const_err.rs Update tests 2021-07-27 16:26:50 -04:00
promoted_const_fn_fail_deny_const_err.stderr Update tests 2021-07-27 16:26:50 -04:00
promoted_errors.noopt.stderr ensure failing promoteds in const/static bodies are handled correctly 2021-05-09 14:56:34 +02:00
promoted_errors.opt.stderr ensure failing promoteds in const/static bodies are handled correctly 2021-05-09 14:56:34 +02:00
promoted_errors.opt_with_overflow_checks.stderr ensure failing promoteds in const/static bodies are handled correctly 2021-05-09 14:56:34 +02:00
promoted_errors.rs ensure failing promoteds in const/static bodies are handled correctly 2021-05-09 14:56:34 +02:00
promoted_raw_ptr_ops.rs remove const_raw_ptr_to_usize_cast feature 2021-07-10 12:08:58 +02:00
promoted_raw_ptr_ops.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
pub_const_err.rs make const_err a future incompat lint 2021-02-03 15:45:43 +01:00
pub_const_err.stderr make const_err a future incompat lint 2021-02-03 15:45:43 +01:00
pub_const_err_bin.rs make const_err a future incompat lint 2021-02-03 15:45:43 +01:00
pub_const_err_bin.stderr make const_err a future incompat lint 2021-02-03 15:45:43 +01:00
ref_to_int_match.32bit.stderr Update tests 2021-07-27 16:26:50 -04:00
ref_to_int_match.64bit.stderr Update tests 2021-07-27 16:26:50 -04:00
ref_to_int_match.rs Update tests 2021-07-27 16:26:50 -04:00
shift_overflow.rs Migrate to numeric associated consts 2020-06-10 01:35:47 +00:00
shift_overflow.stderr Make invalid integer operation messages consistent 2020-09-26 13:34:49 +01:00
simple_with_undef.rs Move some const-eval build-pass tests to check-pass 2020-03-12 16:58:34 +01:00
strlen.rs Stabilize str::len, [T]::len, is_empty and str::as_bytes as const fn 2019-09-24 12:56:44 +02:00
transmute-const-promotion.rs update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
transmute-const-promotion.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
transmute-const.32bit.stderr Add 32bit.stderr files. 2021-03-31 09:33:45 +00:00
transmute-const.64bit.stderr Rename stderr->64bit.stderr where needed. 2021-03-31 08:23:11 +00:00
transmute-const.rs Rename stderr->64bit.stderr where needed. 2021-03-31 08:23:11 +00:00
ub-enum.32bit.stderr adjust tests 2021-07-14 18:17:49 +02:00
ub-enum.64bit.stderr adjust tests 2021-07-14 18:17:49 +02:00
ub-enum.rs Rename stderr->64bit.stderr where needed. 2021-03-31 08:23:11 +00:00
ub-incorrect-vtable.32bit.stderr bless you 2021-06-18 19:31:56 +02:00
ub-incorrect-vtable.64bit.stderr bless you 2021-06-18 19:31:56 +02:00
ub-incorrect-vtable.rs bless you 2021-06-18 19:31:56 +02:00
ub-int-array.32bit.stderr update tests involving CTFE validation 2021-06-13 23:26:06 +02:00
ub-int-array.64bit.stderr update tests involving CTFE validation 2021-06-13 23:26:06 +02:00
ub-int-array.rs update tests involving CTFE validation 2021-06-13 23:26:06 +02:00
ub-nonnull.32bit.stderr tweak pointer out-of-bounds error message 2021-07-15 22:47:11 +02:00
ub-nonnull.64bit.stderr tweak pointer out-of-bounds error message 2021-07-15 22:47:11 +02:00
ub-nonnull.rs bless you 2021-06-18 19:31:56 +02:00
ub-ref-ptr.32bit.stderr adjust tests 2021-07-14 18:17:49 +02:00
ub-ref-ptr.64bit.stderr adjust tests 2021-07-14 18:17:49 +02:00
ub-ref-ptr.rs Rename stderr->64bit.stderr where needed. 2021-03-31 08:23:11 +00:00
ub-uninhabit.32bit.stderr update tests involving CTFE validation 2021-06-13 23:26:06 +02:00
ub-uninhabit.64bit.stderr update tests involving CTFE validation 2021-06-13 23:26:06 +02:00
ub-uninhabit.rs Rename stderr->64bit.stderr where needed. 2021-03-31 08:23:11 +00:00
ub-upvars.32bit.stderr adjust tests 2021-07-14 18:17:49 +02:00
ub-upvars.64bit.stderr adjust tests 2021-07-14 18:17:49 +02:00
ub-upvars.rs Rename stderr->64bit.stderr where needed. 2021-03-31 08:23:11 +00:00
ub-wide-ptr.32bit.stderr tweak pointer out-of-bounds error message 2021-07-15 22:47:11 +02:00
ub-wide-ptr.64bit.stderr tweak pointer out-of-bounds error message 2021-07-15 22:47:11 +02:00
ub-wide-ptr.rs Rename stderr->64bit.stderr where needed. 2021-03-31 08:23:11 +00:00
union-const-eval-field.rs remove const_fn feature gate from const tests 2021-04-29 09:27:45 +02:00
union-const-eval-field.stderr remove const_fn feature gate from const tests 2021-04-29 09:27:45 +02:00
union-ice.rs remove const_fn feature gate from const tests 2021-04-29 09:27:45 +02:00
union-ice.stderr update tests involving CTFE validation 2021-06-13 23:26:06 +02:00
union-ub.32bit.stderr Add 32bit.stderr files. 2021-03-31 09:33:45 +00:00
union-ub.64bit.stderr Rename stderr->64bit.stderr where needed. 2021-03-31 08:23:11 +00:00
union-ub.rs Rename stderr->64bit.stderr where needed. 2021-03-31 08:23:11 +00:00
union_promotion.rs const-eval tests: make all unions repr(C) 2019-08-30 09:35:33 +02:00
union_promotion.stderr const-eval tests: make all unions repr(C) 2019-08-30 09:35:33 +02:00
unused-broken-const.rs make const_err a future incompat lint 2021-02-03 15:45:43 +01:00
unused-broken-const.stderr make const_err a future incompat lint 2021-02-03 15:45:43 +01:00
unwind-abort.rs Stabilize const_panic 2021-10-04 02:33:33 -04:00
unwind-abort.stderr rustc: Fill out remaining parts of C-unwind ABI 2021-08-03 07:06:19 -07:00
valid-const.rs Stabilize transmute in constants and statics but not const fn 2020-07-11 09:22:17 +02:00
validate_uninhabited_zsts.32bit.stderr Update tests 2021-07-27 16:26:50 -04:00
validate_uninhabited_zsts.64bit.stderr Update tests 2021-07-27 16:26:50 -04:00
validate_uninhabited_zsts.rs Update tests 2021-07-27 16:26:50 -04:00
write-to-uninhabited-enum-variant.rs Don't ICE when evaluating writes to uninhabited enum variants 2019-10-18 19:16:49 -04:00
zst_operand_eval.rs Move some const-eval build-pass tests to check-pass 2020-03-12 16:58:34 +01:00