rust/src/test/ui/consts
2020-07-05 13:48:06 +02:00
..
auxiliary Require stable/unstable annotations for the constness of all stable functions with a const modifier 2019-12-13 11:27:02 +01:00
const_constructor
const_in_pattern Update tests 2020-06-28 10:08:10 -07:00
const_limit Update tests 2020-06-28 10:08:12 -07:00
const-eval const validation: add test for uninit bool 2020-07-05 13:48:06 +02:00
const-extern-fn parser: fuse free fn parsing together. 2020-02-13 10:39:24 +01:00
const-mut-refs add new error code 2020-06-19 14:16:38 -05:00
control-flow Update tests 2020-06-28 10:08:12 -07:00
min_const_fn Update tests 2020-06-28 10:08:12 -07:00
miri_unleashed Bless failing tests 2020-06-30 21:03:34 +02:00
rfc-2203-const-array-repeat-exprs
std Test u8::is_ascii alongside char::is_ascii 2020-02-08 21:36:56 -08:00
array-literal-index-oob.rs Fix some tests failing in --pass check mode 2020-04-19 17:19:28 +03:00
array-literal-index-oob.stderr rustc: Add a warning count upon completion 2020-04-11 16:15:24 +02:00
ascii_ctype.rs Test ASCII ctype methods in a const context 2020-02-08 22:16:47 -08:00
assoc_const_generic_impl.rs rework run-fail and support check,build-fail 2019-12-21 22:16:00 +01:00
assoc_const_generic_impl.stderr rustc: Add a warning count upon completion 2020-04-11 16:15:24 +02:00
assoc-const.rs
associated_const_generic.rs Array repeat expression lengths must be monomorphic at MIR building time 2020-01-16 16:18:08 +01:00
bswap-const.rs
cast-discriminant-zst-enum.rs Fix ICE caused by truncating a negative ZST enum discriminant 2020-03-21 07:02:12 -04:00
chained-constants-stackoverflow.rs
const_arg_local.rs
const_arg_local.stderr
const_arg_promotable2.rs
const_arg_promotable2.stderr
const_arg_promotable.rs
const_arg_promotable.stderr
const_arg_wrapper.rs
const_arg_wrapper.stderr
const_discriminant.rs explain the use of a custom identity function 2020-03-10 12:46:22 +01:00
const_fn_return_nested_fn_ptr.rs
const_forget.rs Update const_forget.rs 2020-03-20 10:36:40 +01:00
const_let_assign2.rs
const_let_assign3.rs update diagnostics for &mut in constants 2020-06-19 11:48:46 -05:00
const_let_assign3.stderr add new error code 2020-06-19 14:16:38 -05:00
const_let_assign.rs
const_let_eq_float.rs encode ; stmt w/o expr as StmtKind::Empty 2020-03-01 23:02:17 +01:00
const_let_eq.rs encode ; stmt w/o expr as StmtKind::Empty 2020-03-01 23:02:17 +01:00
const_let_irrefutable.rs
const_let_promote.rs
const_let_refutable.rs Update tests 2020-06-28 10:08:10 -07:00
const_let_refutable.stderr Update tests 2020-06-28 10:08:10 -07:00
const_prop_slice_pat_ice.rs slice_patterns: remove gates in tests 2020-01-18 19:33:47 +01:00
const_short_circuit.rs Update tests 2020-06-28 10:08:10 -07:00
const-address-of-interior-mut.rs Add more tests for raw_ref_op 2019-12-18 20:30:00 +00:00
const-address-of-interior-mut.stderr Add more tests for raw_ref_op 2019-12-18 20:30:00 +00:00
const-address-of-mut.rs Add more tests for raw_ref_op 2019-12-18 20:30:00 +00:00
const-address-of-mut.stderr --bless --compare-mode=nll 2020-02-09 20:43:49 +01:00
const-address-of.rs Add more tests for raw_ref_op 2019-12-18 20:30:00 +00:00
const-adt-align-mismatch.rs
const-array-oob-arith.rs
const-array-oob-arith.stderr
const-array-oob.rs
const-array-oob.stderr
const-autoderef.rs
const-big-enum.rs
const-binops.rs
const-bitshift-rhs-inference.rs
const-block-cross-crate-fn.rs
const-block-item-macro-codegen.rs
const-block-item.rs
const-block-non-item-statement-3.rs
const-block-non-item-statement-rpass.rs
const-block-non-item-statement.rs
const-block.rs update tests 2020-03-31 19:01:49 +02:00
const-bound.rs
const-byte-str-cast.rs
const-call.rs
const-call.stderr
const-cast-different-types.rs
const-cast-different-types.stderr
const-cast-ptr-int.rs
const-cast-wrong-type.rs
const-cast-wrong-type.stderr
const-cast.rs
const-const.rs
const-contents.rs
const-cross-crate-const.rs
const-cross-crate-extern.rs
const-deref-ptr.rs
const-deref-ptr.stderr --bless --compare-mode=nll 2020-02-09 20:43:49 +01:00
const-deref.rs
const-endianess.rs
const-enum-byref-self.rs
const-enum-byref.rs
const-enum-cast.rs
const-enum-ptr.rs
const-enum-struct2.rs
const-enum-struct.rs
const-enum-structlike.rs
const-enum-tuple2.rs
const-enum-tuple.rs
const-enum-tuplestruct2.rs
const-enum-tuplestruct.rs
const-enum-vec-index.rs
const-enum-vec-ptr.rs
const-enum-vector.rs
const-err2.noopt.stderr Show the values and computation that would overflow a const evaluation or propagation 2020-06-26 10:08:52 +02:00
const-err2.opt_with_overflow_checks.stderr Show the values and computation that would overflow a const evaluation or propagation 2020-06-26 10:08:52 +02:00
const-err2.opt.stderr Show the values and computation that would overflow a const evaluation or propagation 2020-06-26 10:08:52 +02:00
const-err2.rs avoid excessive number of revisions 2020-02-19 11:25:41 +01:00
const-err4.rs
const-err4.stderr
const-err-early.rs
const-err-early.stderr Show the values and computation that would overflow a const evaluation or propagation 2020-06-26 10:08:52 +02:00
const-err-multi.rs
const-err-multi.stderr Show the values and computation that would overflow a const evaluation or propagation 2020-06-26 10:08:52 +02:00
const-err-rpass.rs
const-err.rs better lint names 2020-02-18 22:49:47 +01:00
const-err.stderr rustc: Add a warning count upon completion 2020-04-11 16:15:24 +02:00
const-expr-addr-operator.rs
const-expr-in-fixed-length-vec.rs
const-expr-in-vec-repeat.rs
const-extern-function.rs
const-external-macro-const-err.rs
const-external-macro-const-err.stderr rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros. 2020-02-06 21:46:38 +02:00
const-fields-and-indexing.rs
const-fn-const-eval.rs
const-fn-destructuring-arg.rs
const-fn-feature-flags.rs
const-fn-method.rs
const-fn-mismatch.rs ast_validation: tweak diagnostic output 2020-02-13 10:40:17 +01:00
const-fn-mismatch.stderr ast_validation: tweak diagnostic output 2020-02-13 10:40:17 +01:00
const-fn-nested.rs
const-fn-not-in-trait.rs ast_validation: tweak diagnostic output 2020-02-13 10:40:17 +01:00
const-fn-not-in-trait.stderr ast_validation: tweak diagnostic output 2020-02-13 10:40:17 +01:00
const-fn-not-safe-for-const.rs
const-fn-not-safe-for-const.stderr Clarify suggestion for E0013 2020-01-10 13:31:36 +00:00
const-fn-stability-calls-3.rs
const-fn-stability-calls.rs
const-fn-type-name-any.rs
const-fn-type-name.rs Require const stability attributes on intrinsics to be able to use them in constant contexts 2019-12-20 23:15:50 +01:00
const-fn-val.rs
const-fn-zst-args.rs
const-fn.rs
const-index-feature-gate.rs
const-int-arithmetic-overflow.rs fix various typos 2020-03-06 15:19:31 +01:00
const-int-arithmetic.rs Migrate to numeric associated consts 2020-06-10 01:35:47 +00:00
const-int-conversion-rpass.rs Migrate to numeric associated consts 2020-06-10 01:35:47 +00:00
const-int-conversion.rs Migrate to numeric associated consts 2020-06-10 01:35:47 +00:00
const-int-conversion.stderr Migrate to numeric associated consts 2020-06-10 01:35:47 +00:00
const-int-overflowing-rpass.rs Migrate to numeric associated consts 2020-06-10 01:35:47 +00:00
const-int-overflowing.rs
const-int-overflowing.stderr
const-int-pow-rpass.rs Migrate to numeric associated consts 2020-06-10 01:35:47 +00:00
const-int-rotate-rpass.rs
const-int-rotate.rs
const-int-rotate.stderr
const-int-saturating-arith.rs Migrate to numeric associated consts 2020-06-10 01:35:47 +00:00
const-int-sign-rpass.rs
const-int-sign.rs
const-int-sign.stderr
const-int-unchecked.rs Migrate to numeric associated consts 2020-06-10 01:35:47 +00:00
const-int-unchecked.stderr Migrate to numeric associated consts 2020-06-10 01:35:47 +00:00
const-int-wrapping-rpass.rs Migrate to numeric associated consts 2020-06-10 01:35:47 +00:00
const-int-wrapping.rs
const-int-wrapping.stderr
const-integer-bool-ops.rs ty: convert ErrorHandled::Reported to ConstKind::Error. 2020-04-16 19:00:30 +03:00
const-integer-bool-ops.stderr ty: convert ErrorHandled::Reported to ConstKind::Error. 2020-04-16 19:00:30 +03:00
const-labeled-break.rs Update tests 2020-06-28 10:08:12 -07:00
const-len-underflow-separate-spans.rs
const-len-underflow-separate-spans.stderr Show the values and computation that would overflow a const evaluation or propagation 2020-06-26 10:08:52 +02:00
const-len-underflow-subspans.rs Show the values and computation that would overflow a const evaluation or propagation 2020-06-26 10:08:52 +02:00
const-len-underflow-subspans.stderr Show the values and computation that would overflow a const evaluation or propagation 2020-06-26 10:08:52 +02:00
const-match-check.eval1.stderr Show the values and computation that would overflow a const evaluation or propagation 2020-06-26 10:08:52 +02:00
const-match-check.eval2.stderr Show the values and computation that would overflow a const evaluation or propagation 2020-06-26 10:08:52 +02:00
const-match-check.matchck.stderr Show the values and computation that would overflow a const evaluation or propagation 2020-06-26 10:08:52 +02:00
const-match-check.rs
const-match-pattern-arm.rs Update tests 2020-06-28 10:08:10 -07:00
const-meth-pattern.rs
const-multi-ref.rs update diagnostics for &mut in constants 2020-06-19 11:48:46 -05:00
const-multi-ref.stderr add new error code 2020-06-19 14:16:38 -05:00
const-needs_drop.rs
const-negation.rs
const-negative.rs
const-nonzero.rs Test NonZeroU8::new in a const context 2020-02-08 16:06:42 -08:00
const-nullary-enum.rs
const-nullary-univariant-enum.rs
const-pattern-irrefutable.rs Show the values and computation that would overflow a const evaluation or propagation 2020-06-26 10:08:52 +02:00
const-pattern-irrefutable.stderr Show the values and computation that would overflow a const evaluation or propagation 2020-06-26 10:08:52 +02:00
const-pattern-not-const-evaluable.rs
const-pattern-variant.rs
const-points-to-static.rs warn about each skipped feature gate 2020-05-03 14:23:08 +02:00
const-points-to-static.stderr warn about each skipped feature gate 2020-05-03 14:23:08 +02:00
const-prop-ice2.rs fix tests, and use variants to test debug and release builds together 2020-02-15 10:47:27 +01:00
const-prop-ice2.stderr better lint names 2020-02-18 22:49:47 +01:00
const-prop-ice3.rs Check const-propagation of borrows of unsized places 2019-12-18 20:09:11 +00:00
const-prop-ice.rs fix tests, and use variants to test debug and release builds together 2020-02-15 10:47:27 +01:00
const-prop-ice.stderr better lint names 2020-02-18 22:49:47 +01:00
const-prop-overflowing-casts.rs Revert const_err lint checking of casts 2020-01-02 21:21:02 -05:00
const-prop-read-static-in-const.rs warn about each skipped feature gate 2020-05-03 14:23:08 +02:00
const-prop-read-static-in-const.stderr warn about each skipped feature gate 2020-05-03 14:23:08 +02:00
const-ptr-nonnull-rpass.rs
const-ptr-nonnull.rs
const-ptr-nonnull.stderr
const-ptr-unique-rpass.rs rename-unique: Rename Unique::empty() to Unique::dangling() 2020-04-30 11:00:45 +02:00
const-ptr-unique.rs
const-ptr-unique.stderr
const-rec-and-tup.rs
const-region-ptrs-noncopy.rs
const-region-ptrs.rs
const-repeated-values.rs
const-size_of-align_of.rs
const-size_of-cycle.rs tests: remove ignore directives from tests that mention core/alloc/std spans. 2020-04-02 11:48:34 +03:00
const-size_of-cycle.stderr avoid computing precise span for const_eval query 2020-06-13 13:47:37 +02:00
const-slice-oob.rs
const-slice-oob.stderr
const-str-ptr.rs
const-struct-offsets.rs
const-struct.rs
const-trait-to-trait.rs
const-tup-index-span.rs ty: convert ErrorHandled::Reported to ConstKind::Error. 2020-04-16 19:00:30 +03:00
const-tup-index-span.stderr ty: convert ErrorHandled::Reported to ConstKind::Error. 2020-04-16 19:00:30 +03:00
const-tuple-struct.rs
const-type-mismatch.rs
const-type-mismatch.stderr
const-typeid-of-rpass.rs
const-typeid-of.rs
const-typeid-of.stderr
const-unit-struct.rs
const-unsafe-fn.rs
const-unsized.rs
const-unsized.stderr
const-validation-fail-55455.rs
const-variant-count.rs Fix tests 2020-06-24 15:10:10 +01:00
const-vec-of-fns.rs
const-vec-syntax.rs
const-vecs-and-slices.rs
const.rs
consts-in-patterns.rs Don't ICE on the use of integer addresses for ZST constants in pattern matching 2019-12-26 22:46:22 +01:00
dangling_raw_ptr.rs avoid raising interpreter errors from interning 2020-05-10 11:47:20 +02:00
dangling_raw_ptr.stderr avoid raising interpreter errors from interning 2020-05-10 11:47:20 +02:00
dangling-alloc-id-ice.rs avoid raising interpreter errors from interning 2020-05-10 11:47:20 +02:00
dangling-alloc-id-ice.stderr avoid raising interpreter errors from interning 2020-05-10 11:47:20 +02:00
deref_in_pattern.rs
drop_none.rs
enum-discr-type-err.rs Update tests 2020-01-09 21:23:12 +03:00
enum-discr-type-err.stderr fix is_const_context 2020-05-20 14:57:16 +02:00
huge-values.rs Add tests 2020-01-15 10:30:26 +01:00
ice-48279.rs
ice-zst-static-access.rs Name test appropriately and link to the issues it regress-checks for 2020-05-01 17:45:10 +02:00
inline_asm.rs Check for llvm_asm in a const context 2020-04-19 17:50:56 -07:00
inline_asm.stderr Assign correct span to new illegal ops 2020-04-21 09:24:41 -07:00
int_ptr_for_zst_slices.rs
invalid_promotion.rs
is_ascii.rs Test u8::is_ascii alongside char::is_ascii 2020-02-08 21:36:56 -08:00
issue-37550.rs
issue-51559.rs
issue-51559.stderr
issue-52432.rs typeck: workaround WF hole in to_const. 2020-04-14 19:31:31 +03:00
issue-52432.stderr typeck: workaround WF hole in to_const. 2020-04-14 19:31:31 +03:00
issue-54224.rs
issue-54224.stderr
issue-56164.rs
issue-56164.stderr
issue-62045.rs
issue-63226.rs
issue-63952.rs Add test for issue-63952 2020-02-16 03:22:00 +09:00
issue-63952.stderr fix some cases of unexpected exceptions leaving validation 2020-03-08 22:04:54 +01:00
issue-64059.rs avoid excessive number of revisions 2020-02-19 11:25:41 +01:00
issue-64506.rs
issue-64662.rs
issue-64662.stderr Indicate origin of where type parameter for uninferred types 2019-12-14 11:10:21 +01:00
issue-65348.rs
issue-66342.rs
issue-66345.rs
issue-66397.rs
issue-66787.rs
issue-67529.rs Turn off const propagation of ref taking 2020-01-12 22:27:39 -05:00
issue-67640.rs Turn off const propagation of ref taking 2020-01-12 22:27:39 -05:00
issue-67641.rs Turn off const propagation of ref taking 2020-01-12 22:27:39 -05:00
issue-67696-const-prop-ice.rs Add additional regression test 2020-01-13 05:00:55 -05:00
issue-67862.rs Turn off const propagation of ref taking 2020-01-12 22:27:39 -05:00
issue-68264-overflow.rs Add @weiznich's regression test 2020-01-17 08:22:40 -05:00
issue-68542-closure-in-array-len.rs Don't call tcx.fn_sig on closures 2020-01-27 00:49:56 -05:00
issue-68542-closure-in-array-len.stderr Don't call tcx.fn_sig on closures 2020-01-27 00:49:56 -05:00
issue-68684.rs Check has_typeck_tables before calling typeck_tables_of 2020-02-14 21:49:57 +09:00
issue-69191-ice-on-uninhabited-enum-field.rs Added oli's multivariant test case (alpha renaming the enum name itself). 2020-03-06 06:46:37 -05:00
issue-69310-array-size-lit-wrong-ty.rs Remove leftover mentions of from_anon_const 2020-03-23 22:24:31 +01:00
issue-69310-array-size-lit-wrong-ty.stderr lit_to_const: gracefully bubble up type errors. 2020-02-20 23:43:16 +01:00
issue-69312.rs Add test for #69312 2020-02-20 21:25:19 -05:00
issue-70773-mir-typeck-lt-norm.rs normalize field projection ty to fix broken MIR issue 2020-04-23 18:14:01 -03:00
issue-70942-trait-vs-impl-mismatch.rs Detect mistyped associated consts in Instance::resolve. 2020-04-18 18:39:59 +03:00
issue-70942-trait-vs-impl-mismatch.stderr Detect mistyped associated consts in Instance::resolve. 2020-04-18 18:39:59 +03:00
issue-broken-mir.rs
locals-in-const-fn.rs
match_ice.rs Update tests 2020-01-09 21:23:12 +03:00
match_ice.stderr non-exhastive diagnostic: add note re. scrutinee type 2020-03-27 06:49:07 +01:00
match-const-fn-structs.rs
mozjs-error.rs
non-scalar-cast.rs
offset_from_ub.rs tests: remove ignore directives from tests that mention core/alloc/std spans. 2020-04-02 11:48:34 +03:00
offset_from_ub.stderr Bless failing tests 2020-06-30 21:03:34 +02:00
offset_from.rs
offset_ub.rs Add checks and tests for computing abs(offset_bytes) 2020-05-26 02:06:18 -07:00
offset_ub.stderr Bless failing tests 2020-06-30 21:03:34 +02:00
offset.rs test/ui/consts: Add tests for const ptr offsets 2020-05-25 13:09:02 -07:00
packed_pattern2.rs
packed_pattern2.stderr rustc: Add a warning count upon completion 2020-04-11 16:15:24 +02:00
packed_pattern.rs
packed_pattern.stderr rustc: Add a warning count upon completion 2020-04-11 16:15:24 +02:00
partial_qualif.rs
partial_qualif.stderr
projection_qualif.mut_refs.stderr add new error code 2020-06-19 14:16:38 -05:00
projection_qualif.rs update diagnostics for &mut in constants 2020-06-19 11:48:46 -05:00
projection_qualif.stock.stderr add new error code 2020-06-19 14:16:38 -05:00
promote_borrowed_field.rs
promote_const_let.rs
promote_const_let.stderr
promote_evaluation_unused_result.rs
promote_fn_calls_std.rs
promote_fn_calls.rs
promoted_div_by_zero.rs Skip tests on emscripten 2020-05-08 00:39:02 +09:00
promoted_regression.rs
promoted-validation-55454.rs
promotion.rs
qualif_overwrite_2.rs
qualif_overwrite_2.stderr
qualif_overwrite.rs
qualif_overwrite.stderr
raw_pointer_promoted.rs Promoteds can contain raw pointers, but these must still only point to immutable allocations 2020-01-15 10:48:22 +01:00
raw-ptr-const.rs Miri interning: replace ICEs by proper errors, make intern_shallow type signature more precise 2020-05-10 11:45:43 +02:00
raw-ptr-const.stderr Miri interning: replace ICEs by proper errors, make intern_shallow type signature more precise 2020-05-10 11:45:43 +02:00
read_from_static_mut_ref.rs update diagnostics for &mut in constants 2020-06-19 11:48:46 -05:00
read_from_static_mut_ref.stderr add new error code 2020-06-19 14:16:38 -05:00
recursive-zst-static.default.stderr fix const_prop spans and re-bless tests 2020-06-12 09:43:55 +02:00
recursive-zst-static.rs make recursive-zst test unleashed 2020-04-27 13:40:26 +02:00
recursive-zst-static.unleash.stderr fix const_prop spans and re-bless tests 2020-06-12 09:43:55 +02:00
references.rs
repeat_match.rs
return-in-const-fn.rs
self_normalization2.rs
self_normalization.rs
signed_enum_discr.rs
static_mut_containing_mut_ref2.mut_refs.stderr add new error code 2020-06-19 14:16:38 -05:00
static_mut_containing_mut_ref2.rs update diagnostics for &mut in constants 2020-06-19 11:48:46 -05:00
static_mut_containing_mut_ref2.stock.stderr add new error code 2020-06-19 14:16:38 -05:00
static_mut_containing_mut_ref3.rs
static_mut_containing_mut_ref3.stderr bless; add test for mutating a static 2020-03-24 08:27:46 +01:00
static_mut_containing_mut_ref.rs
static-cycle-error.rs
static-raw-pointer-interning2.rs
static-raw-pointer-interning.rs
too_generic_eval_ice.rs typeck: always expose repeat count AnonConsts' parent in generics_of. 2020-04-14 20:13:20 +03:00
too_generic_eval_ice.stderr typeck: always expose repeat count AnonConsts' parent in generics_of. 2020-04-14 20:13:20 +03:00
trait_specialization.rs warn against 'specialization' feature 2020-06-16 09:39:34 +02:00
trait_specialization.stderr warn against 'specialization' feature 2020-06-16 09:39:34 +02:00
transmute-const.rs
transmute-size-mismatch-before-typeck.rs Update tests 2020-01-09 21:23:12 +03:00
transmute-size-mismatch-before-typeck.stderr bikeshed 2020-04-16 18:47:05 +02:00
tuple-struct-constructors.rs
underscore_const_names.rs
uninhabited-const-issue-61744.rs fix const_prop spans and re-bless tests 2020-06-12 09:43:55 +02:00
uninhabited-const-issue-61744.stderr fix const_prop spans and re-bless tests 2020-06-12 09:43:55 +02:00
union_constant.rs
unstable-const-fn-in-libcore.rs Update tests 2020-06-28 10:08:10 -07:00
unstable-const-fn-in-libcore.stderr Update tests 2020-06-28 10:08:10 -07:00
validate_never_arrays.rs Add tests 2020-01-15 10:30:26 +01:00
validate_never_arrays.stderr miri value visitor: detect primitives by type, not layout 2020-03-06 22:41:49 +01:00
zst_no_llvm_alloc.rs Promote Refs to constants instead of static 2020-01-10 09:08:24 +01:00