rust/src/test/ui/consts/const-eval
ecstatic-morse 6ae1da3198
But whatever
2020-10-04 13:25:45 -07:00
..
auxiliary Require issue = "none" over issue = "0" in unstable attributes 2019-12-21 13:16:18 +02:00
simd Require const stability attributes on intrinsics to be able to use them in constant contexts 2019-12-20 23:15:50 +01: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 Errors in promoteds may only cause lints not hard errors 2020-01-10 09:08:25 +01:00
conditional_array_execution.stderr Make invalid integer operation messages consistent 2020-09-26 13:34:49 +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 ty: convert ErrorHandled::Reported to ConstKind::Error. 2020-04-16 19:00:30 +03:00
const-eval-overflow-3.stderr Make invalid integer operation messages consistent 2020-09-26 13:34:49 +01:00
const-eval-overflow-3b.rs ty: convert ErrorHandled::Reported to ConstKind::Error. 2020-04-16 19:00:30 +03:00
const-eval-overflow-3b.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
const-eval-overflow-4.rs Remove licenses 2018-12-25 21:08:33 -07:00
const-eval-overflow-4.stderr Make invalid integer operation messages consistent 2020-09-26 13:34:49 +01:00
const-eval-overflow-4b.rs Surround types with backticks in type errors 2019-11-18 11:03:04 -08:00
const-eval-overflow-4b.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
const-eval-overflow2.rs Swap const evaluation lint spans to point at problem in primary span 2019-03-23 13:05:30 -07:00
const-eval-overflow2.stderr Make invalid integer operation messages consistent 2020-09-26 13:34:49 +01:00
const-eval-overflow2b.rs Swap const evaluation lint spans to point at problem in primary span 2019-03-23 13:05:30 -07:00
const-eval-overflow2b.stderr Make invalid integer operation messages consistent 2020-09-26 13:34:49 +01:00
const-eval-overflow2c.rs Swap const evaluation lint spans to point at problem in primary span 2019-03-23 13:05:30 -07:00
const-eval-overflow2c.stderr Make invalid integer operation messages consistent 2020-09-26 13:34:49 +01:00
const-eval-query-stack.rs Extend normalization in const-eval-query-stack test 2020-08-21 00:00:00 +00:00
const-eval-query-stack.stderr Reflect the "do not call this query directly" mentality in its name 2020-09-19 10:57:14 +02: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.rs const-eval tests: make all unions repr(C) 2019-08-30 09:35:33 +02:00
const-pointer-values-in-various-types.stderr Stop using the const_eval query for initializers of statics 2020-09-19 10:36:36 +02:00
const_fn_ptr.rs warn about each skipped feature gate 2020-05-03 14:23:08 +02:00
const_fn_ptr.stderr Bless tests 2020-09-27 10:46:41 -07:00
const_fn_ptr_fail.rs warn about each skipped feature gate 2020-05-03 14:23:08 +02:00
const_fn_ptr_fail.stderr warn about each skipped feature gate 2020-05-03 14:23:08 +02:00
const_fn_ptr_fail2.rs warn about each skipped feature gate 2020-05-03 14:23:08 +02:00
const_fn_ptr_fail2.stderr Bless tests 2020-09-27 10:46:41 -07: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 Remove licenses 2018-12-25 21:08:33 -07:00
const_panic.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 Remove licenses 2018-12-25 21:08:33 -07:00
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_libcore_main.rs Abort when catch_unwind catches a foreign exception 2020-08-27 21:08:30 +01: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_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 Refer just to the issue in the raw ptr cmp diagnostic instead of explaining everything in the diagnostic 2020-06-20 14:09:07 +02:00
const_raw_ptr_ops2.rs Remove the const_raw_ptr_comparison feature gate. 2020-06-19 18:13:41 +02:00
const_raw_ptr_ops2.stderr Remove the const_raw_ptr_comparison feature gate. 2020-06-19 18:13:41 +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 test stderr with results of enabling unused lints 2019-09-08 11:32:28 -04:00
dangling.rs Stabilize transmute in constants and statics but not const fn 2020-07-11 09:22:17 +02:00
dangling.stderr fix some cases of unexpected exceptions leaving validation 2020-03-08 22:04:54 +01:00
dont_promote_unstable_const_fn.rs Require issue = "none" over issue = "0" in unstable attributes 2019-12-21 13:16:18 +02:00
dont_promote_unstable_const_fn.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01: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
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 compiletest: Validate pass modes harder 2019-06-16 12:23:22 +03:00
erroneous-const.rs more precise span for erroneous consts during CTFE/Miri 2020-08-12 10:48:08 +02:00
erroneous-const.stderr Make invalid integer operation messages consistent 2020-09-26 13:34:49 +01:00
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 const-eval tests: make all unions repr(C) 2019-08-30 09:35:33 +02:00
feature-gate-const_fn_union.stderr --bless --compare-mode=nll 2020-02-09 20:43:49 +01:00
feature-gate-const_panic.rs Remove licenses 2018-12-25 21:08:33 -07:00
feature-gate-const_panic.stderr --bless --compare-mode=nll 2020-02-09 20:43:49 +01: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 Optimize away BitAnd and BitOr when possible 2020-07-22 11:32:36 +02:00
index-out-of-bounds-never-type.stderr Make invalid integer operation messages consistent 2020-09-26 13:34:49 +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 Update tests 2020-06-28 10:08:12 -07: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 Make invalid integer operation messages consistent 2020-09-26 13:34:49 +01: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 const-eval tests: make all unions repr(C) 2019-08-30 09:35:33 +02:00
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 rework run-fail and support check,build-fail 2019-12-21 22:16:00 +01:00
issue-50814-2.stderr Make invalid integer operation messages consistent 2020-09-26 13:34:49 +01:00
issue-50814.rs Promote Refs to constants instead of static 2020-01-10 09:08:24 +01:00
issue-50814.stderr Make invalid integer operation messages consistent 2020-09-26 13:34:49 +01:00
issue-51300.rs Move some more tests to check-pass 2020-03-12 17:22:44 +01:00
issue-52442.rs Update tests 2020-06-28 10:08:12 -07:00
issue-52442.stderr Update tests 2020-06-28 10:08:12 -07: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 Rollup merge of #73515 - christianpoveda:livedrop-diagnostics, r=oli-obk 2020-06-23 00:34:00 -07: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
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 Update tests 2020-06-28 10:08:10 -07:00
match-test-ptr-null.stderr Update tests 2020-06-28 10:08:10 -07: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 rework run-fail and support check,build-fail 2019-12-21 22:16:00 +01:00
panic-assoc-never-type.stderr rustc: Add a warning count upon completion 2020-04-11 16:15:24 +02:00
panic-never-type.rs rework run-fail and support check,build-fail 2019-12-21 22:16:00 +01:00
panic-never-type.stderr rustc: Add a warning count upon completion 2020-04-11 16:15:24 +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 const-eval tests: make all unions repr(C) 2019-08-30 09:35:33 +02:00
promoted_const_fn_fail.stderr const-eval tests: make all unions repr(C) 2019-08-30 09:35:33 +02:00
promoted_const_fn_fail_deny_const_err.rs const-eval tests: make all unions repr(C) 2019-08-30 09:35:33 +02:00
promoted_const_fn_fail_deny_const_err.stderr const-eval tests: make all unions repr(C) 2019-08-30 09:35:33 +02:00
promoted_errors.noopt.stderr Make invalid integer operation messages consistent 2020-09-26 13:34:49 +01:00
promoted_errors.opt.stderr Make invalid integer operation messages consistent 2020-09-26 13:34:49 +01:00
promoted_errors.opt_with_overflow_checks.stderr Make invalid integer operation messages consistent 2020-09-26 13:34:49 +01:00
promoted_errors.rs Fix some tests failing in --pass check mode 2020-04-19 17:19:28 +03:00
promoted_raw_ptr_ops.rs Remove the const_raw_ptr_comparison feature gate. 2020-06-19 18:13:41 +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 Move some const-eval build-pass tests to check-pass 2020-03-12 16:58:34 +01:00
pub_const_err.stderr Make invalid integer operation messages consistent 2020-09-26 13:34:49 +01:00
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 Make invalid integer operation messages consistent 2020-09-26 13:34:49 +01:00
ref_to_int_match.rs Update tests 2020-01-09 21:23:12 +03:00
ref_to_int_match.stderr Pointer printing: do not print 0 offset 2020-05-12 13:30:50 +02: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.rs Stabilize transmute in constants and statics but not const fn 2020-07-11 09:22:17 +02:00
transmute-const.stderr Stabilize transmute in constants and statics but not const fn 2020-07-11 09:22:17 +02:00
ub-enum.rs Rollup merge of #72920 - oli-obk:const_transmute, r=RalfJung 2020-07-11 08:53:06 -07:00
ub-enum.stderr Stop using the const_eval query for initializers of statics 2020-09-19 10:36:36 +02:00
ub-int-array.rs Stabilize transmute in constants and statics but not const fn 2020-07-11 09:22:17 +02:00
ub-int-array.stderr Stabilize transmute in constants and statics but not const fn 2020-07-11 09:22:17 +02:00
ub-nonnull.rs Stabilize transmute in constants and statics but not const fn 2020-07-11 09:22:17 +02:00
ub-nonnull.stderr Stop using the const_eval query for initializers of statics 2020-09-19 10:36:36 +02:00
ub-ref.rs Stabilize transmute in constants and statics but not const fn 2020-07-11 09:22:17 +02:00
ub-ref.stderr Stop using the const_eval query for initializers of statics 2020-09-19 10:36:36 +02:00
ub-uninhabit.rs Stabilize transmute in constants and statics but not const fn 2020-07-11 09:22:17 +02:00
ub-uninhabit.stderr Stabilize transmute in constants and statics but not const fn 2020-07-11 09:22:17 +02:00
ub-upvars.rs Stabilize transmute in constants and statics but not const fn 2020-07-11 09:22:17 +02:00
ub-upvars.stderr Stabilize transmute in constants and statics but not const fn 2020-07-11 09:22:17 +02:00
ub-wide-ptr.rs Stabilize transmute in constants and statics but not const fn 2020-07-11 09:22:17 +02:00
ub-wide-ptr.stderr Stabilize transmute in constants and statics but not const fn 2020-07-11 09:22:17 +02:00
union-const-eval-field.rs const-eval tests: make all unions repr(C) 2019-08-30 09:35:33 +02:00
union-const-eval-field.stderr Fixed grammar/style in error messages and reblessed tests. 2019-09-06 03:46:08 +01:00
union-ice.rs const-eval tests: make all unions repr(C) 2019-08-30 09:35:33 +02:00
union-ice.stderr switch back to 'bytes' 2020-04-16 13:19:51 +02:00
union-ub.rs const validation: add test for uninit bool 2020-07-05 13:48:06 +02:00
union-ub.stderr const validation: add test for uninit bool 2020-07-05 13:48:06 +02: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 Remove licenses 2018-12-25 21:08:33 -07:00
unused-broken-const.stderr Make invalid integer operation messages consistent 2020-09-26 13:34:49 +01:00
unwind-abort.rs But whatever 2020-10-04 13:25:45 -07:00
unwind-abort.stderr Ensure that the const-eval engine handles #[unwind(aborts)] 2020-10-03 16:26:09 -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.rs Stabilize transmute in constants and statics but not const fn 2020-07-11 09:22:17 +02:00
validate_uninhabited_zsts.stderr rustc: Add a warning count upon completion 2020-04-11 16:15:24 +02: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