rust/src/test/ui/consts
bors bb55bd449e Auto merge of #95565 - jackh726:remove-borrowck-mode, r=nikomatsakis
Remove migrate borrowck mode

Closes #58781
Closes #43234

# Stabilization proposal

This PR proposes the stabilization of `#![feature(nll)]` and the removal of `-Z borrowck`. Current borrow checking behavior of item bodies is currently done by first infering regions *lexically* and reporting any errors during HIR type checking. If there *are* any errors, then MIR borrowck (NLL) never occurs. If there *aren't* any errors, then MIR borrowck happens and any errors there would be reported. This PR removes the lexical region check of item bodies entirely and only uses MIR borrowck. Because MIR borrowck could never *not* be run for a compiled program, this should not break any programs. It does, however, change diagnostics significantly and allows a slightly larger set of programs to compile.

Tracking issue: #43234
RFC: https://github.com/rust-lang/rfcs/blob/master/text/2094-nll.md
Version: 1.63 (2022-06-30 => beta, 2022-08-11 => stable).

## Motivation

Over time, the Rust borrow checker has become "smarter" and thus allowed more programs to compile. There have been three different implementations: AST borrowck, MIR borrowck, and polonius (well, in progress). Additionally, there is the "lexical region resolver", which (roughly) solves the constraints generated through HIR typeck. It is not a full borrow checker, but does emit some errors.

The AST borrowck was the original implementation of the borrow checker and was part of the initially stabilized Rust 1.0. In mid 2017, work began to implement the current MIR borrow checker and that effort ompleted by the end of 2017, for the most part. During 2018, efforts were made to migrate away from the AST borrow checker to the MIR borrow checker - eventually culminating into "migrate" mode - where HIR typeck with lexical region resolving following by MIR borrow checking - being active by default in the 2018 edition.

In early 2019, migrate mode was turned on by default in the 2015 edition as well, but with MIR borrowck errors emitted as warnings. By late 2019, these warnings were upgraded to full errors. This was followed by the complete removal of the AST borrow checker.

In the period since, various errors emitted by the MIR borrow checker have been improved to the point that they are mostly the same or better than those emitted by the lexical region resolver.

