rust/src/test/ui/consts/const-eval
Pietro Albini d9d96637d4
Rollup merge of #54702 - RalfJung:fn-ptr-promotion, r=oli-obk
do not promote comparing function pointers

This *could* break existing code that relied on fn ptr comparison getting promoted to `'static` lifetime.

Fixes https://github.com/rust-lang/rust/issues/54696
2018-10-02 22:54:35 +02:00
..
auxiliary Satisfy tidy 2018-08-25 15:54:09 +02:00
conditional_array_execution.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
conditional_array_execution.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
const-eval-overflow-2.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
const-eval-overflow-2.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
const-eval-overflow-3.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
const-eval-overflow-3.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
const-eval-overflow-3b.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
const-eval-overflow-3b.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
const-eval-overflow-4.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
const-eval-overflow-4.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
const-eval-overflow-4b.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
const-eval-overflow-4b.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
const-eval-overflow2.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
const-eval-overflow2.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
const-eval-overflow2b.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
const-eval-overflow2b.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
const-eval-overflow2c.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
const-eval-overflow2c.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
const-eval-span.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
const-eval-span.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
const-pointer-values-in-various-types.rs Added pointer checking to sanity checks 2018-08-31 16:25:01 +01:00
const-pointer-values-in-various-types.stderr Added pointer checking to sanity checks 2018-08-31 16:25:01 +01:00
const_let.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
const_let.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
const_panic.rs Reexpose stability hole in the presence of feature gates 2018-08-22 18:31:53 +02:00
const_panic.stderr Reexpose stability hole in the presence of feature gates 2018-08-22 18:31:53 +02:00
const_panic_libcore.rs Reexpose stability hole in the presence of feature gates 2018-08-22 18:31:53 +02:00
const_panic_libcore.stderr Reexpose stability hole in the presence of feature gates 2018-08-22 18:31:53 +02:00
const_panic_libcore_main.rs stabilize #[panic_handler] 2018-09-07 13:27:30 +02:00
const_panic_libcore_main.stderr stabilize #[panic_handler] 2018-09-07 13:27:30 +02:00
const_prop_errors.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
const_raw_ptr_ops.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
const_raw_ptr_ops.stderr fix UI tests 2018-08-22 13:08:39 +02:00
const_signed_pat.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
const_transmute.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
dont_promote_unstable_const_fn.nll.stderr Change the diagnostic number from 714 to 716. 2018-09-25 15:23:57 +01:00
dont_promote_unstable_const_fn.rs Check cross crate stability of const fn 2018-08-25 15:31:24 +02:00
dont_promote_unstable_const_fn.stderr Check cross crate stability of const fn 2018-08-25 15:31:24 +02:00
dont_promote_unstable_const_fn_cross_crate.nll.stderr Change the diagnostic number from 714 to 716. 2018-09-25 15:23:57 +01:00
dont_promote_unstable_const_fn_cross_crate.rs Check cross crate stability of const fn 2018-08-25 15:31:24 +02:00
dont_promote_unstable_const_fn_cross_crate.stderr Check cross crate stability of const fn 2018-08-25 15:31:24 +02:00
double_check.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
double_check2.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
double_check2.stderr address nits 2018-08-28 19:57:05 +02:00
duration_conversion.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
enum_discr.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
extern_fat_pointer.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
feature-gate-const_fn_union.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
feature-gate-const_fn_union.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
feature-gate-const_panic.rs Reexpose stability hole in the presence of feature gates 2018-08-22 18:31:53 +02:00
feature-gate-const_panic.stderr Reexpose stability hole in the presence of feature gates 2018-08-22 18:31:53 +02:00
ice-generic-assoc-const.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
ice-packed.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
index_out_of_bounds.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
index_out_of_bounds.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
index_out_of_bounds_propagated.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
index_out_of_bounds_propagated.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
infinite_loop.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
infinite_loop.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
issue-43197.rs Restrict most uses of const_fn to min_const_fn 2018-08-31 08:40:00 +02:00
issue-43197.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
issue-44578.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
issue-44578.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
issue-47971.rs Restrict most uses of const_fn to min_const_fn 2018-08-31 08:40:00 +02:00
issue-50706.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
issue-50814-2.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
issue-50814-2.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
issue-50814.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
issue-50814.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
issue-51300.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
issue-52442.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
issue-52442.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
issue-52443.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
issue-52443.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
issue-52475.rs Add regression test for #52475 2018-09-03 20:02:35 +02:00
issue-52475.stderr Add regression test for #52475 2018-09-03 20:02:35 +02:00
issue-53157.rs Moved issue-53157.rs into src/test/ui/consts/const-eval/ 2018-08-20 22:23:56 +01:00
issue-53401.rs Use partial but correct vtable layout 2018-08-28 13:15:22 +02:00
match-test-ptr-null.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
match-test-ptr-null.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
mod-static-with-const-fn.rs Add a test that tries to modify static memory at compile-time 2018-09-12 12:27:28 +08:00
mod-static-with-const-fn.stderr Add a test that tries to modify static memory at compile-time 2018-09-12 12:27:28 +08:00
no_lint_for_statically_known_error.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
promote_mutable_zst_mir_borrowck.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
promoted_const_fn_fail.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
promoted_errors.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
promoted_errors.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
promoted_raw_ptr_ops.nll.stderr also compile-fail test fn ptr comparison promotion 2018-09-30 20:28:00 +02:00
promoted_raw_ptr_ops.rs also compile-fail test fn ptr comparison promotion 2018-09-30 20:28:00 +02:00
promoted_raw_ptr_ops.stderr also compile-fail test fn ptr comparison promotion 2018-09-30 20:28:00 +02:00
pub_const_err.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
pub_const_err.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
pub_const_err_bin.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
pub_const_err_bin.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
ref_to_int_match.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
ref_to_int_match.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
shift_overflow.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
shift_overflow.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
simple_with_undef.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
strlen.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
transmute-const-promotion.nll.stderr Change the diagnostic number from 714 to 716. 2018-09-25 15:23:57 +01:00
transmute-const-promotion.rs Made std::intrinsics::transmute() const fn. 2018-08-30 13:06:20 +01:00
transmute-const-promotion.stderr Made std::intrinsics::transmute() const fn. 2018-08-30 13:06:20 +01:00
transmute-const.rs Made std::intrinsics::transmute() const fn. 2018-08-30 13:06:20 +01:00
transmute-const.stderr Made std::intrinsics::transmute() const fn. 2018-08-30 13:06:20 +01:00
ub-enum.rs optimize sanity check path printing 2018-08-22 13:08:39 +02:00
ub-enum.stderr address nits 2018-08-28 19:57:05 +02:00
ub-uninhabit.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
ub-uninhabit.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
ub-usize-in-ref.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
union-const-eval-field.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
union-const-eval-field.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
union-ice.rs do not normalize non-scalar constants to a ConstValue::ScalarPair 2018-09-30 12:37:00 +02:00
union-ice.stderr do not normalize non-scalar constants to a ConstValue::ScalarPair 2018-09-30 12:37:00 +02:00
union-ub.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
union-ub.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
union_promotion.nll.stderr Update E0714 to E0716 in tests output 2018-09-25 16:24:20 +01:00
union_promotion.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
union_promotion.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
zst_operand_eval.rs Use assertion-like static assertions 2018-09-11 13:30:26 +02:00