rust/tests/ui/consts
Stuart Cook 417bea36ef
Rollup merge of #148508 - estebank:issue-74617, r=nnethercote
Provide more context when mutably borrowing an imutably borrowed value

Point at statics and consts being mutable borrowed or written to:

```
error[E0594]: cannot assign to immutable static item `NUM`
  --> $DIR/E0594.rs:4:5
   |
LL | static NUM: i32 = 18;
   | --------------- this `static` cannot be written to
...
LL |     NUM = 20;
   |     ^^^^^^^^ cannot assign
```

Point at the expression that couldn't be mutably borrowed from a pattern:

```
error[E0596]: cannot borrow data in a `&` reference as mutable
  --> $DIR/mut-pattern-of-immutable-borrow.rs:19:14
   |
LL |     match &arg.field {
   |           ---------- this cannot be borrowed as mutable
LL |         Some(ref mut s) => s.push('a'),
   |              ^^^^^^^^^ cannot borrow as mutable
```

Partially address rust-lang/rust#74617.
2025-11-11 21:09:38 +11:00
..
auxiliary intrinsics: rename min_align_of to align_of 2025-06-12 17:50:25 +02:00
const-blocks Make obligation cause code suggestions verbose 2025-06-06 20:12:11 +00:00
const-eval Allow function_casts_as_integer in non-related ui tests 2025-11-10 16:38:28 +01:00
const-extern-fn review comments 2025-11-02 20:12:26 +00:00
const-mut-refs don't uppercase error messages 2025-09-03 15:24:49 +02:00
const_constructor [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const_in_pattern compiletest: Do not require annotations on empty labels and suggestions 2025-05-03 22:49:23 +03:00
control-flow review comments 2025-11-02 20:12:26 +00:00
extra-const-ub fix panic with extra-const-ub-checks 2025-10-07 19:16:58 +02:00
min_const_fn review comments 2025-11-02 20:12:26 +00:00
miri_unleashed Provide more context when mutably borrowing an imutable borrow 2025-11-09 22:14:48 +00:00
required-consts Bless collect-in-promoted-const.rs 2025-10-16 23:03:05 +08:00
static-default-lifetime Improve AssocItem::descr. 2025-04-11 11:03:08 +10:00
std add mem::conjure_zst 2025-10-03 13:30:47 -04:00
array-literal-index-oob.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
array-literal-index-oob.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
array-literal-len-mismatch.rs Suggest the correct array length on mismatch 2023-02-12 02:15:41 +00:00
array-literal-len-mismatch.stderr Simplify array length mismatch error reporting 2024-11-24 03:32:11 +00:00
array-repeat-expr-not-const.rs cleaned up some tests 2025-07-01 15:16:56 +05:00
array-repeat-expr-not-const.stderr cleaned up some tests 2025-07-01 15:16:56 +05:00
array-to-slice-cast.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
assert-type-intrinsics.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
assert-type-intrinsics.stderr const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02:00
assoc-const-elided-lifetime.rs Warn on elided lifetimes in associated constants 2023-08-20 00:21:47 +00:00
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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
assoc_const_generic_impl.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
assoc_const_generic_impl.stderr Clarify why we are talking about a failed const eval at a random place 2025-06-02 15:37:15 +00:00
associated_const_generic.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
async-block.rs UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
async-block.without_feature.stderr Bless tests 2024-01-13 12:46:58 -05:00
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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
cast-discriminant-zst-enum.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
chained-constants-stackoverflow.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
check_const-feature-gated.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
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
closure-type-error-during-const-eval-66706.rs Add test batch 4 2025-10-11 21:59:51 -04:00
closure-type-error-during-const-eval-66706.stderr Add test batch 4 2025-10-11 21:59:51 -04: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 intrinsics: rename min_align_of to align_of 2025-06-12 17:50:25 +02:00
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 Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
const-array-oob.stderr const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02:00
const-as-fn.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
const-as-fn.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
const-assert-unchecked-ub.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
const-assert-unchecked-ub.stderr const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02:00
const-autoderef.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-big-enum.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-binops.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-bitshift-rhs-inference.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-block-const-bound.rs Change const trait bound syntax from ~const to [const] 2025-06-26 13:46:45 +00:00
const-block-const-bound.stderr Change const trait bound syntax from ~const to [const] 2025-06-26 13:46:45 +00:00
const-block-cross-crate-fn.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-block-item-macro-codegen.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-block-item.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-block-item.stderr bless tests with new lint messages 2025-08-19 21:27:10 +02:00
const-block-non-item-statement-3.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-block-non-item-statement-rpass.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-block-non-item-statement.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-block.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-bound.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
const-byte-str-cast.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-call.rs Note def descr in NonConstFunctionCall 2024-12-23 22:15:32 +00:00
const-call.stderr review comments 2025-11-02 20:12:26 +00:00
const-cast-different-types.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
const-cast-different-types.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
const-cast-ptr-int.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-cast-wrong-type.rs Expect an array when expected and acutal types are both arrays during cast 2025-03-27 13:05:18 +08:00
const-cast-wrong-type.stderr Expect an array when expected and acutal types are both arrays during cast 2025-03-27 13:05:18 +08:00
const-cast.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-compare-bytes-ub.rs Make slices [const] PartialEq 2025-07-17 17:58:10 +00:00
const-compare-bytes-ub.stderr Show the memory of uninit reads 2025-07-18 07:47:08 +00:00
const-compare-bytes.rs Make slices [const] PartialEq 2025-07-17 17:58:10 +00:00
const-const.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-contents.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-deref-ptr.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
const-deref-ptr.stderr const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02:00
const-deref.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-endianess.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-enum-byref-self.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-enum-byref.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-enum-cast.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-enum-ptr.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-enum-struct.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-enum-struct2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-enum-structlike.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-enum-tuple.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-enum-tuple2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-enum-tuplestruct.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-enum-tuplestruct2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-enum-vec-index.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-enum-vec-ptr.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-enum-vector.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-err-early.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
const-err-early.stderr const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02:00
const-err-enum-discriminant.32bit.stderr Show the memory of uninit reads 2025-07-18 07:47:08 +00:00
const-err-enum-discriminant.64bit.stderr Show the memory of uninit reads 2025-07-18 07:47:08 +00:00
const-err-enum-discriminant.rs Show the memory of uninit reads 2025-07-18 07:47:08 +00:00
const-err-late.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
const-err-late.stderr Clarify why we are talking about a failed const eval at a random place 2025-06-02 15:37:15 +00:00
const-err-multi.rs const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02:00
const-err-multi.stderr const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02:00
const-err-rpass.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-eval-array-len-in-impl.rs cleaned up some tests 2025-07-10 18:47:20 +05:00
const-eval-array-len-in-impl.stderr When more than a single impl and less than 4 could apply, point at them 2025-10-31 20:44:01 +00:00
const-eval-fail-too-big.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
const-eval-fail-too-big.stderr const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02:00
const-expr-addr-operator.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
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 Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
const-external-macro-const-err.stderr const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02:00
const-fields-and-indexing.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-fn-const-eval.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
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 Make obligation cause code suggestions verbose 2025-06-06 20:12:11 +00:00
const-fn-method.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-fn-mismatch.rs E0379: Make diagnostic more precise 2024-01-02 13:49:47 +01:00
const-fn-mismatch.stderr E0379: Provide suggestions 2024-01-02 13:49:48 +01:00
const-fn-nested.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-fn-not-in-trait.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
const-fn-not-in-trait.stderr E0379: Provide suggestions 2024-01-02 13:49:48 +01:00
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 review comments 2025-11-02 20:12:26 +00:00
const-fn-ptr.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
const-fn-ptr.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
const-fn-stability-calls-3.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-fn-stability-calls.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-fn-type-name-any.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-fn-type-name.rs Remove the nullary intrinsic const eval logic and treat them like other intrinsics 2025-06-30 08:04:40 +00:00
const-fn-val.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-fn-zst-args.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-fn.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-int-arithmetic-overflow.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-int-arithmetic.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-int-conversion-rpass.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-int-conversion.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
const-int-conversion.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
const-int-overflowing-rpass.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-int-overflowing.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
const-int-overflowing.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
const-int-pow-rpass.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-int-rotate-rpass.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-int-rotate.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
const-int-rotate.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
const-int-saturating-arith.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-int-sign-rpass.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-int-sign.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
const-int-sign.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
const-int-unchecked.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
const-int-unchecked.stderr const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02:00
const-int-wrapping-rpass.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-int-wrapping.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
const-int-wrapping.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-len-underflow-separate-spans.next.stderr const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02:00
const-len-underflow-separate-spans.old.stderr const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02:00
const-len-underflow-separate-spans.rs const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02:00
const-len-underflow-subspans.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
const-len-underflow-subspans.stderr const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02:00
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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-match-pattern-arm.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-meth-pattern.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-mut-refs-crate.rs stabilize const_mut_refs 2024-09-15 09:51:32 +02:00
const-needs_drop-monomorphic.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
const-needs_drop-monomorphic.stderr fallout :skull_emoji: 2025-02-14 00:37:23 +01:00
const-needs_drop.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-negation.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-negative.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-nullary-enum.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-nullary-univariant-enum.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-pattern-irrefutable.rs compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
const-pattern-irrefutable.stderr compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
const-pattern-not-const-evaluable.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-pattern-rewrite-error-32086.rs Rehome tests/ui/issues/ tests [3/?] 2025-08-04 16:43:53 -04:00
const-pattern-rewrite-error-32086.stderr Rehome tests/ui/issues/ tests [3/?] 2025-08-04 16:43:53 -04:00
const-pattern-variant.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-promoted-opaque.atomic.stderr const checks: avoid 'top-level scope' terminology 2025-06-27 17:03:48 +02:00
const-promoted-opaque.rs const checks: avoid 'top-level scope' terminology 2025-06-27 17:03:48 +02: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 Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
const-ptr-is-null.stderr const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02:00
const-ptr-nonnull-rpass.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-ptr-nonnull.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
const-ptr-nonnull.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
const-ptr-unique-rpass.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-ptr-unique.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
const-ptr-unique.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
const-range-matching-76191.rs Rehome tests/ui/issues/ tests [5/?] 2025-08-17 13:01:02 -04:00
const-range-matching-76191.stderr Rehome tests/ui/issues/ tests [5/?] 2025-08-17 13:01:02 -04:00
const-rec-and-tup.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-region-ptrs.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-repeated-values.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-size_of-align_of.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
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 Replace NullOp::SizeOf and NullOp::AlignOf by lang items. 2025-10-23 00:38:28 +00:00
const-size_of_val-align_of_val-extern-type.rs revert: PR144016 - MetaSized does not always hold 2025-10-15 09:35:04 +01:00
const-size_of_val-align_of_val-extern-type.stderr revert: PR144016 - MetaSized does not always hold 2025-10-15 09:35:04 +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 Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
const-slice-oob.stderr const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02:00
const-struct-offsets.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
const-struct.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-try-feature-gate.rs Constify Try, From, TryFrom 2025-07-21 12:49:45 +03:00
const-try-feature-gate.stderr Constify Try, From, TryFrom 2025-07-21 12:49:45 +03:00
const-try.rs Constify Try, From, TryFrom 2025-07-21 12:49:45 +03:00
const-tup-index-span.rs compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
const-tup-index-span.stderr fix ICE on type error in promoted 2024-12-09 15:17:26 +01:00
const-tuple-struct.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-type-mismatch.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
const-type-mismatch.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
const-typeid-of-rpass.rs Stabilize const TypeId::of 2025-07-21 09:11:21 +00:00
const-unit-struct.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
const-unsafe-fn.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-unsized.rs Check statics' type in type_of. 2025-07-25 23:39:26 +00:00
const-unsized.stderr Check statics' type in type_of. 2025-07-25 23:39:26 +00:00
const-unstable-intrinsic.rs intrinsics: rename min_align_of to align_of 2025-06-12 17:50:25 +02:00
const-unstable-intrinsic.stderr intrinsics: rename min_align_of to align_of 2025-06-12 17:50:25 +02:00
const-unwrap.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
const-unwrap.stderr const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02:00
const-validation-fail-55455.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-variant-count.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const_cmp_type_id.rs Constify Eq, Ord, PartialOrd 2025-09-12 12:39:31 +03:00
const_cmp_type_id.stderr Point at non-const trait impl when encountering unmet [const] bound 2025-11-02 20:12:26 +00:00
const_discriminant.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const_fn_return_nested_fn_ptr.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const_let_assign.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const_let_assign2.rs Fix error message for static references or mutable references 2025-04-26 14:48:30 +09:00
const_let_assign2.stderr bless tests with new lint messages 2025-08-19 21:27:10 +02:00
const_let_assign3.rs stabilize const_mut_refs 2024-09-15 09:51:32 +02:00
const_let_eq.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const_let_eq_float.rs stabilize const_fn_floating_point_arithmetic 2024-08-22 08:25:54 +02:00
const_let_irrefutable.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const_let_promote.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const_let_refutable.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
const_let_refutable.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
const_prop_slice_pat_ice.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
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 bless tests with new lint messages 2025-08-19 21:27:10 +02:00
const_refs_to_static.rs const-eval: allow constants to refer to mutable/external memory, but reject such constants as patterns 2025-06-26 18:09:47 +02:00
const_refs_to_static_fail.rs const-eval: allow constants to refer to mutable/external memory, but reject such constants as patterns 2025-06-26 18:09:47 +02:00
const_refs_to_static_fail.stderr Fix typo in error message 2025-09-14 17:55:33 -04:00
const_refs_to_static_fail_invalid.rs const-eval: allow constants to refer to mutable/external memory, but reject such constants as patterns 2025-06-26 18:09:47 +02:00
const_refs_to_static_fail_invalid.stderr Fix typo in error message 2025-09-14 17:55:33 -04:00
const_short_circuit.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const_transmute_type_id.rs Stabilize const TypeId::of 2025-07-21 09:11:21 +00:00
const_transmute_type_id.stderr Add opaque TypeId handles for CTFE 2025-07-09 16:37:11 +00:00
const_transmute_type_id2.rs Stabilize const TypeId::of 2025-07-21 09:11:21 +00:00
const_transmute_type_id2.stderr Add opaque TypeId handles for CTFE 2025-07-09 16:37:11 +00:00
const_transmute_type_id3.rs Stabilize const TypeId::of 2025-07-21 09:11:21 +00:00
const_transmute_type_id3.stderr Give all bytes of TypeId provenance 2025-07-14 08:33:51 +00:00
const_transmute_type_id4.rs Stabilize const TypeId::of 2025-07-21 09:11:21 +00:00
const_transmute_type_id4.stderr type_id_eq: check that the hash fully matches the type 2025-07-16 08:02:47 +02:00
const_transmute_type_id5.rs Stabilize const TypeId::of 2025-07-21 09:11:21 +00:00
const_transmute_type_id5.stderr type_id_eq: check that the hash fully matches the type 2025-07-16 08:02:47 +02:00
const_transmute_type_id6.rs Don't ICE on non-TypeId metadata within TypeId 2025-07-21 14:23:20 +00:00
const_transmute_type_id6.stderr Don't ICE on non-TypeId metadata within TypeId 2025-07-21 14:23:20 +00:00
const_transmute_type_id7.rs const validation: better error for maybe-null references 2025-09-24 13:35:29 +02:00
const_transmute_type_id7.stderr const validation: better error for maybe-null references 2025-09-24 13:35:29 +02:00
const_unsafe_unreachable.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const_unsafe_unreachable_ub.rs const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02:00
const_unsafe_unreachable_ub.stderr const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02:00
constifconst-call-in-const-position.rs Remove #[const_trait] 2025-11-08 07:37:15 +01:00
constifconst-call-in-const-position.stderr Remove #[const_trait] 2025-11-08 07:37:15 +01:00
consts-in-patterns.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
copy-intrinsic.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
copy-intrinsic.stderr const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02:00
ct-var-in-collect_all_mismatches.rs Handle inference variables in CollectAllMismatches correctly 2023-01-11 20:01:24 +00:00
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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
dangling-alloc-id-ice.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
dangling-alloc-id-ice.stderr don't uppercase error messages 2025-09-03 15:24:49 +02:00
dangling-zst-ice-issue-126393.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
dangling-zst-ice-issue-126393.stderr don't uppercase error messages 2025-09-03 15:24:49 +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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
different-fn-ptr-binders-during-ctfe.rs Don't ICE in CTFE if raw/fn-ptr types differ 2024-03-08 02:57:06 +00:00
different-fn-ptr-binders-during-ctfe.stderr Don't ICE in CTFE if raw/fn-ptr types differ 2024-03-08 02:57:06 +00:00
do-not-ice-long-constant-evaluation-in-for-loop.rs address review 2025-10-17 18:20:21 +01:00
do-not-ice-long-constant-evaluation-in-for-loop.stderr address review 2025-10-17 18:20:21 +01:00
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 Don't look at static items' HIR for wfcheck 2025-06-30 08:45:43 +00:00
drop-maybe_uninit.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
drop_box.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
drop_box.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
drop_none.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
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 Reenable effects in libcore 2023-11-12 04:33:19 +00:00
effect_param.stderr Merge typeck loop with static/const item eval loop 2025-05-09 15:31:27 +00:00
enclosing-scope-rule.rs const-checking: add some corner case tests, and fix some nits 2024-03-11 14:15:24 +01:00
enum-discr-type-err.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
enum-discr-type-err.stderr Add a note to duplicate diagnostics 2023-10-05 01:04:41 +00:00
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 Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00
escaping-bound-var.stderr Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00
eval-enum.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
eval-enum.stderr const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02:00
fn_trait_refs.rs Constify Eq, Ord, PartialOrd 2025-09-12 12:39:31 +03:00
gate-do-not-const-check.rs refactor AttributeGate and rustc_attr! to emit notes during feature checking 2025-06-09 11:44:24 +02:00
gate-do-not-const-check.stderr refactor AttributeGate and rustc_attr! to emit notes during feature checking 2025-06-09 11:44:24 +02:00
huge-values.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
ice-48279.rs Use generic NonZero in tests. 2024-02-25 12:03:48 +01:00
ice-bad-input-type-for-cast-83056.rs add issue numbers via // issue: rust-lang/rust#ISSUE_NUM directive 2024-03-24 09:34:11 +01:00
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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
inline_asm.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
inline_asm.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
int_ptr_for_zst_slices.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
interior-mut-const-via-union.32bit.stderr don't uppercase error messages 2025-09-03 15:24:49 +02:00
interior-mut-const-via-union.64bit.stderr don't uppercase error messages 2025-09-03 15:24:49 +02:00
interior-mut-const-via-union.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
invalid-const-in-body.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
invalid-const-in-body.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
invalid_promotion.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-3521.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-3521.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
issue-6991.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-13837.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
issue-13902.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-16538.rs Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
issue-16538.stderr review comments 2025-11-02 20:12:26 +00:00
issue-17074.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-17458.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-17458.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-17718-borrow-interior.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-17718-const-bad-values.rs const checks: avoid 'top-level scope' terminology 2025-06-27 17:03:48 +02:00
issue-17718-const-bad-values.stderr don't uppercase error messages 2025-09-03 15:24:49 +02:00
issue-17718-const-borrow.rs const checks: avoid 'top-level scope' terminology 2025-06-27 17:03:48 +02:00
issue-17718-const-borrow.stderr const checks: avoid 'top-level scope' terminology 2025-06-27 17:03:48 +02:00
issue-17718-constants-not-static.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-17718-constants-not-static.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-17718-references.rs Stabilize const_refs_to_static 2024-09-26 13:21:15 +02:00
issue-17718.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-17756.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-18294.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-18294.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-19244-1.rs Move some tests 2024-04-21 15:43:43 -03:00
issue-19244-1.stderr Do not provide field typo suggestions for tuples and tuple structs 2025-08-07 21:39:00 +00: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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-21562.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-21721.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-23833.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-23968-const-not-overflow.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-25826.rs fix library and rustdoc tests 2023-04-16 11:38:52 +00:00
issue-25826.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-27890.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-28113.rs update tests, adding known-bug 2023-07-27 15:51:02 +00:00
issue-28113.stderr Deny calls to non-#[const_trait] methods in MIR constck 2024-10-26 11:35:56 +08:00
issue-28822.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-29914-3.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-29914.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-29927-1.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-29927.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-32829-2.rs Note def descr in NonConstFunctionCall 2024-12-23 22:15:32 +00:00
issue-32829-2.stderr review comments 2025-11-02 20:12:26 +00:00
issue-32829.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
issue-32829.stderr const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02:00
issue-33537.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-33903.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-36163.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-36163.stderr always create DefIds when lowering anon-consts 2024-11-28 12:22:02 +00:00
issue-37222.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-37550-1.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-37550.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-37991.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-39161-bogus-error.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-39974.rs compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
issue-39974.stderr compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
issue-43105.rs Note def descr in NonConstFunctionCall 2024-12-23 22:15:32 +00:00
issue-43105.stderr review comments 2025-11-02 20:12:26 +00:00
issue-44255.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-44415.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-44415.stderr const-eval: allow constants to refer to mutable/external memory, but reject such constants as patterns 2025-06-26 18:09:47 +02:00
issue-46553.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-47789.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-50439.rs check array type of repeat exprs is wf 2023-05-04 11:22:40 +01:00
issue-50439.stderr check array type of repeat exprs is wf 2023-05-04 11:22:40 +01:00
issue-52023-array-size-pointer-cast.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-52023-array-size-pointer-cast.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-54348.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-54348.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-54387.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-54582.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-54954.rs Suppress "erroneous constant used" for constants tainted by errors 2023-05-15 00:00:00 +00:00
issue-54954.stderr Retire hir::*ItemRef. 2025-07-13 13:50:01 +00:00
issue-56164.rs update tests, adding known-bug 2023-07-27 15:51:02 +00:00
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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-62045.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-63226.rs extend doc comment for reachability set computation 2024-03-25 19:57:57 +01:00
issue-63952.32bit.stderr don't uppercase error messages 2025-09-03 15:24:49 +02:00
issue-63952.64bit.stderr don't uppercase error messages 2025-09-03 15:24:49 +02:00
issue-63952.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
issue-64059.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-64506.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
issue-64506.stderr const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02:00
issue-64662.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-64662.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-66345.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-66397.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-66693-panic-in-array-len.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
issue-66693-panic-in-array-len.stderr const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02:00
issue-66693.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
issue-66693.stderr const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02:00
issue-66787.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-67529.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-67640.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-67641.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-67696-const-prop-ice.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-67862.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-68264-overflow.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-68542-closure-in-array-len.rs update tests, adding known-bug 2023-07-27 15:51:02 +00:00
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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-69191-ice-on-uninhabited-enum-field.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-69310-array-size-lit-wrong-ty.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-69310-array-size-lit-wrong-ty.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-69312.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-69532.rs Suggest {to,from}_ne_bytes for transmutations between arrays and integers, etc 2025-04-24 13:14:36 +07:00
issue-70773-mir-typeck-lt-norm.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-70942-trait-vs-impl-mismatch.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-70942-trait-vs-impl-mismatch.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-73976-monomorphic.rs Rollup merge of #144133 - oli-obk:stabilize-const-type-id, r=lcnr 2025-08-07 20:49:42 +10:00
issue-73976-polymorphic.rs Stabilize const TypeId::of 2025-07-21 09:11:21 +00:00
issue-73976-polymorphic.stderr Stabilize const TypeId::of 2025-07-21 09:11:21 +00:00
issue-76064.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
issue-76064.stderr const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02: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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-79690.64bit.stderr don't uppercase error messages 2025-09-03 15:24:49 +02:00
issue-79690.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
issue-87046.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-87046.stderr On const pattern errors, point at the const item definition 2024-12-04 20:29:35 +00:00
issue-88071.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-88649.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
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 fix: Add col separator before secondary messages with no source 2025-08-26 15:15:17 -06:00
issue-90762.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-90870.rs fix PartialEq const feature name and const_cmp tracking issue 2025-07-11 17:57:50 +02:00
issue-90870.stderr update issue number for const_trait_impl 2025-07-13 23:55:06 +08:00
issue-90878-2.rs Improve an error involving attribute values. 2023-12-12 15:54:25 +11:00
issue-90878-2.stderr Improve an error involving attribute values. 2023-12-12 15:54:25 +11:00
issue-90878-3.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-90878-3.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-90878.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-90878.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-91434.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-91434.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-91560.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-91560.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
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 Add ignore-backends annotations in failing GCC backend ui tests 2025-07-23 13:48:04 +02:00
issue-94675.stderr Add ignore-backends annotations in failing GCC backend ui tests 2025-07-23 13:48:04 +02:00
issue-96169.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-102117.rs Stabilize const TypeId::of 2025-07-21 09:11:21 +00:00
issue-102117.stderr Stabilize const TypeId::of 2025-07-21 09:11:21 +00:00
issue-103790.rs fix(hir_analysis/wfcheck): don't leak {type error} 2024-09-29 23:40:43 -05:00
issue-103790.stderr Unconditionally run check_item_type on all items 2025-06-30 08:06:08 +00:00
issue-104155.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-104396.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-104396.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-104609.rs Remove a has_errors check that only hides errors after unrelated items have errored. 2024-01-31 16:51:42 +00:00
issue-104609.stderr Remove a has_errors check that only hides errors after unrelated items have errored. 2024-01-31 16:51:42 +00:00
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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-miri-1910.rs Add ignore-backends annotations in failing GCC backend ui tests 2025-07-23 13:48:04 +02:00
issue-miri-1910.stderr Add ignore-backends annotations in failing GCC backend ui tests 2025-07-23 13:48:04 +02:00
large-zst-array-77062.rs Test for issue 23600 2024-10-07 16:29:52 +00:00
large_const_alloc.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
large_const_alloc.stderr const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02:00
let-irrefutable-pattern-ice-120337.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
load-preserves-partial-init.rs library: Stabilize const_ptr_write 2024-10-12 00:02:36 -07:00
locals-in-const-fn.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
match-const-fn-structs.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
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 review comments 2025-11-02 20:12:26 +00:00
missing-larger-array-impl.rs use Const::eval instead of QueryNormalize in error reporting 2023-06-24 18:04:14 +00:00
missing-larger-array-impl.stderr sort array trait implementation suggestions correctly 2025-09-12 12:12:06 +02: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 Load missing type of impl associated constant from trait definition 2024-03-27 11:02:53 +00:00
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 const-eval: full support for pointer fragments 2025-07-30 08:13:58 +02:00
missing_span_in_backtrace.stderr const-eval: full support for pointer fragments 2025-07-30 08:13:58 +02:00
module-const-array-size-13763.rs comments 2025-08-05 19:34:46 +05:00
mono-reachable-invalid-const.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
mono-reachable-invalid-const.stderr Clarify why we are talking about a failed const eval at a random place 2025-06-02 15:37:15 +00:00
mozjs-error.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
mut-ptr-to-static.rs stabilize const_mut_refs 2024-09-15 09:51:32 +02:00
nested_erroneous_ctfe.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
nested_erroneous_ctfe.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
no-ice-from-static-in-const-issue-52060.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
no-ice-from-static-in-const-issue-52060.stderr const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02:00
non-const-value-in-const.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
non-sync-references-in-const.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
normalize-before-const-arg-has-type-goal.rs Normalize before computing ConstArgHasType goal 2025-06-25 15:36:59 +00:00
normalize-before-const-arg-has-type-goal.stderr Normalize before computing ConstArgHasType goal 2025-06-25 15:36:59 +00:00
offset.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
offset_from.rs rename sub_ptr 😅 2025-02-23 23:11:00 +07:00
offset_from_ub.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
offset_from_ub.stderr const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02:00
offset_ub.rs miri: fix out-of-bounds error for ptrs with negative offsets 2025-07-09 20:20:07 +02:00
offset_ub.stderr test: Subtract code_offset from width for ui_testing 2025-10-02 05:45:16 -06:00
oncecell-const-init-57781.rs Add test batch 3 2025-09-12 14:45:12 -04:00
overflowing-consts.noopt.stderr const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02:00
overflowing-consts.opt.stderr const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02:00
overflowing-consts.opt_with_overflow_checks.stderr const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02:00
overflowing-consts.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
packed_pattern.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
packed_pattern.stderr bless tests with new lint messages 2025-08-19 21:27:10 +02:00
packed_pattern2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
packed_pattern2.stderr bless tests with new lint messages 2025-08-19 21:27:10 +02:00
partial_qualif.rs const checks: avoid 'top-level scope' terminology 2025-06-27 17:03:48 +02:00
partial_qualif.stderr const checks: avoid 'top-level scope' terminology 2025-06-27 17:03:48 +02:00
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-nested-deref-ice.rs add regression test 2025-10-15 21:46:16 -07:00
precise-drop-nested-deref-ice.stderr add regression test 2025-10-15 21:46:16 -07:00
precise-drop-with-coverage.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
precise-drop-with-promoted.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
promote-not.rs Update tests. 2025-06-13 09:20:48 +02:00
promote-not.stderr Update tests. 2025-06-13 09:20:48 +02:00
promote_borrowed_field.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
promote_const_let.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
promote_const_let.stderr Tweak E0597 2023-01-15 19:46:20 +00:00
promote_evaluation_unused_result.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
promote_fn_calls.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
promote_fn_calls_std.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
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 Consider errors in MIR as impossible predicates. 2025-09-21 03:26:21 +00:00
promoted_const_call2.stderr Consider errors in MIR as impossible predicates. 2025-09-21 03:26:21 +00:00
promoted_const_call3.rs Taint borrowck results without running any borrowck if the MIR body was already tainted 2024-02-08 07:39:49 +00:00
promoted_const_call3.stderr Taint borrowck results without running any borrowck if the MIR body was already tainted 2024-02-08 07:39:49 +00:00
promoted_const_call4.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
promoted_const_call5.rs Taint borrowck results without running any borrowck if the MIR body was already tainted 2024-02-08 07:39:49 +00:00
promoted_const_call5.stderr Taint borrowck results without running any borrowck if the MIR body was already tainted 2024-02-08 07:39:49 +00:00
promoted_regression.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
promoted_running_out_of_memory_issue-130687.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
promoted_running_out_of_memory_issue-130687.stderr const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02:00
promoted_size_overflow.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
promoted_size_overflow.stderr const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02: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 Remove arm::t32-specific function pointer test. 2025-08-23 23:41:05 -05:00
ptr_is_null.rs stabilize const_ptr_is_null 2024-11-16 22:50:22 +01:00
qualif-indirect-mutation-fail.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
qualif-indirect-mutation-fail.stderr const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02:00
qualif-indirect-mutation-pass.rs stabilize const_mut_refs 2024-09-15 09:51:32 +02:00
qualif-union.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
qualif-union.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
qualif_overwrite.rs const checks: avoid 'top-level scope' terminology 2025-06-27 17:03:48 +02:00
qualif_overwrite.stderr const checks: avoid 'top-level scope' terminology 2025-06-27 17:03:48 +02:00
qualif_overwrite_2.rs const checks: avoid 'top-level scope' terminology 2025-06-27 17:03:48 +02:00
qualif_overwrite_2.stderr const checks: avoid 'top-level scope' terminology 2025-06-27 17:03:48 +02:00
raw-ptr-const.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
raw-ptr-temp-const.rs const-eval interner: from-scratch rewrite using mutability information from provenance rather than types 2024-01-22 09:28:00 +01:00
raw-ptr-temp-const.stderr const-eval interner: from-scratch rewrite using mutability information from provenance rather than types 2024-01-22 09:28:00 +01:00
raw_pointer_promoted.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
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 Bless/update tests. 2025-06-18 10:20:43 +02:00
recursive-static-write.rs const-eval: error when initializing a static writes to that static 2025-06-27 14:39:35 +02:00
recursive-static-write.stderr const-eval: error when initializing a static writes to that static 2025-06-27 14:39:35 +02:00
recursive-zst-static.default.stderr Mention crate being analysized in query description 2025-10-31 21:20:08 +00:00
recursive-zst-static.rs const-eval: error when initializing a static writes to that static 2025-06-27 14:39:35 +02:00
recursive-zst-static.unleash.stderr Mention crate being analysized in query description 2025-10-31 21:20:08 +00:00
recursive.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
recursive.stderr const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02:00
references.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
refs-to-cell-in-final.rs const checks: avoid 'top-level scope' terminology 2025-06-27 17:03:48 +02:00
refs-to-cell-in-final.stderr const checks: avoid 'top-level scope' terminology 2025-06-27 17:03:48 +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 Improve derive suggestion of const param 2025-09-24 13:29:23 +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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
return-in-const-fn.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
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 Check stability attributes are compatible in check_unused_or_stable_features. 2025-07-17 22:35:54 +00:00
rustc-impl-const-stability.rs Make Default const and add some const Default impls 2025-07-07 22:09:37 +00:00
rustc-impl-const-stability.stderr parse const trait Trait 2025-07-17 18:06:26 +08:00
rvalue-static-promotion.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
self_normalization.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
self_normalization2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
signed_enum_discr.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
slice-index-overflow-issue-130284.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
slice-index-overflow-issue-130284.stderr const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
stable-precise-live-drops-in-libcore.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
static-cycle-error.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
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 Improve wording of static_mut_ref 2024-02-18 06:01:40 +03:00
static-raw-pointer-interning.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
static-raw-pointer-interning2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
static_mut_containing_mut_ref.rs Improve wording of static_mut_ref 2024-02-18 06:01:40 +03:00
static_mut_containing_mut_ref2.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
static_mut_containing_mut_ref2.stderr const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02:00
static_mut_containing_mut_ref3.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
static_mut_containing_mut_ref3.stderr const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02:00
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_alias.fail.stderr Make const trait aliases work in the old solver 2025-10-30 08:05:37 +00:00
trait_alias.next_fail.stderr Make const trait aliases work in the old solver 2025-10-30 08:05:37 +00:00
trait_alias.rs Make const trait aliases work in the old solver 2025-10-30 08:05:37 +00:00
trait_alias_method_call.rs Add more tests 2025-10-30 08:05:37 +00:00
trait_specialization.rs Update test directives for wasm32-wasip1 2024-03-11 09:36:35 -07:00
trait_specialization.stderr Update test directives for wasm32-wasip1 2024-03-11 09:36:35 -07:00
transmute-const.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
transmute-size-mismatch-before-typeck.rs Fix stderr normalization. 2025-08-22 20:10:27 +00:00
transmute-size-mismatch-before-typeck.stderr Fix stderr normalization. 2025-08-22 20:10:27 +00:00
try-operator.rs Add ignore-backends annotations in failing GCC backend ui tests 2025-07-23 13:48:04 +02:00
tuple-struct-constructors.rs Stabilize generic NonZero. 2024-04-22 18:48:47 +02:00
underscore_const_names.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
uninhabited-const-issue-61744.rs const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02:00
uninhabited-const-issue-61744.stderr const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02:00
union_constant.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unnormalized-param-env.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unsafe_cell_in_const.rs const validation: properly ignore zero-sized UnsafeCell 2025-06-26 10:20:48 +02:00
unstable-const-fn-in-libcore.rs Change const trait bound syntax from ~const to [const] 2025-06-26 13:46:45 +00:00
unstable-const-fn-in-libcore.stderr Constify Fn* traits 2025-07-08 14:36:43 +00:00
unstable-precise-live-drops-in-libcore.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unwind-abort.rs stabilize const_extern_fn 2024-09-14 18:07:06 +02:00
validate_never_arrays.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
validate_never_arrays.stderr don't uppercase error messages 2025-09-03 15:24:49 +02:00
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 const-eval: error when initializing a static writes to that static 2025-06-27 14:39:35 +02:00
write-to-static-mut-in-static.stderr const-eval: error when initializing a static writes to that static 2025-06-27 14:39:35 +02:00
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 const checks: avoid 'top-level scope' terminology 2025-06-27 17:03:48 +02:00
write_to_static_via_mut_ref.stderr Provide more context when mutably borrowing an imutable borrow 2025-11-09 22:14:48 +00:00
zst_no_llvm_alloc.rs Fix ICE on offsetted ZST pointer 2025-10-15 20:06:46 -04:00