While there do remain some degradations in errors (tracked under the [NLL-diagnostics tag](https://github.com/rust-lang/rust/issues?q=is%3Aopen+is%3Aissue+label%3ANLL-diagnostics), those are sufficiently small and rare enough that increased flexibility of MIR borrow check-only is now a worthwhile tradeoff.

## What is stabilized

As said previously, this does not fundamentally change the landscape of accepted programs. However, there are a [few](https://github.com/rust-lang/rust/issues?q=is%3Aopen+is%3Aissue+label%3ANLL-fixed-by-NLL) cases where programs can compile under `feature(nll)`, but not otherwise.

There are two notable patterns that are "fixed" by this stabilization. First, the `scoped_threads` feature, which is a continutation of a pre-1.0 API, can sometimes emit a [weird lifetime error](https://github.com/rust-lang/rust/issues/95527) without NLL. Second, actually seen in the standard library. In the `Extend` impl for `HashMap`, there is an implied bound of `K: 'a` that is available with NLL on but not without - this is utilized in the impl.

As mentioned before, there are a large number of diagnostic differences. Most of them are better, but some are worse. None are serious or happen often enough to need to block this PR. The biggest change is the loss of error code for a number of lifetime errors in favor of more general "lifetime may not live long enough" error. While this may *seem* bad, the former error codes were just attempts to somewhat-arbitrarily bin together lifetime errors of the same type; however, on paper, they end up being roughly the same with roughly the same kinds of solutions.

## What isn't stabilized

This PR does not completely remove the lexical region resolver. In the future, it may be possible to remove that (while still keeping HIR typeck) or to remove it together with HIR typeck.

## Tests

Many test outputs get updated by this PR. However, there are number of tests specifically geared towards NLL under `src/test/ui/nll`

## History

* On 2017-07-14, [tracking issue opened](https://github.com/rust-lang/rust/issues/43234)
* On 2017-07-20, [initial empty MIR pass added](https://github.com/rust-lang/rust/pull/43271)
* On 2017-08-29, [RFC opened](https://github.com/rust-lang/rfcs/pull/2094)
* On 2017-11-16, [Integrate MIR type-checker with NLL](https://github.com/rust-lang/rust/pull/45825)
* On 2017-12-20, [NLL feature complete](https://github.com/rust-lang/rust/pull/46862)
* On 2018-07-07, [Don't run AST borrowck on mir mode](https://github.com/rust-lang/rust/pull/52083)
* On 2018-07-27, [Add migrate mode](https://github.com/rust-lang/rust/pull/52681)
* On 2019-04-22, [Enable migrate mode on 2015 edition](https://github.com/rust-lang/rust/pull/59114)
* On 2019-08-26, [Don't downgrade errors on 2015 edition](https://github.com/rust-lang/rust/pull/64221)
* On 2019-08-27, [Remove AST borrowck](https://github.com/rust-lang/rust/pull/64790)
2022-06-07 05:04:14 +00:00
..
auxiliary Remove duplicated test files 2022-03-27 09:19:34 -03:00
const-blocks Fully stabilize NLL 2022-06-03 17:16:41 -04:00
const-eval interpret: better control over whether we read data with provenance, and implicit provenance stripping where possible 2022-06-05 10:13:34 -04:00
const-extern-fn Revert "add DefId to unsafety violations and display function path in E0133" 2022-04-26 14:49:28 +00:00
const-mut-refs interpret/memory: simplify check_and_deref_ptr 2022-03-22 20:19:30 -04:00
const_constructor remove const_fn feature gate from const tests 2021-04-29 09:27:45 +02:00
const_in_pattern bless warnings 2021-10-08 10:56:08 -07:00
const_limit Fix drop handling for if let expressions 2021-09-01 23:47:41 +01:00
control-flow bless you 2022-02-12 19:24:41 +11:00
min_const_fn Stabilize const_impl_trait as well 2022-03-07 08:47:18 -08:00
miri_unleashed interpret: better control over whether we read data with provenance, and implicit provenance stripping where possible 2022-06-05 10:13:34 -04:00
std fix Layout struct member naming style 2022-04-11 13:35:18 +08:00
array-literal-index-oob.rs avoid promoting division, modulo and indexing operations that could fail 2021-01-22 10:21:49 +01:00
array-literal-index-oob.stderr avoid promoting division, modulo and indexing operations that could fail 2021-01-22 10:21:49 +01:00
array-to-slice-cast.rs Stabilize casts and coercions to &[T] in const fn 2020-06-30 11:15:28 +02:00
assert-type-intrinsics.rs Adjust feature names that disagree on const stabilization version 2022-03-31 12:34:48 -07:00
assert-type-intrinsics.stderr CTFE: support assert_zero_valid and assert_uninit_valid 2021-11-29 11:49:31 -05:00
assoc-const.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
assoc_const_generic_impl.rs make const_err a future incompat lint 2021-02-03 15:45:43 +01:00
assoc_const_generic_impl.stderr make const_err a future incompat lint 2021-02-03 15:45:43 +01:00
associated_const_generic.rs Array repeat expression lengths must be monomorphic at MIR building time 2020-01-16 16:18:08 +01:00
async-block.rs Allow async {} expressions in const contexts 2021-05-16 02:06:40 +02:00
async-block.with_feature.stderr Allow async {} expressions in const contexts 2021-05-16 02:06:40 +02:00
async-block.without_feature.stderr Add tracking issue 2021-05-16 21:57:40 +02:00
bswap-const.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
cast-discriminant-zst-enum.rs Fix more “a”/“an” typos 2021-08-22 16:35:29 +02:00
chained-constants-stackoverflow.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
check_const-feature-gated.rs Move some tests to more reasonable directories - 2 2021-01-16 19:46:54 -03:00
closure-structural-match-issue-90013.rs #![feature(inline_const)] is no longer incomplete 2021-11-22 22:17:03 +00:00
const-address-of-interior-mut.rs Add more tests for raw_ref_op 2019-12-18 20:30:00 +00:00
const-address-of-interior-mut.stderr Allow references to interior mutable data behind a feature gate 2021-01-01 16:59:12 +00:00
const-address-of-mut.rs Bless tests 2020-10-01 11:22:23 -07:00
const-address-of-mut.stderr Permit mutable references in all const contexts 2021-01-23 11:33:45 +00:00
const-address-of.rs Add more tests for raw_ref_op 2019-12-18 20:30:00 +00:00
const-adt-align-mismatch.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-array-oob-arith.rs Cleanup feature gates. 2022-03-03 18:50:28 +01:00
const-array-oob-arith.stderr Cleanup feature gates. 2022-03-03 18:50:28 +01:00
const-array-oob.rs Cleanup feature gates. 2022-03-03 18:50:28 +01:00
const-array-oob.stderr Cleanup feature gates. 2022-03-03 18:50:28 +01:00
const-as-fn.rs add helpful error notes and fix the false 'defined here' messages 2021-02-25 16:11:18 +05:30
const-as-fn.stderr add helpful error notes and fix the false 'defined here' messages 2021-02-25 16:11:18 +05:30
const-autoderef.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-big-enum.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-binops.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-bitshift-rhs-inference.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-block-const-bound.rs Rename ~const Drop to ~const Destruct 2022-03-21 17:04:03 +11:00
const-block-const-bound.stderr Rename ~const Drop to ~const Destruct 2022-03-21 17:04:03 +11:00
const-block-cross-crate-fn.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-block-item-macro-codegen.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-block-item.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-block-non-item-statement-3.rs Liveness analysis for everybody 2020-09-29 23:45:31 +02:00
const-block-non-item-statement-rpass.rs Liveness analysis for everybody 2020-09-29 23:45:31 +02:00
const-block-non-item-statement.rs use check-pass instead of build-pass in consts ui test suits 2020-11-10 21:34:05 +09:00
const-block.rs update tests 2020-03-31 19:01:49 +02:00
const-bound.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-byte-str-cast.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-call.rs bless you 2022-02-12 19:24:41 +11:00
const-call.stderr bless you 2022-02-12 19:24:41 +11:00
const-cast-different-types.rs Perform Sync check on static items in wf-check instead of during const checks 2021-11-26 14:22:45 +00:00
const-cast-different-types.stderr Perform Sync check on static items in wf-check instead of during const checks 2021-11-26 14:22:45 +00:00
const-cast-ptr-int.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-cast-wrong-type.rs Perform Sync check on static items in wf-check instead of during const checks 2021-11-26 14:22:45 +00:00
const-cast-wrong-type.stderr Perform Sync check on static items in wf-check instead of during const checks 2021-11-26 14:22:45 +00:00
const-cast.rs Update code to account for extern ABI requirement 2021-01-13 07:49:45 -05:00
const-const.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-contents.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-deref-ptr.rs Stabilize const_raw_ptr_deref for *const T 2021-11-06 17:05:15 -04:00
const-deref-ptr.stderr interpret/memory: simplify check_and_deref_ptr 2022-03-22 20:19:30 -04:00
const-deref.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-endianess.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-enum-byref-self.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-enum-byref.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-enum-cast.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-enum-ptr.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-enum-struct.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-enum-struct2.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-enum-structlike.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-enum-tuple.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-enum-tuple2.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-enum-tuplestruct.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-enum-tuplestruct2.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-enum-vec-index.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-enum-vec-ptr.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-enum-vector.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-err-early.rs make const_err a future incompat lint 2021-02-03 15:45:43 +01:00
const-err-early.stderr make const_err a future incompat lint 2021-02-03 15:45:43 +01:00
const-err-multi.rs make const_err a future incompat lint 2021-02-03 15:45:43 +01:00
const-err-multi.stderr make const_err a future incompat lint 2021-02-03 15:45:43 +01:00
const-err-rpass.rs tests: Move run-pass tests with naming conflicts to ui 2019-07-27 18:56:17 +03:00
const-err.rs Remove -Z force-overflow-checks 2021-11-24 10:19:23 -08:00
const-err.stderr make const_err a future incompat lint 2021-02-03 15:45:43 +01:00
const-err2.noopt.stderr Update tests to remove old numeric constants 2020-11-29 00:55:55 -05:00
const-err2.opt.stderr Update tests to remove old numeric constants 2020-11-29 00:55:55 -05:00
const-err2.opt_with_overflow_checks.stderr Update tests to remove old numeric constants 2020-11-29 00:55:55 -05:00
const-err2.rs Update tests to remove old numeric constants 2020-11-29 00:55:55 -05:00
const-err4.32bit.stderr bless 32bit 2022-05-19 20:20:36 +02:00
const-err4.64bit.stderr interpret/validity: separately control checking numbers for being init and non-ptr 2022-05-19 20:16:25 +02:00
const-err4.rs Rename stderr->64bit.stderr where needed. 2021-03-31 08:23:11 +00:00
const-expr-addr-operator.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
const-expr-in-fixed-length-vec.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-expr-in-vec-repeat.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-extern-function.rs Update code to account for extern ABI requirement 2021-01-13 07:49:45 -05:00
const-external-macro-const-err.rs make const_err a future incompat lint 2021-02-03 15:45:43 +01:00
const-external-macro-const-err.stderr Bless tests 2021-10-15 02:36:58 -05:00
const-fields-and-indexing.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-float-bits-conv.rs Allow unused rules in the testsuite where the lint triggers 2022-05-05 19:13:00 +02:00
const-float-bits-reject-conv.rs Ban subnormals and NaNs in const {from,to}_bits 2022-04-12 02:27:25 -07:00
const-float-bits-reject-conv.stderr Ban subnormals and NaNs in const {from,to}_bits 2022-04-12 02:27:25 -07:00
const-float-classify.rs Stabilize const_panic 2021-10-04 02:33:33 -04:00
const-fn-const-eval.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-fn-destructuring-arg.rs use check-pass instead of build-pass in consts ui test suits 2020-11-10 21:34:05 +09:00
const-fn-error.rs Rebless 2022-02-12 19:34:52 +11:00
const-fn-error.stderr Update const-fn-error.stderr 2022-03-15 06:08:25 +00:00
const-fn-in-vec.rs update message 2021-02-14 10:08:37 +05:30
const-fn-in-vec.stderr Update the diagnostic message to match the new span 2022-04-28 09:40:42 +00:00
const-fn-method.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-fn-mismatch.rs remove const_fn feature gate from const tests 2021-04-29 09:27:45 +02:00
const-fn-mismatch.stderr remove const_fn feature gate from const tests 2021-04-29 09:27:45 +02:00
const-fn-nested.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-fn-not-in-trait.rs remove const_fn feature gate from const tests 2021-04-29 09:27:45 +02:00
const-fn-not-in-trait.stderr remove const_fn feature gate from const tests 2021-04-29 09:27:45 +02:00
const-fn-not-safe-for-const.rs Update tests 2021-07-27 16:26:50 -04:00
const-fn-not-safe-for-const.stderr bless you 2022-02-12 19:24:41 +11:00
const-fn-ptr.rs Add a test for fn pointer calls in consts 2022-05-17 07:24:47 +00:00
const-fn-ptr.stderr Add a test for fn pointer calls in consts 2022-05-17 07:24:47 +00:00
const-fn-stability-calls-3.rs compiletest: Remove skip-codegen 2019-06-16 12:23:22 +03:00
const-fn-stability-calls.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-fn-type-name-any.rs remove const_fn feature gate from const tests 2021-04-29 09:27:45 +02:00
const-fn-type-name.rs remove const_fn feature gate from const tests 2021-04-29 09:27:45 +02:00
const-fn-val.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-fn-zst-args.rs Add memoization for const function evaluations 2019-11-27 12:01:04 +00:00
const-fn.rs Update tests after feature stabilization 2022-03-07 08:47:18 -08:00
const-for-feature-gate.rs Add feature gates for for and ? in consts 2021-07-29 23:21:54 +02:00
const-for-feature-gate.stderr Update tests 2021-07-29 23:21:54 +02:00
const-for.rs bless you 2022-02-12 19:24:41 +11:00
const-for.stderr Update stderrs referencing IntoIterator 2022-03-15 07:29:30 +00:00
const-index-feature-gate.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-int-arithmetic-overflow.rs fix various typos 2020-03-06 15:19:31 +01:00
const-int-arithmetic.rs Stabilize remaining integer methods as const fn 2021-01-13 04:57:28 -05:00
const-int-conversion-rpass.rs Migrate to numeric associated consts 2020-06-10 01:35:47 +00:00
const-int-conversion.rs Migrate to numeric associated consts 2020-06-10 01:35:47 +00:00
const-int-conversion.stderr Migrate to numeric associated consts 2020-06-10 01:35:47 +00:00
const-int-overflowing-rpass.rs Update tests to remove old numeric constants 2020-11-29 00:55:55 -05:00
const-int-overflowing.rs update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
const-int-overflowing.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
const-int-pow-rpass.rs stabilize const_int_pow 2020-11-23 01:58:27 +01:00
const-int-rotate-rpass.rs tests: Move run-pass tests with naming conflicts to ui 2019-07-27 18:56:17 +03:00
const-int-rotate.rs update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
const-int-rotate.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
const-int-saturating-arith.rs stabilize const_saturating_int_methods 2020-06-29 10:36:18 +02:00
const-int-sign-rpass.rs stabilize const_int_sign 2020-06-29 10:36:41 +02:00
const-int-sign.rs update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
const-int-sign.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
const-int-unchecked.rs bless you 2021-06-18 19:31:56 +02:00
const-int-unchecked.stderr Miri/CTFE: properly treat overflow in (signed) division/rem as UB 2022-03-01 20:39:51 -05:00
const-int-wrapping-rpass.rs Migrate to numeric associated consts 2020-06-10 01:35:47 +00:00
const-int-wrapping.rs update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
const-int-wrapping.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
const-integer-bool-ops.rs normalization change and rebase 2022-03-09 11:33:11 +01:00
const-integer-bool-ops.stderr normalization change and rebase 2022-03-09 11:33:11 +01:00
const-labeled-break.rs Update tests 2020-06-28 10:08:12 -07:00
const-len-underflow-separate-spans.rs make const_err a future incompat lint 2021-02-03 15:45:43 +01:00
const-len-underflow-separate-spans.stderr make const_err a future incompat lint 2021-02-03 15:45:43 +01:00
const-len-underflow-subspans.rs Make invalid integer operation messages consistent 2020-09-26 13:34:49 +01:00
const-len-underflow-subspans.stderr Make invalid integer operation messages consistent 2020-09-26 13:34:49 +01:00
const-match-check.eval1.stderr Do not suggest let_else if no bindings would be introduced 2022-03-08 17:20:05 +00:00
const-match-check.eval2.stderr Do not suggest let_else if no bindings would be introduced 2022-03-08 17:20:05 +00:00
const-match-check.matchck.stderr Do not suggest let_else if no bindings would be introduced 2022-03-08 17:20:05 +00:00
const-match-check.rs Remove licenses 2018-12-25 21:08:33 -07:00
const-match-pattern-arm.rs Update tests 2020-06-28 10:08:10 -07:00
const-meth-pattern.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-multi-ref.rs Allow references to interior mutable data behind a feature gate 2021-01-01 16:59:12 +00:00
const-multi-ref.stderr Permit mutable references in all const contexts 2021-01-23 11:33:45 +00:00
const-needs_drop-monomorphic.rs feature(const_generics) -> feature(const_param_types) 2021-08-30 11:00:21 +02:00
const-needs_drop-monomorphic.stderr feature(const_generics) -> feature(const_param_types) 2021-08-30 11:00:21 +02:00
const-needs_drop.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-negation.rs Update tests to remove old numeric constants 2020-11-29 00:55:55 -05:00
const-negative.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-nullary-enum.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-nullary-univariant-enum.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-pattern-irrefutable.rs Show the values and computation that would overflow a const evaluation or propagation 2020-06-26 10:08:52 +02:00
const-pattern-irrefutable.stderr Show the values and computation that would overflow a const evaluation or propagation 2020-06-26 10:08:52 +02:00
const-pattern-not-const-evaluable.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
const-pattern-variant.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-points-to-static.32bit.stderr adjust tests 2021-07-14 18:17:49 +02:00
const-points-to-static.64bit.stderr adjust tests 2021-07-14 18:17:49 +02:00
const-points-to-static.rs get rid of a bunch of unnecessary NOTE in const tests 2021-05-15 15:10:14 +02:00
const-prop-ice.rs fix tests, and use variants to test debug and release builds together 2020-02-15 10:47:27 +01:00
const-prop-ice.stderr Make invalid integer operation messages consistent 2020-09-26 13:34:49 +01:00
const-prop-ice2.rs fix tests, and use variants to test debug and release builds together 2020-02-15 10:47:27 +01:00
const-prop-ice2.stderr Make invalid integer operation messages consistent 2020-09-26 13:34:49 +01:00
const-prop-ice3.rs Check const-propagation of borrows of unsized places 2019-12-18 20:09:11 +00:00
const-prop-overflowing-casts.rs Revert const_err lint checking of casts 2020-01-02 21:21:02 -05:00
const-prop-read-static-in-const.rs make const_err a future incompat lint 2021-02-03 15:45:43 +01:00
const-prop-read-static-in-const.stderr make const_err a future incompat lint 2021-02-03 15:45:43 +01:00
const-ptr-nonnull-rpass.rs tests: Move run-pass tests with naming conflicts to ui 2019-07-27 18:56:17 +03:00
const-ptr-nonnull.rs update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
const-ptr-nonnull.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
const-ptr-unique-rpass.rs rename-unique: Rename Unique::empty() to Unique::dangling() 2020-04-30 11:00:45 +02:00
const-ptr-unique.rs update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
const-ptr-unique.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
const-rec-and-tup.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-region-ptrs-noncopy.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-region-ptrs.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-repeated-values.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-size_of-align_of.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-size_of-cycle.rs tests: remove ignore directives from tests that mention core/alloc/std spans. 2020-04-02 11:48:34 +03:00
const-size_of-cycle.stderr Morph layout_raw query into layout_of. 2021-08-24 22:04:27 +03:00
const-size_of_val-align_of_val-extern-type.rs make const_err a future incompat lint 2021-02-03 15:45:43 +01:00
const-size_of_val-align_of_val-extern-type.stderr make const_err a future incompat lint 2021-02-03 15:45:43 +01:00
const-size_of_val-align_of_val.rs test const size_of_val_raw on big value 2022-03-31 08:57:45 -04:00
const-slice-oob.rs make const_err a future incompat lint 2021-02-03 15:45:43 +01:00
const-slice-oob.stderr make const_err a future incompat lint 2021-02-03 15:45:43 +01:00
const-struct-offsets.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-struct.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-suggest-feature.rs Stabilize const_raw_ptr_deref for *const T 2021-11-06 17:05:15 -04:00
const-suggest-feature.stderr Stabilize const_raw_ptr_deref for *const T 2021-11-06 17:05:15 -04:00
const-trait-to-trait.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-try-feature-gate.rs Add feature gates for for and ? in consts 2021-07-29 23:21:54 +02:00
const-try-feature-gate.stderr Update tests 2021-07-29 23:21:54 +02:00
const-try.rs Add feature gates for for and ? in consts 2021-07-29 23:21:54 +02:00
const-tup-index-span.rs normalization change and rebase 2022-03-09 11:33:11 +01:00
const-tup-index-span.stderr normalization change and rebase 2022-03-09 11:33:11 +01:00
const-tuple-struct.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-type-mismatch.rs Remove licenses 2018-12-25 21:08:33 -07:00
const-type-mismatch.stderr Surround types with backticks in type errors 2019-11-18 11:03:04 -08:00
const-typeid-of-rpass.rs revert const_type_id stabilization 2020-09-23 09:40:51 +10:00
const-unit-struct.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-unsafe-fn.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-unsized.rs Update ui test suite to use dyn 2019-05-29 00:57:31 -04:00
const-unsized.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
const-unwrap.rs Use #[track_caller] in const panic diagnostics. 2021-07-09 15:23:27 +02:00
const-unwrap.stderr Use #[track_caller] in const panic diagnostics. 2021-07-09 15:23:27 +02:00
const-validation-fail-55455.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
const-variant-count.rs Add enum_intrinsics_non_enums lint 2021-10-11 09:46:27 +02:00
const-vec-of-fns.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-vec-syntax.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const-vecs-and-slices.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
const_discriminant.rs expand comment 2021-11-14 19:03:32 -05:00
const_fn_floating_point_arithmetic.gated.stderr Move const fn floating point test out of min_const_fn 2020-09-25 10:39:09 -07:00
const_fn_floating_point_arithmetic.rs Move const fn floating point test out of min_const_fn 2020-09-25 10:39:09 -07:00
const_fn_floating_point_arithmetic.stock.stderr Use proper issue for const_fn_floating_point_arithmetic 2020-09-25 10:39:11 -07:00
const_fn_return_nested_fn_ptr.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
const_fn_unsize.rs const_fn_unsize: check that the cast behaves correctly 2021-05-22 10:35:53 +02:00
const_forget.rs stabilize const mem::forget 2020-06-30 11:34:27 +02:00
const_let_assign.rs use check-pass instead of build-pass in consts ui test suits 2020-11-10 21:34:05 +09:00
const_let_assign2.rs use check-pass instead of build-pass in consts ui test suits 2020-11-10 21:34:05 +09:00
const_let_assign3.rs remove const_fn feature gate from const tests 2021-04-29 09:27:45 +02:00
const_let_assign3.stderr Use larger span for adjustments on method calls 2021-09-25 10:00:41 -05:00
const_let_eq.rs encode ; stmt w/o expr as StmtKind::Empty 2020-03-01 23:02:17 +01:00
const_let_eq_float.rs Bless tests 2020-09-25 10:38:23 -07:00
const_let_irrefutable.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
const_let_promote.rs Add test for promotability in let 2019-11-06 07:09:16 -08:00
const_let_refutable.rs Update tests 2020-06-28 10:08:10 -07:00
const_let_refutable.stderr Update tests 2020-06-28 10:08:10 -07:00
const_prop_slice_pat_ice.rs slice_patterns: remove gates in tests 2020-01-18 19:33:47 +01:00
const_short_circuit.rs Update tests 2020-06-28 10:08:10 -07:00
const_unsafe_unreachable.rs Stabilize unreachable_unchecked as const fn 2021-10-04 01:04:17 -04:00
const_unsafe_unreachable_ub.rs Stabilize unreachable_unchecked as const fn 2021-10-04 01:04:17 -04:00
const_unsafe_unreachable_ub.stderr Stabilize unreachable_unchecked as const fn 2021-10-04 01:04:17 -04:00
consts-in-patterns.rs Implement destructuring for all aggregates and for references 2020-09-20 13:28:18 +02:00
copy-intrinsic.rs stabilize const_ptr_offset 2022-02-13 15:26:14 +08:00
copy-intrinsic.stderr tweak pointer out-of-bounds error message 2021-07-15 22:47:11 +02:00
dangling-alloc-id-ice.rs update dangling-alloc-id-ice test 2020-11-05 13:24:21 +05:30
dangling-alloc-id-ice.stderr update dangling-alloc-id-ice test 2020-11-05 13:24:21 +05:30
dangling_raw_ptr.rs avoid raising interpreter errors from interning 2020-05-10 11:47:20 +02:00
dangling_raw_ptr.stderr avoid raising interpreter errors from interning 2020-05-10 11:47:20 +02:00
deref_in_pattern.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
drop_box.rs Revert accidental stabilization 2022-03-10 14:36:51 +00:00
drop_box.stderr Revert accidental stabilization 2022-03-10 14:36:51 +00:00
drop_none.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
drop_zst.rs Add regression test for #90770 2021-12-01 10:04:21 -08:00
drop_zst.stderr Add regression test for #90770 2021-12-01 10:04:21 -08:00
enum-discr-type-err.rs Update tests 2020-01-09 21:23:12 +03:00
enum-discr-type-err.stderr Show macro name in 'this error originates in macro' message 2021-05-12 19:03:06 -04:00
eval-enum.rs Move some tests to more reasonable directories 2021-11-14 14:38:42 -03:00
eval-enum.stderr Move some tests to more reasonable directories 2021-11-14 14:38:42 -03:00
huge-values.rs Add tests 2020-01-15 10:30:26 +01:00
ice-48279.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
ice-zst-static-access.rs Name test appropriately and link to the issues it regress-checks for 2020-05-01 17:45:10 +02:00
inline_asm.rs Stabilize asm! and global_asm! 2021-12-12 11:20:03 +00:00
inline_asm.stderr Restrict tests that use needs-asm-support to non-experimental 2021-11-07 03:44:42 +00:00
int_ptr_for_zst_slices.rs Stabilize const_raw_ptr_deref for *const T 2021-11-06 17:05:15 -04:00
intrinsic_without_const_stab.rs bless you 2022-02-12 19:24:41 +11:00
intrinsic_without_const_stab.stderr bless you 2022-02-12 19:24:41 +11:00
intrinsic_without_const_stab_fail.rs bless you 2022-02-12 19:24:41 +11:00
intrinsic_without_const_stab_fail.stderr bless you 2022-02-12 19:24:41 +11:00
invalid-union.32bit.stderr Refactor call terminator to always hold a destination place 2022-05-23 17:49:04 -04:00
invalid-union.64bit.stderr Refactor call terminator to always hold a destination place 2022-05-23 17:49:04 -04:00
invalid-union.rs stabilize const_ptr_offset 2022-02-13 15:26:14 +08:00
invalid_promotion.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
issue-3521.fixed Move some tests to more suitable subdirs 2021-03-06 18:24:53 +09:00
issue-3521.rs Move some tests to more suitable subdirs 2021-03-06 18:24:53 +09:00
issue-3521.stderr Move some tests to more suitable subdirs 2021-03-06 18:24:53 +09:00
issue-6991.rs Move some tests to more reasonable directories - 2 2021-01-16 19:46:54 -03:00
issue-13837.rs Move some tests to more reasonable directories 2021-02-16 21:22:21 -03:00
issue-13902.rs Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-17074.rs Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-17458.rs remove const_raw_ptr_to_usize_cast feature 2021-07-10 12:08:58 +02:00
issue-17458.stderr Practice diagnostic message convention 2021-10-03 16:16:28 +09:00
issue-17718-borrow-interior.rs Move some tests to more reasonable directories - 2 2021-01-16 19:46:54 -03:00
issue-17718-const-bad-values.rs Permit mutable references in all const contexts 2021-01-23 11:33:45 +00:00
issue-17718-const-bad-values.stderr Adjust wording of a diagnostic 2021-01-23 11:33:45 +00:00
issue-17718-const-borrow.rs Move some tests to more reasonable directories - 2 2021-01-16 19:46:54 -03:00
issue-17718-const-borrow.stderr Move some tests to more reasonable directories - 2 2021-01-16 19:46:54 -03:00
issue-17718-references.rs Move some tests to more reasonable directories 2021-02-16 21:22:21 -03:00
issue-17718-references.stderr Move some tests to more reasonable directories 2021-02-16 21:22:21 -03:00
issue-17718.rs Move some tests to more suitable subdirs 2021-03-06 18:24:53 +09:00
issue-17756.rs Move some UI tests to more suitable subdirs 2021-06-30 06:41:10 +09:00
issue-18294.rs Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-18294.stderr Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-19244.rs Move some tests to more reasonable places 2022-04-26 23:38:04 -03:00
issue-21562.rs Move some tests to more reasonable directories - 2 2021-01-16 19:46:54 -03:00
issue-21721.rs Move some tests to more reasonable directories - 2 2021-01-16 19:46:54 -03:00
issue-23833.rs Move some tests to more reasonable directories 2021-09-15 14:03:27 -03:00
issue-23968-const-not-overflow.rs Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-25826.rs Move some tests to more reasonable directories 2021-01-31 19:46:46 -03:00
issue-25826.stderr Practice diagnostic message convention 2021-10-03 16:16:28 +09:00
issue-27890.rs Move some tests to more reasonable directories - 2 2021-01-16 19:46:54 -03:00
issue-28113.rs Handle Fn family trait call errror 2022-02-12 19:24:43 +11:00
issue-28113.stderr Handle Fn family trait call errror 2022-02-12 19:24:43 +11:00
issue-29914-2.rs Move some tests to more reasonable directories - 2 2021-01-16 19:46:54 -03:00
issue-29914-3.rs Move some tests to more reasonable directories - 2 2021-01-16 19:46:54 -03:00
issue-29914.rs Move some tests to more reasonable directories - 2 2021-01-16 19:46:54 -03:00
issue-29927-1.rs Move some tests to more reasonable directories - 2 2021-01-16 19:46:54 -03:00
issue-29927.rs Move some tests to more reasonable directories - 2 2021-01-16 19:46:54 -03:00
issue-32829-2.rs bless you 2022-02-12 19:24:41 +11:00
issue-32829-2.stderr bless you 2022-02-12 19:24:41 +11:00
issue-32829.rs Stabilize const_panic 2021-10-04 02:33:33 -04:00
issue-32829.stderr Bless tests 2021-10-15 02:36:58 -05:00
issue-33537.rs Move some tests to more reasonable directories 2021-02-16 21:22:21 -03:00
issue-34784.rs Move some tests to more reasonable directories 2021-09-15 14:03:27 -03:00
issue-36163.rs Move some tests to more reasonable directories - 2 2021-01-16 19:46:54 -03:00
issue-36163.stderr normalization change and rebase 2022-03-09 11:33:11 +01:00
issue-37222.rs Move some UI tests to more suitable subdirs 2021-08-10 13:34:05 +09:00
issue-37550-1.rs Update tests after feature stabilization 2022-03-07 08:47:18 -08:00
issue-37550.rs Update tests after feature stabilization 2022-03-07 08:47:18 -08:00
issue-37991.rs Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-39161-bogus-error.rs add regression test for issue #39161 2021-06-16 14:05:36 -07:00
issue-43105.rs bless you 2022-02-12 19:24:41 +11:00
issue-43105.stderr bless you 2022-02-12 19:24:41 +11:00
issue-44415.rs Remove compile-fail test suite 2020-12-29 23:39:56 +03:00
issue-44415.stderr Morph layout_raw query into layout_of. 2021-08-24 22:04:27 +03:00
issue-46553.rs Update tests after feature stabilization 2022-03-07 08:47:18 -08:00
issue-47789.rs Move some tests to more reasonable directories - 2 2021-01-16 19:46:54 -03:00
issue-52023-array-size-pointer-cast.rs remove const_raw_ptr_to_usize_cast feature 2021-07-10 12:08:58 +02:00
issue-52023-array-size-pointer-cast.stderr Practice diagnostic message convention 2021-10-03 16:16:28 +09:00
issue-52060.rs Move some tests to more reasonable directories - 5 2021-03-20 11:41:24 -03:00
issue-52060.stderr Move some tests to more reasonable directories - 5 2021-03-20 11:41:24 -03:00
issue-54224.rs Remove feature(nll) when compare mode is sufficient 2019-05-12 18:46:43 +01:00
issue-54224.stderr Remove feature(nll) when compare mode is sufficient 2019-05-12 18:46:43 +01:00
issue-54348.rs Move some tests to more reasonable directories 2021-01-31 19:46:46 -03:00
issue-54348.stderr Move some tests to more reasonable directories 2021-01-31 19:46:46 -03:00
issue-54387.rs Move some tests to more reasonable places 2022-05-28 18:38:34 -03:00
issue-56164.rs separate const prop lint from optimizations 2022-03-23 16:50:41 +00:00
issue-56164.stderr Update function pointer call error message 2022-05-17 04:13:20 +00:00
issue-58435-ice-with-assoc-const.rs Move some tests to more reasonable directories - 2 2021-01-16 19:46:54 -03:00
issue-62045.rs Use check-pass in ui tests where appropriate 2019-11-04 16:03:46 +01:00
issue-63226.rs Adjust regression test 2019-08-15 16:59:03 +09:00
issue-63952.32bit.stderr adjust tests 2021-07-14 18:17:49 +02:00
issue-63952.64bit.stderr adjust tests 2021-07-14 18:17:49 +02:00
issue-63952.rs Rename stderr->64bit.stderr where needed. 2021-03-31 08:23:11 +00:00
issue-64059.rs avoid excessive number of revisions 2020-02-19 11:25:41 +01:00
issue-64506.rs Move test next to likeminded ones 2019-10-09 19:09:08 +02:00
issue-64662.rs Add test for issue-64662 2019-10-01 00:40:42 +09:00
issue-64662.stderr add new emit_inference_failure_err 2022-06-02 10:19:15 +02:00
issue-65348.rs Add regression test for #65348 2019-10-13 16:00:49 -07:00
issue-66342.rs Only run tests on x86_64 2019-11-16 13:01:12 -05:00
issue-66345.rs Bump mir-opt-level from 3 to 4 in tests 2021-03-05 17:13:57 -03:00
issue-66397.rs Only run tests on x86_64 2019-11-16 13:01:12 -05:00
issue-66693-panic-in-array-len.rs Stabilize const_panic 2021-10-04 02:33:33 -04:00
issue-66693-panic-in-array-len.stderr Stabilize const_panic 2021-10-04 02:33:33 -04:00
issue-66693.rs separate const prop lint from optimizations 2022-03-23 16:50:41 +00:00
issue-66693.stderr separate const prop lint from optimizations 2022-03-23 16:50:41 +00:00
issue-66787.rs [const-prop] Fix ICE calculating enum discriminant 2019-12-03 06:11:29 -05:00
issue-67529.rs Bump mir-opt-level from 2 to 3 in tests 2021-03-05 17:13:57 -03:00
issue-67640.rs Bump mir-opt-level from 3 to 4 in tests 2021-03-05 17:13:57 -03:00
issue-67641.rs Bump mir-opt-level from 2 to 3 in tests 2021-03-05 17:13:57 -03:00
issue-67696-const-prop-ice.rs Add additional regression test 2020-01-13 05:00:55 -05:00
issue-67862.rs Bump mir-opt-level from 2 to 3 in tests 2021-03-05 17:13:57 -03:00
issue-68264-overflow.rs Add @weiznich's regression test 2020-01-17 08:22:40 -05:00
issue-68542-closure-in-array-len.rs Handle Fn family trait call errror 2022-02-12 19:24:43 +11:00
issue-68542-closure-in-array-len.stderr Handle Fn family trait call errror 2022-02-12 19:24:43 +11:00
issue-68684.rs Check has_typeck_tables before calling typeck_tables_of 2020-02-14 21:49:57 +09:00
issue-69191-ice-on-uninhabited-enum-field.rs Added oli's multivariant test case (alpha renaming the enum name itself). 2020-03-06 06:46:37 -05:00
issue-69310-array-size-lit-wrong-ty.rs Remove leftover mentions of from_anon_const 2020-03-23 22:24:31 +01:00
issue-69310-array-size-lit-wrong-ty.stderr lit_to_const: gracefully bubble up type errors. 2020-02-20 23:43:16 +01:00
issue-69312.rs Add test for #69312 2020-02-20 21:25:19 -05:00
issue-69488.rs mir-interpret now treats unions as non-immediate, even if they have scalar layout, allowing partially initializing them 2022-04-05 13:18:22 +00:00
issue-69532.rs Update tests 2021-07-27 16:26:50 -04:00
issue-70773-mir-typeck-lt-norm.rs normalize field projection ty to fix broken MIR issue 2020-04-23 18:14:01 -03:00
issue-70942-trait-vs-impl-mismatch.rs Detect mistyped associated consts in Instance::resolve. 2020-04-18 18:39:59 +03:00
issue-70942-trait-vs-impl-mismatch.stderr Tweak assoc type obligation spans 2021-12-11 02:32:15 +00:00
issue-73976-monomorphic.rs revert const_type_id stabilization 2020-09-23 09:40:51 +10:00
issue-73976-polymorphic.rs revert const_type_id stabilization 2020-09-23 09:40:51 +10:00
issue-73976-polymorphic.stderr revert const_type_id stabilization 2020-09-23 09:40:51 +10:00
issue-76064.rs Stabilize const_panic 2021-10-04 02:33:33 -04:00
issue-76064.stderr Stabilize const_panic 2021-10-04 02:33:33 -04:00
issue-77062-large-zst-array.rs Add test case for #77062 2020-10-20 21:51:55 -04:00
issue-78655.rs fix tests, add new tests checking borrowck CFTE ICE 2022-02-11 12:45:51 -08:00
issue-78655.stderr fix tests, add new tests checking borrowck CFTE ICE 2022-02-11 12:45:51 -08:00
issue-79137-monomorphic.rs Exhaustively match in variant count instrinsic 2020-11-20 21:49:49 +08:00
issue-79137-toogeneric.rs Fix comments of toogeneris test 2020-11-21 13:47:09 +08:00
issue-79137-toogeneric.stderr Fix comments of toogeneris test 2020-11-21 13:47:09 +08:00
issue-79152-const-array-index.rs Resolve inference variables before trying to remove overloaded indexing 2020-11-25 18:41:10 -05:00
issue-79690.64bit.stderr adjust tests 2021-07-14 18:17:49 +02:00
issue-79690.rs Rename stderr->64bit.stderr where needed. 2021-03-31 08:23:11 +00:00
issue-83182.32bit.stderr adjust tests 2021-07-14 18:17:49 +02:00
issue-83182.64bit.stderr adjust tests 2021-07-14 18:17:49 +02:00
issue-83182.rs update tests involving CTFE validation 2021-06-13 23:26:06 +02:00
issue-87046.rs Cleanup feature gates. 2022-03-03 18:50:28 +01:00
issue-87046.stderr Cleanup feature gates. 2022-03-03 18:50:28 +01:00
issue-88071.rs Update tests after feature stabilization 2022-03-07 08:47:18 -08:00
issue-88649.rs Add a regression test for https://github.com/rust-lang/rust/issues/88649 2021-09-06 23:58:10 +08:00
issue-89088.rs Fix ICE when indirect_structural_match is allowed 2021-09-20 21:25:44 +02:00
issue-90762.rs Generate an intermediate temporary for Drop constants. 2022-05-04 09:09:52 +00:00
issue-90870.fixed Rebased and improved errors 2022-02-12 19:24:42 +11:00
issue-90870.rs Rebased and improved errors 2022-02-12 19:24:42 +11:00
issue-90870.stderr Rebased and improved errors 2022-02-12 19:24:42 +11:00
issue-90878-2.rs Overhaul MacArgs::Eq. 2022-05-05 07:06:12 +10:00
issue-90878-2.stderr Overhaul MacArgs::Eq. 2022-05-05 07:06:12 +10:00
issue-90878-3.rs Add a test with a leading newline for ICE #90878 2021-11-17 22:24:42 +01:00
issue-90878-3.stderr Add a test with a leading newline for ICE #90878 2021-11-17 22:24:42 +01:00
issue-90878.rs Fix non-constant value ICE (#90878) 2021-11-15 20:40:29 +01:00
issue-90878.stderr Fix non-constant value ICE (#90878) 2021-11-15 20:40:29 +01:00
issue-91434.rs trait selection errors should poison the typeck results, too, so that const eval can avoid running at all 2022-05-24 15:37:33 +00:00
issue-91434.stderr trait selection errors should poison the typeck results, too, so that const eval can avoid running at all 2022-05-24 15:37:33 +00:00
issue-91560.fixed Make span_extend_to_prev_str() more robust 2022-01-31 19:28:15 +01:00
issue-91560.rs Make span_extend_to_prev_str() more robust 2022-01-31 19:28:15 +01:00
issue-91560.stderr Make span_extend_to_prev_str() more robust 2022-01-31 19:28:15 +01:00
issue-94371.rs mir-interpret now treats unions as non-immediate, even if they have scalar layout, allowing partially initializing them 2022-04-05 13:18:22 +00:00
issue-94675.rs use impl substs in on_unimplemented 2022-03-06 18:44:01 -08:00
issue-94675.stderr use impl substs in on_unimplemented 2022-03-06 18:44:01 -08:00
issue-broken-mir.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
issue-miri-1910.rs stabilize const_ptr_offset 2022-02-13 15:26:14 +08:00
issue-miri-1910.stderr update stderr messages 2022-02-13 17:30:10 +08:00
large_const_alloc.rs Test memory exhaustion in const evaluation 2021-06-29 19:08:30 -04:00
large_const_alloc.stderr Test memory exhaustion in const evaluation 2021-06-29 19:08:30 -04:00
locals-in-const-fn.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
match-const-fn-structs.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
match_ice.rs Make sure we keep emitting a hard error 2020-09-23 18:36:53 +02:00
match_ice.stderr Make sure we keep emitting a hard error 2020-09-23 18:36:53 +02:00
mir_check_nonconst.rs bless you 2022-02-12 19:24:41 +11:00
mir_check_nonconst.stderr bless you 2022-02-12 19:24:41 +11:00
mozjs-error.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
nested_erroneous_ctfe.rs trait selection errors should poison the typeck results, too, so that const eval can avoid running at all 2022-05-24 15:37:33 +00:00
nested_erroneous_ctfe.stderr trait selection errors should poison the typeck results, too, so that const eval can avoid running at all 2022-05-24 15:37:33 +00:00
non-const-value-in-const.rs Fix non-constant value ICE (#90878) 2021-11-15 20:40:29 +01:00
non-const-value-in-const.stderr Fix non-constant value ICE (#90878) 2021-11-15 20:40:29 +01:00
non-scalar-cast.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
offset.rs stabilize const_ptr_offset 2022-02-13 15:26:14 +08:00
offset_from.rs Apply CR suggestions; add real tracking issue 2022-05-11 17:16:25 -07:00
offset_from_ub.rs Add unsigned_offset_from on pointers 2022-05-11 17:16:25 -07:00
offset_from_ub.stderr Add unsigned_offset_from on pointers 2022-05-11 17:16:25 -07:00
offset_ub.rs stabilize const_ptr_offset 2022-02-13 15:26:14 +08:00
offset_ub.stderr interpret/memory: simplify check_and_deref_ptr 2022-03-22 20:19:30 -04:00
packed_pattern.rs Make error and warning annotations mandatory in UI tests 2019-11-10 21:01:02 +01:00
packed_pattern.stderr rustc: Add a warning count upon completion 2020-04-11 16:15:24 +02:00
packed_pattern2.rs Make error and warning annotations mandatory in UI tests 2019-11-10 21:01:02 +01:00
packed_pattern2.stderr rustc: Add a warning count upon completion 2020-04-11 16:15:24 +02:00
partial_qualif.rs Refactor the non-transient cell borrow error diagnostic 2021-01-03 14:46:49 +00:00
partial_qualif.stderr Refactor the non-transient cell borrow error diagnostic 2021-01-03 14:46:49 +00:00
precise-drop-with-coverage.rs Fix switch on discriminant detection in a presence of coverage counters 2022-02-10 19:43:24 +01:00
precise-drop-with-promoted.rs Fix const qualification when executed after promotion 2021-10-19 00:00:00 +00:00
promote-not.rs Test that promotion follows references when looking for drop 2021-10-31 18:33:29 +01:00
promote-not.stderr Test that promotion follows references when looking for drop 2021-10-31 18:33:29 +01:00
promote_borrowed_field.rs Test that borrows of projections are promoted everywhere 2019-11-03 12:24:35 -08:00
promote_const_let.rs update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
promote_const_let.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
promote_evaluation_unused_result.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
promote_fn_calls.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
promote_fn_calls_std.rs Update tests to remove old numeric constants 2020-11-29 00:55:55 -05:00
promoted-const-drop.rs Do not promote values with const drop that need to be dropped 2021-10-18 21:56:57 +02:00
promoted-const-drop.stderr Do not promote values with const drop that need to be dropped 2021-10-18 21:56:57 +02:00
promoted-storage.rs Reset qualifs when a storage of a local ends 2021-10-23 09:26:22 +02:00
promoted-validation-55454.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
promoted_regression.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
promotion-mutable-ref.rs add compile-fail test for &mut promotion 2020-09-06 14:14:31 +02:00
promotion.rs Remove line instead of just commenting out 2022-03-23 16:50:42 +00:00
ptr_comparisons.rs stabilize const_ptr_offset 2022-02-13 15:26:14 +08:00
ptr_comparisons.stderr interpret: better control over whether we read data with provenance, and implicit provenance stripping where possible 2022-06-05 10:13:34 -04:00
ptr_is_null.rs Stabilize const_panic 2021-10-04 02:33:33 -04:00
qualif-indirect-mutation-fail.rs addr_of! grants mutable access, maybe? 2021-11-03 16:43:12 +01:00
qualif-indirect-mutation-fail.stderr addr_of! grants mutable access, maybe? 2021-11-03 16:43:12 +01:00
qualif-indirect-mutation-pass.rs addr_of! grants mutable access, maybe? 2021-11-03 16:43:12 +01:00
qualif-union.rs Use type based qualification for unions 2021-10-28 00:00:00 +00:00
qualif-union.stderr Use type based qualification for unions 2021-10-28 00:00:00 +00:00
qualif_overwrite.rs Refactor the non-transient cell borrow error diagnostic 2021-01-03 14:46:49 +00:00
qualif_overwrite.stderr Refactor the non-transient cell borrow error diagnostic 2021-01-03 14:46:49 +00:00
qualif_overwrite_2.rs Refactor the non-transient cell borrow error diagnostic 2021-01-03 14:46:49 +00:00
qualif_overwrite_2.stderr Refactor the non-transient cell borrow error diagnostic 2021-01-03 14:46:49 +00:00
raw-ptr-const.rs Miri interning: replace ICEs by proper errors, make intern_shallow type signature more precise 2020-05-10 11:45:43 +02:00
raw-ptr-const.stderr Miri interning: replace ICEs by proper errors, make intern_shallow type signature more precise 2020-05-10 11:45:43 +02:00
raw_pointer_promoted.rs Promoteds can contain raw pointers, but these must still only point to immutable allocations 2020-01-15 10:48:22 +01:00
recursive-zst-static.default.stderr Address review comments 2020-09-19 10:36:36 +02:00
recursive-zst-static.rs Address review comments 2020-09-19 10:36:36 +02:00
recursive-zst-static.unleash.stderr Address review comments 2020-09-19 10:36:36 +02:00
recursive.rs Deduplicate lines in long const-eval stack trace 2022-01-11 18:13:53 -08:00
recursive.stderr Deduplicate lines in long const-eval stack trace 2022-01-11 18:13:53 -08:00
references.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
refs_check_const_eq-issue-88384.rs add case for checking const refs in check_const_value_eq 2021-09-21 15:49:29 +02:00
refs_check_const_eq-issue-88384.stderr move adt_const_params to its own tracking issue 2022-03-21 16:33:42 +01:00
refs_check_const_value_eq-issue-88876.rs add case for checking const refs in check_const_value_eq 2021-09-21 15:49:29 +02:00
repeat_match.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
return-in-const-fn.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
rustc-const-stability-require-const.rs fn must be const if marked with stability attribut 2021-07-08 07:52:05 +02:00
rustc-const-stability-require-const.stderr fn must be const if marked with stability attribut 2021-07-08 07:52:05 +02:00
rustc-impl-const-stability.rs Proper const stability check, default to unstable 2022-05-19 12:21:45 +00:00
rvalue-static-promotion.rs Move some tests to more reasonable directories 2021-02-16 21:22:21 -03:00
self_normalization.rs Update to new passing-ui-test scheme 2019-08-05 17:48:05 +02:00
self_normalization2.rs Update to new passing-ui-test scheme 2019-08-05 17:48:05 +02:00
signed_enum_discr.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
stable-precise-live-drops-in-libcore.rs remove const_fn feature gate from const tests 2021-04-29 09:27:45 +02:00
stable-precise-live-drops-in-libcore.stderr Test that const_precise_live_drops can't be depended upon stably 2020-09-16 14:17:51 -07:00
static-cycle-error.rs Don't access a static just for its size and alignment 2019-07-25 19:29:48 +02:00
static-raw-pointer-interning.rs Make interning explicitly care about types and the mutability of memory 2019-06-19 09:52:35 +02:00
static-raw-pointer-interning2.rs Make interning explicitly care about types and the mutability of memory 2019-06-19 09:52:35 +02:00
static_mut_containing_mut_ref.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
static_mut_containing_mut_ref2.mut_refs.stderr Permit mutable references in all const contexts 2021-01-23 11:33:45 +00:00
static_mut_containing_mut_ref2.rs Permit mutable references in all const contexts 2021-01-23 11:33:45 +00:00
static_mut_containing_mut_ref2.stock.stderr Permit mutable references in all const contexts 2021-01-23 11:33:45 +00:00
static_mut_containing_mut_ref3.rs Stabilize let bindings and destructuring in constants and const fn 2019-01-09 10:20:12 +01:00
static_mut_containing_mut_ref3.stderr bless; add test for mutating a static 2020-03-24 08:27:46 +01:00
too_generic_eval_ice.rs Remove the usage of the LengthAtMost32 trait 2020-07-05 15:47:08 +03:00
too_generic_eval_ice.stderr Refer to the TraitRef::identity in the message to be clearer 2022-04-04 21:06:35 +00:00
trait_specialization.rs Bump mir-opt-level from 2 to 3 in tests 2021-03-05 17:13:57 -03:00
trait_specialization.stderr Suggest minimal subset features in incomplete_features lint 2020-10-17 02:01:08 +09:00
transmute-const.rs Stabilize transmute in constants and statics but not const fn 2020-07-11 09:22:17 +02:00
transmute-size-mismatch-before-typeck.rs Add the transmute and asm checks to typeck as deferred checks 2022-05-24 16:28:57 +00:00
transmute-size-mismatch-before-typeck.stderr Add the transmute and asm checks to typeck as deferred checks 2022-05-24 16:28:57 +00:00
try-operator.rs Revert "Auto merge of #89450 - usbalbin:const_try_revert, r=oli-obk" 2021-12-12 12:34:59 +08:00
tuple-struct-constructors.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
underscore_const_names.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
uninhabited-const-issue-61744.rs make const_err a future incompat lint 2021-02-03 15:45:43 +01:00
uninhabited-const-issue-61744.stderr make const_err a future incompat lint 2021-02-03 15:45:43 +01:00
union_constant.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
unstable-const-fn-in-libcore.rs Update tests after feature stabilization 2022-03-07 08:47:18 -08:00
unstable-const-fn-in-libcore.stderr Update tests 2022-03-07 08:47:18 -08:00
unstable-precise-live-drops-in-libcore.rs Test that const_precise_live_drops can't be depended upon stably 2020-09-16 14:17:51 -07:00
unwind-abort.rs Stabilize const_panic 2021-10-04 02:33:33 -04:00
validate_never_arrays.32bit.stderr bless 32bit 2022-05-17 19:05:14 +02:00
validate_never_arrays.64bit.stderr interpret/validity: reject references to uninhabited types 2022-05-17 17:32:36 +02:00
validate_never_arrays.rs Stabilize const_raw_ptr_deref for *const T 2021-11-06 17:05:15 -04:00
write-to-static-mut-in-static.rs Move some tests to more reasonable directories 2021-02-16 21:22:21 -03:00
write-to-static-mut-in-static.stderr Move some tests to more reasonable directories 2021-02-16 21:22:21 -03:00
write_to_mut_ref_dest.rs Stabilize const_raw_ptr_deref for *const T 2021-11-06 17:05:15 -04:00
write_to_mut_ref_dest.stock.stderr Stabilize const_raw_ptr_deref for *const T 2021-11-06 17:05:15 -04:00
write_to_static_via_mut_ref.rs Rename tests to what their code actually does 2021-01-23 11:33:45 +00:00
write_to_static_via_mut_ref.stderr Adjust wording of a diagnostic 2021-01-23 11:33:45 +00:00
zst_no_llvm_alloc.rs Promote Refs to constants instead of static 2020-01-10 09:08:24 +01:00