1
Fork 0
rust/tests/ui/consts
bors 71b68da1bd Auto merge of #139578 - ferrocene:pa-compiletest-edition, r=jieyouxu
Fix breakage when running compiletest with `--test-args=--edition=2015`

Compiletest has an `--edition` flag to change the default edition tests are run with. Unfortunately no test suite successfully executes when that flag is passed. If the edition is set to something greater than 2015 the breakage is expected, since the test suite currently supports only edition 2015 (Ferrous Systems will open an MCP about fixing that soonish). Surprisingly, the test suite is also broken if `--edition=2015` is passed to compiletest. This PR focuses on fixing the latter.

This PR fixes the two categories of failures happening when `--edition=2015` is passed:

* Some edition-specific tests set their edition through `//@ compile-flags` instead of `//@ edition`. Compiletest doesn't parse the compile flags, so it would see no `//@ edition` and add another `--edition` flag, leading to a rustc error.
* Compiletest would add the edition after `//@ compile-flags`, while some tests depend on flags passed to `//@ compile-flags` being the last flags in the rustc invocation.

Note that for the first category, I opted to manually go and replace all `//@ compile-flags` setting an edition with an explicit `//@ edition`. We could've changed compiletest to instead check whether an edition was set in `//@ compile-flags`, but I thought it was better to enforce a consistent way to set the edition in tests.

I also added the edition to the stamp, so that changing `--edition` results in tests being re-executed.

