rust/tests/ui/consts/const-eval
Scott McMurray 3554036280 Use nuw when calculating slice lengths from Ranges
An `assume` would definitely not be worth it, but since the flag is almost free we might as well tell LLVM this, especially on `_unchecked` calls where there's no obvious way for it to deduce it.

(Today neither safe nor unsafe indexing gets it: <https://rust.godbolt.org/z/G1jYT548s>)
2023-03-05 15:15:22 -08:00
..
auxiliary
heap
simd
stable-metric Move const-eval/stable-metric ui tests 2023-01-24 00:01:40 +00:00
assign-to-static-within-other-static.rs
assign-to-static-within-other-static.stderr
conditional_array_execution.rs
conditional_array_execution.stderr
const_fn_ptr_fail2.rs
const_fn_ptr_fail2.stderr
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_2021.rs
const_panic_2021.stderr
const_panic_libcore_bin.rs
const_panic_libcore_bin.stderr
const_panic_stability.e2018.stderr
const_panic_stability.e2021.stderr
const_panic_stability.rs
const_panic_track_caller.rs
const_panic_track_caller.stderr
const_panic.rs
const_panic.stderr
const_prop_errors.rs
const_raw_ptr_ops2.rs
const_raw_ptr_ops2.stderr
const_raw_ptr_ops.rs
const_raw_ptr_ops.stderr
const_signed_pat.rs
const-eval-intrinsic-promotion.rs
const-eval-intrinsic-promotion.stderr
const-eval-overflow2.rs
const-eval-overflow2.stderr
const-eval-overflow2b.rs
const-eval-overflow2b.stderr
const-eval-overflow2c.rs
const-eval-overflow2c.stderr
const-eval-overflow-2.rs
const-eval-overflow-2.stderr
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-query-stack.rs Tweak ICE message 2023-02-07 19:17:24 +00:00
const-eval-query-stack.stderr Tweak ICE message 2023-02-07 19:17:24 +00:00
const-eval-span.rs Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
const-eval-span.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
const-pointer-values-in-various-types.64bit.stderr
const-pointer-values-in-various-types.rs
dangling.rs
dangling.stderr
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_check.rs
duration_conversion.rs
enum_discr.rs
erroneous-const2.rs
erroneous-const2.stderr
erroneous-const.rs
erroneous-const.stderr
extern_fat_pointer.rs
format.rs
format.stderr
generic-slice.rs
generic-slice.stderr
ice-generic-assoc-const.rs
ice-packed.rs
index_out_of_bounds_propagated.rs
index_out_of_bounds_propagated.stderr
index_out_of_bounds.rs
index_out_of_bounds.stderr
index-out-of-bounds-never-type.rs
index-out-of-bounds-never-type.stderr
infinite_loop.rs
infinite_loop.stderr
issue-43197.rs
issue-43197.stderr
issue-44578.rs
issue-44578.stderr
issue-47971.rs
issue-49296.rs
issue-49296.stderr
issue-50706.rs
issue-50814-2.rs
issue-50814-2.stderr
issue-50814.rs
issue-50814.stderr
issue-51300.rs
issue-52475.rs
issue-52475.stderr
issue-53157.rs
issue-53401.rs
issue-55541.rs
issue-64908.rs
issue-64970.rs
issue-65394.rs
issue-65394.stderr
issue-70723.rs
issue-70723.stderr
issue-70804-fn-subtyping.rs
issue-84957-const-str-as-bytes.rs
issue-85155.rs
issue-85155.stderr
issue-85907.rs
issue-85907.stderr
issue-91827-extern-types.rs Fix unintentional UB in ui tests 2023-02-15 09:05:05 -05:00
issue-100878.rs
issue-104390.rs
issue-104390.stderr
livedrop.rs
livedrop.stderr
match-test-ptr-null.rs
match-test-ptr-null.stderr
mod-static-with-const-fn.rs
mod-static-with-const-fn.stderr
no_lint_for_statically_known_error.rs
nrvo.rs
panic-assoc-never-type.rs
panic-assoc-never-type.stderr
panic-never-type.rs
panic-never-type.stderr
partial_ptr_overwrite.rs
partial_ptr_overwrite.stderr
promote_mutable_zst_mir_borrowck.rs
promote-static.rs
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
promoted_errors.opt_with_overflow_checks.stderr
promoted_errors.opt.stderr
promoted_errors.rs
promoted_raw_ptr_ops.rs
promoted_raw_ptr_ops.stderr
raw-bytes.32bit.stderr basic dyn* support for Miri 2023-02-20 15:08:05 +01:00
raw-bytes.64bit.stderr basic dyn* support for Miri 2023-02-20 15:08:05 +01:00
raw-bytes.rs
ref_to_int_match.32bit.stderr
ref_to_int_match.64bit.stderr
ref_to_int_match.rs
shift_overflow.rs
shift_overflow.stderr
simple_with_undef.rs
size-of-t.rs
size-of-t.stderr
strlen.rs
transmute-const-promotion.rs
transmute-const-promotion.stderr
transmute-const.32bit.stderr
transmute-const.64bit.stderr
transmute-const.rs
ub-enum-overwrite.rs
ub-enum-overwrite.stderr
ub-enum.32bit.stderr
ub-enum.64bit.stderr
ub-enum.rs
ub-incorrect-vtable.32bit.stderr
ub-incorrect-vtable.64bit.stderr
ub-incorrect-vtable.rs
ub-int-array.32bit.stderr
ub-int-array.64bit.stderr
ub-int-array.rs
ub-nonnull.chalk.64bit.stderr
ub-nonnull.rs
ub-nonnull.stderr
ub-ref-ptr.rs
ub-ref-ptr.stderr basic dyn* support for Miri 2023-02-20 15:08:05 +01:00
ub-slice-get-unchecked.rs Use nuw when calculating slice lengths from Ranges 2023-03-05 15:15:22 -08:00
ub-slice-get-unchecked.stderr Use nuw when calculating slice lengths from Ranges 2023-03-05 15:15:22 -08:00
ub-uninhabit.rs
ub-uninhabit.stderr
ub-upvars.32bit.stderr
ub-upvars.64bit.stderr
ub-upvars.rs
ub-wide-ptr.chalk.64bit.stderr
ub-wide-ptr.rs
ub-wide-ptr.stderr
union_promotion.rs
union_promotion.stderr
union-const-eval-field.rs
union-const-eval-field.stderr
union-ice.rs
union-ice.stderr
union-ub.32bit.stderr
union-ub.64bit.stderr
union-ub.rs
unused-broken-const.rs
unused-broken-const.stderr
unwind-abort.rs
unwind-abort.stderr
valid-const.rs
validate_uninhabited_zsts.32bit.stderr lint: don't suggest assume_init for uninhabited types 2023-02-18 19:05:44 +01:00
validate_uninhabited_zsts.64bit.stderr lint: don't suggest assume_init for uninhabited types 2023-02-18 19:05:44 +01:00
validate_uninhabited_zsts.rs
write-to-uninhabited-enum-variant.rs
zst_operand_eval.rs