r? `@jieyouxu`
2025-04-11 10:53:45 +00:00
..
auxiliary rustc_intrinsic: support functions without body; they are implicitly marked as must-be-overridden 2025-01-04 11:41:51 +01:00
const-blocks Do not suggest using -Zmacro-backtrace for builtin macros 2025-03-14 19:50:03 +00:00
const-eval UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
const-extern-fn UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
const-mut-refs Remove the -test suffix from normalize directives 2024-12-27 19:58:16 +11:00
const_constructor
const_in_pattern compiletest: Avoid ignoring empty diagnostics in one more place 2025-04-07 19:43:41 +03:00
control-flow Do not suggest using -Zmacro-backtrace for builtin macros 2025-03-14 19:50:03 +00:00
extra-const-ub UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
min_const_fn replace //@ compile-flags: --edition with //@ edition 2025-04-10 09:56:37 +02:00
miri_unleashed UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
required-consts Do not suggest using -Zmacro-backtrace for builtin macros 2025-03-14 19:50:03 +00:00
static-default-lifetime Improve AssocItem::descr. 2025-04-11 11:03:08 +10:00
std also stabilize const_refs_to_cell 2024-09-15 10:20:47 +02:00
array-literal-index-oob.rs
array-literal-index-oob.stderr
array-literal-len-mismatch.rs
array-literal-len-mismatch.stderr Simplify array length mismatch error reporting 2024-11-24 03:32:11 +00:00
array-to-slice-cast.rs
assert-type-intrinsics.rs
assert-type-intrinsics.stderr Shorten span of panic failures in const context 2025-02-28 16:28:41 +00:00
assoc-const-elided-lifetime.rs
assoc-const-elided-lifetime.stderr Use the correct binder scope for elided lifetimes in assoc consts 2025-03-26 12:44:33 +00:00
assoc-const.rs
assoc_const_generic_impl.rs
assoc_const_generic_impl.stderr
associated_const_generic.rs
async-block.rs UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
async-block.without_feature.stderr
bad-array-size-in-type-err.rs check the types in ty::Value to value conversion 2025-01-30 18:13:16 +01:00
bad-array-size-in-type-err.stderr check the types in ty::Value to value conversion 2025-01-30 18:13:16 +01:00
bswap-const.rs
cast-discriminant-zst-enum.rs
chained-constants-stackoverflow.rs
check_const-feature-gated.rs
closure-in-foreign-crate.rs Rename the FIXMEs, remove a few that dont matter anymore 2024-11-03 18:59:41 +00:00
closure-structural-match-issue-90013.rs Fix tests and bless 2024-04-24 13:12:33 +01:00
const-address-of-interior-mut.rs also stabilize const_refs_to_cell 2024-09-15 10:20:47 +02:00
const-address-of-mut.rs stabilize const_mut_refs 2024-09-15 09:51:32 +02:00
const-address-of.rs stabilize raw_ref_op 2024-08-18 19:46:53 +02:00
const-adt-align-mismatch.rs
const-array-oob-arith.rs UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
const-array-oob-arith.stderr Simplify array length mismatch error reporting 2024-11-24 03:32:11 +00:00
const-array-oob.rs
const-array-oob.stderr
const-as-fn.rs
const-as-fn.stderr
const-assert-unchecked-ub.rs Stabilize hint_assert_unchecked 2024-06-19 19:31:41 -04:00
const-assert-unchecked-ub.stderr Stabilize hint_assert_unchecked 2024-06-19 19:31:41 -04:00
const-autoderef.rs
const-big-enum.rs
const-binops.rs
const-bitshift-rhs-inference.rs
const-block-const-bound.rs remove some known-bug that do not seem to make sense 2025-01-15 09:21:51 +01:00
const-block-const-bound.stderr Use the span of the whole bound when the diagnostic talks about a bound 2025-04-04 13:39:50 +00:00
const-block-cross-crate-fn.rs
const-block-item-macro-codegen.rs
const-block-item.rs
const-block-item.stderr
const-block-non-item-statement-3.rs
const-block-non-item-statement-rpass.rs
const-block-non-item-statement.rs
const-block.rs
const-bound.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
const-byte-str-cast.rs
const-call.rs Note def descr in NonConstFunctionCall 2024-12-23 22:15:32 +00:00
const-call.stderr Note def descr in NonConstFunctionCall 2024-12-23 22:15:32 +00:00
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-compare-bytes-ub.rs most const intrinsics don't need an explicit rustc_const_unstable any more 2024-11-04 23:27:46 +01:00
const-compare-bytes-ub.stderr most const intrinsics don't need an explicit rustc_const_unstable any more 2024-11-04 23:27:46 +01:00
const-compare-bytes.rs most const intrinsics don't need an explicit rustc_const_unstable any more 2024-11-04 23:27:46 +01:00
const-const.rs
const-contents.rs
const-deref-ptr.rs UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
const-deref-ptr.stderr improve dangling/oob errors and make them more uniform 2024-07-27 21:12:54 +02: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-struct.rs
const-enum-struct2.rs
const-enum-structlike.rs
const-enum-tuple.rs
const-enum-tuple2.rs
const-enum-tuplestruct.rs
const-enum-tuplestruct2.rs
const-enum-vec-index.rs
const-enum-vec-ptr.rs
const-enum-vector.rs
const-err-early.rs
const-err-early.stderr
const-err-enum-discriminant.rs UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
const-err-enum-discriminant.stderr
const-err-late.rs
const-err-late.stderr
const-err-multi.rs
const-err-multi.stderr
const-err-rpass.rs
const-eval-fail-too-big.rs Add ui test for const evaluation fail when type is too big. 2024-12-02 20:55:45 -07:00
const-eval-fail-too-big.stderr Add ui test for const evaluation fail when type is too big. 2024-12-02 20:55:45 -07:00
const-expr-addr-operator.rs
const-expr-in-fixed-length-vec.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
const-expr-in-vec-repeat.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
const-extern-function.rs Allow fn pointers comparisons lint in UI tests 2024-12-02 18:43:37 +01:00
const-external-macro-const-err.rs
const-external-macro-const-err.stderr
const-fields-and-indexing.rs
const-fn-const-eval.rs
const-fn-cycle.rs Do not try to reveal hidden types when trying to prove Freeze in the defining scope 2024-07-24 16:00:48 +00:00
const-fn-destructuring-arg.rs
const-fn-error.rs Get rid of HIR const checker 2024-11-22 02:32:26 +00:00
const-fn-error.stderr Get rid of HIR const checker 2024-11-22 02:32:26 +00:00
const-fn-in-vec.rs Bless 2025-02-27 20:02:25 +00:00
const-fn-in-vec.stderr Bless 2025-02-27 20:02:25 +00:00
const-fn-method.rs
const-fn-mismatch.rs
const-fn-mismatch.stderr
const-fn-nested.rs
const-fn-not-in-trait.rs
const-fn-not-in-trait.stderr
const-fn-not-safe-for-const.rs Stabilize const_refs_to_static 2024-09-26 13:21:15 +02:00
const-fn-not-safe-for-const.stderr Note def descr in NonConstFunctionCall 2024-12-23 22:15:32 +00:00
const-fn-ptr.rs
const-fn-ptr.stderr
const-fn-stability-calls-3.rs
const-fn-stability-calls.rs
const-fn-type-name-any.rs
const-fn-type-name.rs
const-fn-val.rs
const-fn-zst-args.rs
const-fn.rs
const-for-feature-gate.rs Get rid of HIR const checker 2024-11-22 02:32:26 +00:00
const-for-feature-gate.stderr Get rid of HIR const checker 2024-11-22 02:32:26 +00:00
const-for.rs Get rid of HIR const checker 2024-11-22 02:32:26 +00:00
const-for.stderr Get rid of HIR const checker 2024-11-22 02:32:26 +00:00
const-index-feature-gate.rs
const-int-arithmetic-overflow.rs
const-int-arithmetic.rs
const-int-conversion-rpass.rs
const-int-conversion.rs
const-int-conversion.stderr
const-int-overflowing-rpass.rs
const-int-overflowing.rs
const-int-overflowing.stderr
const-int-pow-rpass.rs
const-int-rotate-rpass.rs
const-int-rotate.rs
const-int-rotate.stderr
const-int-saturating-arith.rs
const-int-sign-rpass.rs
const-int-sign.rs
const-int-sign.stderr
const-int-unchecked.rs De-LLVM the unchecked shifts [MCP#693] 2024-03-30 03:32:11 -07:00
const-int-unchecked.stderr interpret: make overflowing binops just normal binops 2024-05-21 14:50:09 +02:00
const-int-wrapping-rpass.rs
const-int-wrapping.rs
const-int-wrapping.stderr
const-integer-bool-ops.rs UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
const-integer-bool-ops.stderr fix ICE on type error in promoted 2024-12-09 15:17:26 +01:00
const-labeled-break.rs
const-len-underflow-separate-spans.next.stderr
const-len-underflow-separate-spans.old.stderr
const-len-underflow-separate-spans.rs
const-len-underflow-subspans.rs UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
const-len-underflow-subspans.stderr
const-match-check.eval1.stderr Update tests for new TRPL chapter order 2024-11-23 08:57:25 -07:00
const-match-check.eval2.stderr Update tests for new TRPL chapter order 2024-11-23 08:57:25 -07:00
const-match-check.matchck.stderr Update tests for new TRPL chapter order 2024-11-23 08:57:25 -07:00
const-match-check.rs
const-match-pattern-arm.rs
const-meth-pattern.rs
const-mut-refs-crate.rs stabilize const_mut_refs 2024-09-15 09:51:32 +02:00
const-needs_drop-monomorphic.rs
const-needs_drop-monomorphic.stderr fallout :skull_emoji: 2025-02-14 00:37:23 +01:00
const-needs_drop.rs
const-negation.rs
const-negative.rs
const-nullary-enum.rs
const-nullary-univariant-enum.rs
const-pattern-irrefutable.rs Unify expanded constants and named constants in PatKind 2024-11-17 23:40:00 +00:00
const-pattern-irrefutable.stderr Trim suggestion parts to the subset that is purely additive 2025-02-14 00:44:10 -08:00
const-pattern-not-const-evaluable.rs
const-pattern-variant.rs
const-promoted-opaque.atomic.stderr Implement #[define_opaque] attribute for functions. 2025-03-11 12:05:02 +00:00
const-promoted-opaque.rs Implement #[define_opaque] attribute for functions. 2025-03-11 12:05:02 +00:00
const-promoted-opaque.string.stderr Implement #[define_opaque] attribute for functions. 2025-03-11 12:05:02 +00:00
const-promoted-opaque.unit.stderr Implement #[define_opaque] attribute for functions. 2025-03-11 12:05:02 +00:00
const-ptr-is-null.rs Shorten span of panic failures in const context 2025-02-28 16:28:41 +00:00
const-ptr-is-null.stderr Do not suggest using -Zmacro-backtrace for builtin macros 2025-03-14 19:50:03 +00:00
const-ptr-nonnull-rpass.rs
const-ptr-nonnull.rs
const-ptr-nonnull.stderr
const-ptr-unique-rpass.rs
const-ptr-unique.rs
const-ptr-unique.stderr
const-rec-and-tup.rs
const-ref-to-static-linux-vtable.rs Stabilize const_refs_to_static 2024-09-26 13:21:15 +02:00
const-region-ptrs-noncopy.rs
const-region-ptrs.rs
const-repeated-values.rs
const-size_of-align_of.rs
const-size_of-cycle.rs compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
const-size_of-cycle.stderr compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
const-size_of_val-align_of_val-extern-type.rs stabilize const_{size,align}_of_val 2024-12-02 20:18:25 +01:00
const-size_of_val-align_of_val-extern-type.stderr stabilize const_{size,align}_of_val 2024-12-02 20:18:25 +01:00
const-size_of_val-align_of_val.rs stabilize const_{size,align}_of_val 2024-12-02 20:18:25 +01:00
const-slice-array-deref.rs Check Sizedness of return type in WF 2025-02-03 19:00:22 +00:00
const-slice-array-deref.stderr Tweak error code for sized checks of const/static 2025-03-03 23:09:42 +00:00
const-slice-oob.rs UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
const-slice-oob.stderr
const-struct-offsets.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
const-struct.rs
const-suggest-feature.rs replace //@ compile-flags: --edition with //@ edition 2025-04-10 09:56:37 +02:00
const-suggest-feature.stderr also stabilize const_refs_to_cell 2024-09-15 10:20:47 +02:00
const-trait-to-trait.rs
const-try-feature-gate.rs Get rid of HIR const checker 2024-11-22 02:32:26 +00:00
const-try-feature-gate.stderr Get rid of HIR const checker 2024-11-22 02:32:26 +00:00
const-try.rs Get rid of HIR const checker 2024-11-22 02:32:26 +00:00
const-try.stderr Tweak wording of non-const traits used as const bounds 2024-12-10 00:38:05 +00:00
const-tup-index-span.rs
const-tup-index-span.stderr fix ICE on type error in promoted 2024-12-09 15:17:26 +01:00
const-tuple-struct.rs
const-type-mismatch.rs
const-type-mismatch.stderr
const-typeid-of-rpass.rs
const-unit-struct.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
const-unsafe-fn.rs
const-unsized.rs Check Sizedness of return type in WF 2025-02-03 19:00:22 +00:00
const-unsized.stderr merge TypeChecker and TypeVerifier 2025-03-11 16:34:15 +01:00
const-unstable-intrinsic.rs rustc_intrinsic: support functions without body; they are implicitly marked as must-be-overridden 2025-01-04 11:41:51 +01:00
const-unstable-intrinsic.stderr Structured suggestion for "missing feature intrinsic" 2025-01-18 21:15:37 +00:00
const-unwrap.rs Shorten span of panic failures in const context 2025-02-28 16:28:41 +00:00
const-unwrap.stderr Shorten span of panic failures in const context 2025-02-28 16:28:41 +00:00
const-validation-fail-55455.rs
const-variant-count.rs
const-vec-of-fns.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
const-vec-syntax.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
const-vecs-and-slices.rs
const.rs
const_cmp_type_id.rs Rename the FIXMEs, remove a few that dont matter anymore 2024-11-03 18:59:41 +00:00
const_cmp_type_id.stderr Do not suggest using -Zmacro-backtrace for builtin macros 2025-03-14 19:50:03 +00:00
const_discriminant.rs
const_fn_return_nested_fn_ptr.rs
const_fn_unsize.rs Stabilize (const_)slice_ptr_len and (const_)slice_ptr_is_empty_nonnull 2024-04-12 21:23:20 +02:00
const_forget.rs
const_let_assign.rs
const_let_assign2.rs
const_let_assign2.stderr More sophisticated span trimming 2025-02-21 00:41:17 +00:00
const_let_assign3.rs stabilize const_mut_refs 2024-09-15 09:51:32 +02:00
const_let_eq.rs
const_let_eq_float.rs stabilize const_fn_floating_point_arithmetic 2024-08-22 08:25:54 +02:00
const_let_irrefutable.rs
const_let_promote.rs
const_let_refutable.rs
const_let_refutable.stderr
const_prop_slice_pat_ice.rs
const_refs_to_static-ice-121413.rs Check Sizedness of return type in WF 2025-02-03 19:00:22 +00:00
const_refs_to_static-ice-121413.stderr Tweak error code for sized checks of const/static 2025-03-03 23:09:42 +00:00
const_refs_to_static.rs Stabilize const_refs_to_static 2024-09-26 13:21:15 +02:00
const_refs_to_static_fail.rs Remove the -test suffix from normalize directives 2024-12-27 19:58:16 +11:00
const_refs_to_static_fail.stderr Stabilize const_refs_to_static 2024-09-26 13:21:15 +02:00
const_refs_to_static_fail_invalid.rs Remove the -test suffix from normalize directives 2024-12-27 19:58:16 +11:00
const_refs_to_static_fail_invalid.stderr Tweak unevaluated constant in pattern error 2024-12-04 20:29:35 +00:00
const_short_circuit.rs
const_unsafe_unreachable.rs
const_unsafe_unreachable_ub.rs Shorten span of panic failures in const context 2025-02-28 16:28:41 +00:00
const_unsafe_unreachable_ub.stderr Shorten span of panic failures in const context 2025-02-28 16:28:41 +00:00
constifconst-call-in-const-position.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
constifconst-call-in-const-position.stderr Adjust HostEffect error spans correctly to point at args 2024-12-01 05:11:42 +00:00
consts-in-patterns.rs
copy-intrinsic.rs UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
copy-intrinsic.stderr remove support for extern-block const intrinsics 2024-11-04 23:27:45 +01:00
ct-var-in-collect_all_mismatches.rs
ct-var-in-collect_all_mismatches.stderr Use trait name instead of full constraint in suggestion message 2024-12-07 21:29:58 +00:00
cycle-static-promoted.rs
dangling-alloc-id-ice.rs Remove the -test suffix from normalize directives 2024-12-27 19:58:16 +11:00
dangling-alloc-id-ice.stderr const validation: fix ICE on dangling ZST reference 2024-06-14 07:52:51 +02:00
dangling-zst-ice-issue-126393.rs Remove the -test suffix from normalize directives 2024-12-27 19:58:16 +11:00
dangling-zst-ice-issue-126393.stderr const validation: fix ICE on dangling ZST reference 2024-06-14 07:52:51 +02:00
dangling_raw_ptr.rs Validate before reporting interning errors. 2024-04-17 09:50:44 +00:00
dangling_raw_ptr.stderr Validate before reporting interning errors. 2024-04-17 09:50:44 +00:00
deref_in_pattern.rs
different-fn-ptr-binders-during-ctfe.rs
different-fn-ptr-binders-during-ctfe.stderr
do-not-ice-on-field-access-of-err-type.rs Do not ICE on field access check on expr with ty::Error 2024-04-06 16:34:57 +00:00
do-not-ice-on-field-access-of-err-type.stderr Do not ICE on field access check on expr with ty::Error 2024-04-06 16:34:57 +00:00
dont-ctfe-unsized-initializer.rs Check signature WF when lowering MIR body 2025-03-03 23:09:42 +00:00
dont-ctfe-unsized-initializer.stderr Check signature WF when lowering MIR body 2025-03-03 23:09:42 +00:00
drop-maybe_uninit.rs
drop_box.rs
drop_box.stderr
drop_none.rs
drop_zst.rs UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
drop_zst.stderr Gate const drop behind const_destruct feature, and fix const_precise_live_drops post-drop-elaboration check 2024-11-22 16:54:40 +00:00
effect_param.rs
effect_param.stderr Revert suggestion verbosity change 2024-07-22 22:51:53 +00:00
enclosing-scope-rule.rs
enum-discr-type-err.rs
enum-discr-type-err.stderr
erroneous_type_in_const_return_value.rs Allow const eval failures if the cause is a type layout issue 2024-05-23 10:51:52 +00:00
erroneous_type_in_const_return_value.stderr Allow const eval failures if the cause is a type layout issue 2024-05-23 10:51:52 +00:00
erroneous_type_in_promoted.rs Add regression tests 2024-05-23 10:48:39 +00:00
erroneous_type_in_promoted.stderr Allow const eval failures if the cause is a type layout issue 2024-05-23 10:51:52 +00:00
error-is-freeze.rs Make ty::Error implement auto traits 2024-12-26 19:21:43 +00:00
error-is-freeze.stderr Make ty::Error implement auto traits 2024-12-26 19:21:43 +00:00
escaping-bound-var.rs
escaping-bound-var.stderr
eval-enum.rs UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
eval-enum.stderr
fn_trait_refs.rs Check drop is trivial before checking ty needs drop 2024-11-22 17:01:02 +00:00
fn_trait_refs.stderr Implement const Destruct in old solver 2025-01-08 18:14:58 +00:00
gate-do-not-const-check.rs
gate-do-not-const-check.stderr
huge-values.rs
ice-48279.rs
ice-bad-input-type-for-cast-83056.rs
ice-bad-input-type-for-cast-83056.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
ice-zst-static-access.rs
inline_asm.rs
inline_asm.stderr
int_ptr_for_zst_slices.rs
interior-mut-const-via-union.32bit.stderr stabilize const_mut_refs 2024-09-15 09:51:32 +02:00
interior-mut-const-via-union.64bit.stderr stabilize const_mut_refs 2024-09-15 09:51:32 +02:00
interior-mut-const-via-union.rs stabilize const_mut_refs 2024-09-15 09:51:32 +02:00
invalid-const-in-body.rs
invalid-const-in-body.stderr
invalid_promotion.rs
is_val_statically_known.rs mark is_val_statically_known intrinsic as stably const-callable 2024-11-08 08:46:49 +01:00
issue-3521.fixed
issue-3521.rs
issue-3521.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
issue-6991.rs
issue-13837.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
issue-13902.rs
issue-16538.rs
issue-16538.stderr Note def descr in NonConstFunctionCall 2024-12-23 22:15:32 +00:00
issue-17074.rs
issue-17458.rs
issue-17458.stderr
issue-17718-borrow-interior.rs
issue-17718-const-bad-values.rs Remove the -test suffix from normalize directives 2024-12-27 19:58:16 +11:00
issue-17718-const-bad-values.stderr Simplify or delete normalize directives that don't care about bit-width 2024-12-27 12:42:07 +11:00
issue-17718-const-borrow.rs
issue-17718-const-borrow.stderr
issue-17718-constants-not-static.rs
issue-17718-constants-not-static.stderr
issue-17718-references.rs Stabilize const_refs_to_static 2024-09-26 13:21:15 +02:00
issue-17718.rs
issue-17756.rs
issue-18294.rs
issue-18294.stderr
issue-19244-1.rs Move some tests 2024-04-21 15:43:43 -03:00
issue-19244-1.stderr Move some tests 2024-04-21 15:43:43 -03:00
issue-19244-2.rs UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
issue-19244-2.stderr Move some tests 2024-04-21 15:43:43 -03:00
issue-19244.rs
issue-21562.rs
issue-21721.rs
issue-23833.rs
issue-23968-const-not-overflow.rs
issue-25826.rs
issue-25826.stderr
issue-27890.rs
issue-28113.rs
issue-28113.stderr Deny calls to non-#[const_trait] methods in MIR constck 2024-10-26 11:35:56 +08:00
issue-28822.rs
issue-29798.rs tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx} 2025-01-23 20:51:29 +08:00
issue-29914-2.rs
issue-29914-3.rs
issue-29914.rs
issue-29927-1.rs
issue-29927.rs
issue-32829-2.rs Note def descr in NonConstFunctionCall 2024-12-23 22:15:32 +00:00
issue-32829-2.stderr Note def descr in NonConstFunctionCall 2024-12-23 22:15:32 +00:00
issue-32829.rs
issue-32829.stderr Do not suggest using -Zmacro-backtrace for builtin macros 2025-03-14 19:50:03 +00:00
issue-33537.rs
issue-33903.rs
issue-36163.rs
issue-36163.stderr always create DefIds when lowering anon-consts 2024-11-28 12:22:02 +00:00
issue-37222.rs
issue-37550-1.rs
issue-37550.rs
issue-37991.rs
issue-39161-bogus-error.rs
issue-39974.rs
issue-39974.stderr Don't typeck during WF, instead check outside of WF in check_crate 2025-03-03 23:09:42 +00:00
issue-43105.rs Note def descr in NonConstFunctionCall 2024-12-23 22:15:32 +00:00
issue-43105.stderr Note def descr in NonConstFunctionCall 2024-12-23 22:15:32 +00:00
issue-44255.rs
issue-44415.rs
issue-44415.stderr
issue-46553.rs
issue-47789.rs
issue-50439.rs
issue-50439.stderr
issue-52023-array-size-pointer-cast.rs
issue-52023-array-size-pointer-cast.stderr
issue-54224.rs
issue-54224.stderr
issue-54348.rs
issue-54348.stderr
issue-54387.rs
issue-54582.rs
issue-54954.rs
issue-54954.stderr fix ICE on type error in promoted 2024-12-09 15:17:26 +01:00
issue-56164.rs
issue-56164.stderr Deny calls to non-#[const_trait] methods in MIR constck 2024-10-26 11:35:56 +08:00
issue-58435-ice-with-assoc-const.rs
issue-62045.rs
issue-63226.rs
issue-63952.32bit.stderr
issue-63952.64bit.stderr
issue-63952.rs
issue-64059.rs
issue-64506.rs
issue-64506.stderr
issue-64662.rs
issue-64662.stderr
issue-65348.rs Reapply "Auto merge of #133734 - scottmcm:lower-indexing-to-ptrmetadata, r=davidtwco,RalfJung" 2025-01-27 23:42:47 +00:00
issue-66342.rs
issue-66345.rs
issue-66397.rs
issue-66693-panic-in-array-len.rs
issue-66693-panic-in-array-len.stderr Do not suggest using -Zmacro-backtrace for builtin macros 2025-03-14 19:50:03 +00:00
issue-66693.rs
issue-66693.stderr Do not suggest using -Zmacro-backtrace for builtin macros 2025-03-14 19:50:03 +00:00
issue-66787.rs
issue-67529.rs
issue-67640.rs
issue-67641.rs
issue-67696-const-prop-ice.rs
issue-67862.rs
issue-68264-overflow.rs
issue-68542-closure-in-array-len.rs
issue-68542-closure-in-array-len.stderr Deny calls to non-#[const_trait] methods in MIR constck 2024-10-26 11:35:56 +08:00
issue-68684.rs
issue-69191-ice-on-uninhabited-enum-field.rs
issue-69310-array-size-lit-wrong-ty.rs
issue-69310-array-size-lit-wrong-ty.stderr
issue-69312.rs
issue-69532.rs
issue-70773-mir-typeck-lt-norm.rs
issue-70942-trait-vs-impl-mismatch.rs
issue-70942-trait-vs-impl-mismatch.stderr
issue-73976-monomorphic.rs
issue-73976-monomorphic.stderr Deny calls to non-#[const_trait] methods in MIR constck 2024-10-26 11:35:56 +08:00
issue-73976-polymorphic.rs review comments: reword messages and simplify logic 2024-12-04 20:49:05 +00:00
issue-73976-polymorphic.stderr review comments: reword messages and simplify logic 2024-12-04 20:49:05 +00:00
issue-76064.rs
issue-76064.stderr Do not suggest using -Zmacro-backtrace for builtin macros 2025-03-14 19:50:03 +00:00
issue-78655.rs Tweak unevaluated constant in pattern error 2024-12-04 20:29:35 +00:00
issue-78655.stderr Tweak unevaluated constant in pattern error 2024-12-04 20:29:35 +00:00
issue-79137-monomorphic.rs
issue-79137-toogeneric.rs review comments: reword messages and simplify logic 2024-12-04 20:49:05 +00:00
issue-79137-toogeneric.stderr review comments: reword messages and simplify logic 2024-12-04 20:49:05 +00:00
issue-79152-const-array-index.rs
issue-79690.64bit.stderr
issue-79690.rs
issue-87046.rs
issue-87046.stderr On const pattern errors, point at the const item definition 2024-12-04 20:29:35 +00:00
issue-88071.rs
issue-88649.rs
issue-89088.rs Add additional context for non-sructural type constant used in pattern 2024-12-04 20:29:36 +00:00
issue-89088.stderr Add additional context for non-sructural type constant used in pattern 2024-12-04 20:29:36 +00:00
issue-90762.rs
issue-90870.rs Deny calls to non-#[const_trait] methods in MIR constck 2024-10-26 11:35:56 +08:00
issue-90870.stderr Deny calls to non-#[const_trait] methods in MIR constck 2024-10-26 11:35:56 +08:00
issue-90878-2.rs
issue-90878-2.stderr
issue-90878-3.rs
issue-90878-3.stderr
issue-90878.rs
issue-90878.stderr
issue-91434.rs
issue-91434.stderr
issue-91560.fixed
issue-91560.rs
issue-91560.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
issue-94371.rs stabilize const_swap 2024-12-25 10:36:32 +01:00
issue-94675.rs Stabilize const_vec_string_slice 2025-03-08 17:03:52 +01:00
issue-94675.stderr remove some known-bug that do not seem to make sense 2025-01-15 09:21:51 +01:00
issue-96169.rs
issue-102117.rs Fix tests and bless 2024-04-24 13:12:33 +01:00
issue-102117.stderr
issue-103790.rs fix(hir_analysis/wfcheck): don't leak {type error} 2024-09-29 23:40:43 -05:00
issue-103790.stderr fix(hir_analysis/wfcheck): don't leak {type error} 2024-09-29 23:40:43 -05:00
issue-104155.rs
issue-104396.rs
issue-104396.stderr
issue-104609.rs
issue-104609.stderr
issue-104768.rs Remove diagnostic_only_typeck and fix placeholder suggestion for const/static 2025-01-02 23:39:16 +00:00
issue-104768.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
issue-105536-const-val-roundtrip-ptr-eq.rs
issue-116186.rs Don't emit spurious error for pattern matched array with erroneous len const 2024-09-20 20:26:20 -04:00
issue-116186.stderr Don't emit spurious error for pattern matched array with erroneous len const 2024-09-20 20:26:20 -04:00
issue-broken-mir.rs
issue-miri-1910.rs Shorten span of panic failures in const context 2025-02-28 16:28:41 +00:00
issue-miri-1910.stderr Shorten span of panic failures in const context 2025-02-28 16:28:41 +00:00
large-zst-array-77062.rs Test for issue 23600 2024-10-07 16:29:52 +00:00
large_const_alloc.rs Fix test hangs on AIX 2025-03-04 10:06:28 -05:00
large_const_alloc.stderr Fix test hangs on AIX 2025-03-04 10:06:28 -05:00
let-irrefutable-pattern-ice-120337.rs
load-preserves-partial-init.rs library: Stabilize const_ptr_write 2024-10-12 00:02:36 -07:00
locals-in-const-fn.rs
match-const-fn-structs.rs
match_ice.rs Add additional context for non-sructural type constant used in pattern 2024-12-04 20:29:36 +00:00
match_ice.stderr Add additional context for non-sructural type constant used in pattern 2024-12-04 20:29:36 +00:00
mir_check_nonconst.rs Note def descr in NonConstFunctionCall 2024-12-23 22:15:32 +00:00
mir_check_nonconst.stderr Note def descr in NonConstFunctionCall 2024-12-23 22:15:32 +00:00
missing-larger-array-impl.rs
missing-larger-array-impl.stderr Use TraitRef::to_string sorting in favor of TraitRef::ord, as the latter compares DefIds which we need to avoid 2024-03-27 14:02:15 +00:00
missing_assoc_const_type.rs Tweak unevaluated constant in pattern error 2024-12-04 20:29:35 +00:00
missing_assoc_const_type.stderr Tweak unevaluated constant in pattern error 2024-12-04 20:29:35 +00:00
missing_assoc_const_type2.rs
missing_assoc_const_type2.stderr fix ICE on type error in promoted 2024-12-09 15:17:26 +01:00
missing_span_in_backtrace.rs Shorten span of panic failures in const context 2025-02-28 16:28:41 +00:00
missing_span_in_backtrace.stderr Ensure swap_nonoverlapping is really always untyped 2025-04-09 09:09:37 -07:00
mono-reachable-invalid-const.rs Do not ICE on invalid consts when walking mono-reachable blocks 2024-04-26 23:06:21 -04:00
mono-reachable-invalid-const.stderr Do not ICE on invalid consts when walking mono-reachable blocks 2024-04-26 23:06:21 -04:00
mozjs-error.rs
mut-ptr-to-static.rs stabilize const_mut_refs 2024-09-15 09:51:32 +02:00
nested_erroneous_ctfe.rs
nested_erroneous_ctfe.stderr
no-ice-from-static-in-const-issue-52060.rs UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
no-ice-from-static-in-const-issue-52060.stderr Stabilize const_refs_to_static 2024-09-26 13:21:15 +02:00
non-const-value-in-const.rs
non-const-value-in-const.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
non-scalar-cast.rs
non-sync-references-in-const.rs
offset.rs
offset_from.rs rename sub_ptr 😅 2025-02-23 23:11:00 +07:00
offset_from_ub.rs Shorten span of panic failures in const context 2025-02-28 16:28:41 +00:00
offset_from_ub.stderr Shorten span of panic failures in const context 2025-02-28 16:28:41 +00:00
offset_ub.rs Shorten span of panic failures in const context 2025-02-28 16:28:41 +00:00
offset_ub.stderr Shorten span of panic failures in const context 2025-02-28 16:28:41 +00:00
overflowing-consts.noopt.stderr
overflowing-consts.opt.stderr
overflowing-consts.opt_with_overflow_checks.stderr
overflowing-consts.rs Remove the -test suffix from normalize directives 2024-12-27 19:58:16 +11:00
packed_pattern.rs
packed_pattern.stderr Reword the "unreachable pattern" explanations 2024-08-19 21:39:57 +02:00
packed_pattern2.rs
packed_pattern2.stderr Reword the "unreachable pattern" explanations 2024-08-19 21:39:57 +02:00
partial_qualif.rs
partial_qualif.stderr
precise-drop-allow-const-fn-unstable.not_allow.stderr make it possible to enable const_precise_live_drops per-function 2024-08-25 13:49:16 +02:00
precise-drop-allow-const-fn-unstable.rs make it possible to enable const_precise_live_drops per-function 2024-08-25 13:49:16 +02:00
precise-drop-with-coverage.rs
precise-drop-with-promoted.rs
promote-not.rs Add missing backtick 2024-11-01 16:53:36 +08:00
promote-not.stderr promotion: do not promote const-fn calls in const when that may fail without the entire const failing 2024-04-23 22:52:43 +02:00
promote_borrowed_field.rs
promote_const_let.rs
promote_const_let.stderr
promote_evaluation_unused_result.rs
promote_fn_calls.rs
promote_fn_calls_std.rs
promoted-const-drop.rs Enforce syntactical stability of const traits in HIR 2025-01-14 19:12:08 +00:00
promoted-const-drop.stderr Constify Drop and Destruct 2024-11-25 17:27:41 +00:00
promoted-storage.rs
promoted-type-error-issue-133968.rs fix ICE on type error in promoted 2024-12-09 15:17:26 +01:00
promoted-type-error-issue-133968.stderr fix ICE on type error in promoted 2024-12-09 15:17:26 +01:00
promoted-validation-55454.rs
promoted_const_call.rs Enforce syntactical stability of const traits in HIR 2025-01-14 19:12:08 +00:00
promoted_const_call.stderr Enforce syntactical stability of const traits in HIR 2025-01-14 19:12:08 +00:00
promoted_const_call2.rs
promoted_const_call2.stderr Gate const drop behind const_destruct feature, and fix const_precise_live_drops post-drop-elaboration check 2024-11-22 16:54:40 +00:00
promoted_const_call3.rs
promoted_const_call3.stderr
promoted_const_call4.rs
promoted_const_call5.rs
promoted_const_call5.stderr
promoted_regression.rs
promoted_running_out_of_memory_issue-130687.rs UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
promoted_running_out_of_memory_issue-130687.stderr Fix test hangs on AIX 2025-03-04 10:06:28 -05:00
promoted_size_overflow.rs UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
promoted_size_overflow.stderr fix ICE when promoted has layout size overflow 2024-12-01 19:52:27 +01:00
promotion-mutable-ref.rs stabilize const_mut_refs 2024-09-15 09:51:32 +02:00
promotion.rs promotion: do not promote const-fn calls in const when that may fail without the entire const failing 2024-04-23 22:52:43 +02:00
ptr_comparisons.rs
ptr_is_null.rs stabilize const_ptr_is_null 2024-11-16 22:50:22 +01:00
qualif-indirect-mutation-fail.rs Shorten span of panic failures in const context 2025-02-28 16:28:41 +00:00
qualif-indirect-mutation-fail.stderr Shorten span of panic failures in const context 2025-02-28 16:28:41 +00:00
qualif-indirect-mutation-pass.rs stabilize const_mut_refs 2024-09-15 09:51:32 +02:00
qualif-union.rs
qualif-union.stderr
qualif_overwrite.rs
qualif_overwrite.stderr
qualif_overwrite_2.rs
qualif_overwrite_2.stderr
raw-ptr-const.rs
raw-ptr-temp-const.rs
raw-ptr-temp-const.stderr
raw_pointer_promoted.rs
recursive-block.rs add test from #125718 2025-01-06 17:54:59 +01:00
recursive-block.stderr add test from #125718 2025-01-06 17:54:59 +01:00
recursive-const-in-impl.rs add test from #114192 2025-01-08 20:04:24 +01:00
recursive-const-in-impl.stderr add test from #114192 2025-01-08 20:04:24 +01:00
recursive-zst-static.default.stderr
recursive-zst-static.rs UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
recursive-zst-static.unleash.stderr
recursive.rs Shorten span of panic failures in const context 2025-02-28 16:28:41 +00:00
recursive.stderr Shorten span of panic failures in const context 2025-02-28 16:28:41 +00:00
references.rs
refs-to-cell-in-final.rs also stabilize const_refs_to_cell 2024-09-15 10:20:47 +02:00
refs-to-cell-in-final.stderr also stabilize const_refs_to_cell 2024-09-15 10:20:47 +02:00
refs_check_const_eq-issue-88384.rs Split part of adt_const_params into unsized_const_params 2024-07-17 11:01:29 +01:00
refs_check_const_eq-issue-88384.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
refs_check_const_value_eq-issue-88876.rs Split part of adt_const_params into unsized_const_params 2024-07-17 11:01:29 +01:00
repeat_match.rs
return-in-const-fn.rs
rustc-const-stability-require-const.rs ensure that all publicly reachable const fn have const stability info 2024-11-10 10:16:26 +01:00
rustc-const-stability-require-const.stderr ensure that all publicly reachable const fn have const stability info 2024-11-10 10:16:26 +01:00
rustc-impl-const-stability.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
rustc-impl-const-stability.stderr Tweak wording of non-const traits used as const bounds 2024-12-10 00:38:05 +00:00
rvalue-static-promotion.rs
self_normalization.rs
self_normalization2.rs
signed_enum_discr.rs
slice-index-overflow-issue-130284.rs UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
slice-index-overflow-issue-130284.stderr interpret: fix dealing with overflow during slice indexing 2024-09-14 10:00:07 +02:00
slice_elem_ty_mismatch_in_unsizing_cast.rs Remove a use of StructuredDiag, which is incompatible with automatic error tainting and error translations 2024-07-04 12:20:51 +00:00
slice_elem_ty_mismatch_in_unsizing_cast.stderr Use wide pointers consistenly across the compiler 2024-10-04 14:06:48 +02:00
stable-precise-live-drops-in-libcore.rs
stable-precise-live-drops-in-libcore.stderr
static-cycle-error.rs
static-mut-refs.rs Update tests for hidden references to mutable static 2024-09-13 14:10:56 +03:00
static-promoted-to-mutable-static.rs
static-raw-pointer-interning.rs
static-raw-pointer-interning2.rs
static_mut_containing_mut_ref.rs
static_mut_containing_mut_ref2.rs stabilize const_mut_refs 2024-09-15 09:51:32 +02:00
static_mut_containing_mut_ref2.stderr stabilize const_mut_refs 2024-09-15 09:51:32 +02:00
static_mut_containing_mut_ref3.rs
static_mut_containing_mut_ref3.stderr
timeout.rs compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
timeout.stderr compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
too_generic_eval_ice.current.stderr Don't ICE when encountering placeholders in layout computation 2025-03-24 16:57:07 +00:00
too_generic_eval_ice.next.stderr Don't ICE when encountering placeholders in layout computation 2025-03-24 16:57:07 +00:00
too_generic_eval_ice.rs Don't ICE when encountering placeholders in layout computation 2025-03-24 16:57:07 +00:00
trait_specialization.rs
trait_specialization.stderr
transmute-const.rs
transmute-size-mismatch-before-typeck.rs Tweak unevaluated constant in pattern error 2024-12-04 20:29:35 +00:00
transmute-size-mismatch-before-typeck.stderr Tweak unevaluated constant in pattern error 2024-12-04 20:29:35 +00:00
try-operator.rs
try-operator.stderr Get rid of HIR const checker 2024-11-22 02:32:26 +00:00
tuple-struct-constructors.rs Stabilize generic NonZero. 2024-04-22 18:48:47 +02:00
underscore_const_names.rs
uninhabited-const-issue-61744.rs Shorten span of panic failures in const context 2025-02-28 16:28:41 +00:00
uninhabited-const-issue-61744.stderr Shorten span of panic failures in const context 2025-02-28 16:28:41 +00:00
union_constant.rs
unnormalized-param-env.rs
unstable-const-fn-in-libcore.rs
unstable-const-fn-in-libcore.stderr Tweak wording of non-const traits used as const bounds 2024-12-10 00:38:05 +00:00
unstable-precise-live-drops-in-libcore.rs
unwind-abort.rs stabilize const_extern_fn 2024-09-14 18:07:06 +02:00
validate_never_arrays.rs Remove the -test suffix from normalize directives 2024-12-27 19:58:16 +11:00
validate_never_arrays.stderr
value-suggestion-ice-123906.rs Fix value suggestion for array in generic context 2024-04-14 09:42:53 -04:00
value-suggestion-ice-123906.stderr Rollup merge of #124000 - compiler-errors:sugg-tweaks, r=wesleywiser 2024-04-17 00:00:23 +02:00
write-to-static-mut-in-static.rs
write-to-static-mut-in-static.stderr
write_to_mut_ref_dest.rs stabilize const_mut_refs 2024-09-15 09:51:32 +02:00
write_to_static_via_mut_ref.rs stabilize const_mut_refs 2024-09-15 09:51:32 +02:00
write_to_static_via_mut_ref.stderr stabilize const_mut_refs 2024-09-15 09:51:32 +02:00
zst_no_llvm_alloc.rs New lint: dangling_pointers_from_temporaries 2024-10-28 14:16:05 +03:00