1
Fork 0
rust/tests/ui/rfcs/rfc-2632-const-trait-impl
bors d78329b92e Auto merge of #119088 - George-lewis:glewis/suggest-upgrading-compiler, r=Nilstrieb
Suggest Upgrading Compiler for Gated Features

This PR addresses #117318

I have a few questions:

1. Do we want to specify the current version and release date of the compiler? I have added this in via environment variables, which I found in the code for the rustc cli where it handles the `--version` flag
  a. How can I handle the changing message in the tests?
3. Do we want to only show this message when the compiler is old?
  a. How can we determine when the compiler is old?

I'll wait until we figure out the message to bless the tests
2024-01-13 20:06:03 +00:00
..
auxiliary bless tests 2023-08-06 13:34:53 +00:00
const_derives Bless tests 2024-01-13 12:46:58 -05:00
effects Bless tests 2024-01-13 12:46:58 -05:00
specialization Show number in error message even for one error 2023-11-24 19:15:52 +01:00
assoc-type-const-bound-usage-0.qualified.stderr Allow ~const on assoc ty bounds again 2024-01-12 17:22:18 +01:00
assoc-type-const-bound-usage-0.rs Allow ~const on assoc ty bounds again 2024-01-12 17:22:18 +01:00
assoc-type-const-bound-usage-1.qualified.stderr Allow ~const on assoc ty bounds again 2024-01-12 17:22:18 +01:00
assoc-type-const-bound-usage-1.rs Allow ~const on assoc ty bounds again 2024-01-12 17:22:18 +01:00
assoc-type.rs Allow ~const on assoc ty bounds again 2024-01-12 17:22:18 +01:00
assoc-type.stderr Allow ~const on assoc ty bounds again 2024-01-12 17:22:18 +01:00
attr-misuse.rs
attr-misuse.stderr
call-const-trait-method-fail.rs bless tests 2023-08-06 13:34:53 +00:00
call-const-trait-method-fail.stderr Print constness in TraitPredPrintModifiersAndPath 2023-12-09 17:55:07 +00:00
call-const-trait-method-pass.rs
call-const-trait-method-pass.stderr bless ui tests 2023-12-19 04:28:21 +00:00
call-generic-in-impl.rs Restore const PartialEq 2023-12-10 09:30:07 +00:00
call-generic-method-chain.rs Restore const PartialEq 2023-12-10 09:30:07 +00:00
call-generic-method-dup-bound.rs Restore const PartialEq 2023-12-10 09:30:07 +00:00
call-generic-method-fail.rs Restore const PartialEq 2023-12-10 09:30:07 +00:00
call-generic-method-fail.stderr Restore const PartialEq 2023-12-10 09:30:07 +00:00
call-generic-method-nonconst-bound.rs
call-generic-method-nonconst.rs Pretty-print always-const trait predicates correctly 2024-01-01 14:02:42 +01:00
call-generic-method-nonconst.stderr Pretty-print always-const trait predicates correctly 2024-01-01 14:02:42 +01:00
call-generic-method-pass.rs Restore const PartialEq 2023-12-10 09:30:07 +00:00
call.rs bless ui tests 2023-12-19 04:28:21 +00:00
const-and-non-const-impl.rs
const-and-non-const-impl.stderr bless tests 2023-08-06 13:34:53 +00:00
const-bound-on-not-const-associated-fn.rs Deny more ~const trait bounds 2023-11-12 00:00:12 +01:00
const-bound-on-not-const-associated-fn.stderr Add Span to TraitBoundModifier 2023-11-24 14:32:05 +00:00
const-bounds-non-const-trait.rs Introduce const Trait (always-const trait bounds) 2023-12-27 12:51:32 +01:00
const-bounds-non-const-trait.stderr Introduce const Trait (always-const trait bounds) 2023-12-27 12:51:32 +01:00
const-check-fns-in-const-impl.rs bless tests 2023-08-06 13:34:53 +00:00
const-check-fns-in-const-impl.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
const-closure-parse-not-item.rs Enable effects for libcore 2023-09-20 03:02:14 +00:00
const-closure-parse-not-item.stderr Introduce const Trait (always-const trait bounds) 2023-12-27 12:51:32 +01:00
const-closure-trait-method-fail.rs
const-closure-trait-method-fail.stderr Introduce const Trait (always-const trait bounds) 2023-12-27 12:51:32 +01:00
const-closure-trait-method.rs Remove constness from TraitPredicate 2023-08-02 15:38:00 +00:00
const-closure-trait-method.stderr Introduce const Trait (always-const trait bounds) 2023-12-27 12:51:32 +01:00
const-closures.rs Remove constness from TraitPredicate 2023-08-02 15:38:00 +00:00
const-closures.stderr Introduce const Trait (always-const trait bounds) 2023-12-27 12:51:32 +01:00
const-default-method-bodies.rs bless tests 2023-08-06 13:34:53 +00:00
const-default-method-bodies.stderr Print constness in TraitPredPrintModifiersAndPath 2023-12-09 17:55:07 +00:00
const-drop-bound.rs
const-drop-bound.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
const-drop-fail-2.precise.stderr Introduce const Trait (always-const trait bounds) 2023-12-27 12:51:32 +01:00
const-drop-fail-2.rs bless tests 2023-08-06 13:34:53 +00:00
const-drop-fail-2.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
const-drop-fail-2.stock.stderr Introduce const Trait (always-const trait bounds) 2023-12-27 12:51:32 +01:00
const-drop-fail.precise.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
const-drop-fail.rs
const-drop-fail.stock.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
const-drop.precise.stderr Introduce const Trait (always-const trait bounds) 2023-12-27 12:51:32 +01:00
const-drop.rs Adjust compiler tests for unused_tuple_struct_fields -> dead_code 2024-01-02 15:34:37 -05:00
const-drop.stock.stderr Introduce const Trait (always-const trait bounds) 2023-12-27 12:51:32 +01:00
const-fns-are-early-bound.rs ~const trait or projection bounds do not imply non-const bounds 2024-01-08 15:01:14 +00:00
const-impl-norecover.rs
const-impl-norecover.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
const-impl-recovery.rs
const-impl-recovery.stderr
const-impl-requires-const-trait.rs bless tests 2023-08-06 13:34:53 +00:00
const-impl-requires-const-trait.stderr Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00
const-impl-trait.rs Remove logic in one_bound in astconv that prefers non-const bounds 2024-01-08 15:31:53 +00:00
const-impl-trait.stderr Remove logic in one_bound in astconv that prefers non-const bounds 2024-01-08 15:31:53 +00:00
const-trait-bounds-trait-objects.rs Don't synthesize host effect args inside trait object types 2024-01-03 09:25:27 +01:00
const-trait-bounds-trait-objects.stderr Don't synthesize host effect args inside trait object types 2024-01-03 09:25:27 +01:00
const-trait-bounds.rs Introduce const Trait (always-const trait bounds) 2023-12-27 12:51:32 +01:00
cross-crate-default-method-body-is-const.rs bless ui tests 2023-12-19 04:28:21 +00:00
cross-crate.gatednc.stderr Print constness in TraitPredPrintModifiersAndPath 2023-12-09 17:55:07 +00:00
cross-crate.rs bless tests 2023-08-06 13:34:53 +00:00
cross-crate.stock.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
cross-crate.stocknc.stderr
default-method-body-is-const-body-checking.rs Remove constness from TraitPredicate 2023-08-02 15:38:00 +00:00
default-method-body-is-const-same-trait-ck.rs
default-method-body-is-const-same-trait-ck.stderr Print constness in TraitPredPrintModifiersAndPath 2023-12-09 17:55:07 +00:00
default-method-body-is-const-with-staged-api.rs Update since stability attributes in tests 2023-10-23 13:04:47 -07:00
do-not-const-check-override.rs bless tests 2023-08-06 13:34:53 +00:00
do-not-const-check.rs
feature-gate.gated.stderr Introduce const Trait (always-const trait bounds) 2023-12-27 12:51:32 +01:00
feature-gate.rs Introduce const Trait (always-const trait bounds) 2023-12-27 12:51:32 +01:00
feature-gate.stock.stderr Bless tests 2024-01-13 12:46:58 -05:00
function-pointer-does-not-require-const.rs
gate.rs
gate.stderr Bless tests 2024-01-13 12:46:58 -05:00
generic-bound.rs
generic-bound.stderr bless ui tests 2023-12-19 04:28:21 +00:00
hir-const-check.rs bless tests 2023-08-06 13:34:53 +00:00
hir-const-check.stderr Bless tests 2024-01-13 12:46:58 -05:00
impl-tilde-const-trait.rs
impl-tilde-const-trait.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
impl-with-default-fn-fail.rs
impl-with-default-fn-fail.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
impl-with-default-fn-pass.rs
inherent-impl-const-bounds.rs
inherent-impl.rs
inherent-impl.stderr
issue-79450.rs bless ui tests 2023-12-19 04:28:21 +00:00
issue-79450.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-88155.rs
issue-88155.stderr bless ui tests 2023-12-19 04:28:21 +00:00
issue-92111.rs
issue-92111.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-92230-wf-super-trait-env.rs
issue-100222.rs
issue-102156.rs
issue-102156.stderr When failing to import core, suggest std 2023-11-22 19:30:47 +00:00
issue-102985.rs
issue-102985.stderr bless ui tests 2023-12-19 04:28:21 +00:00
issue-103677.rs
match-non-const-eq.gated.stderr bless ui tests 2023-12-19 04:28:21 +00:00
match-non-const-eq.rs
match-non-const-eq.stock.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
mbe-bare-trait-objects-const-trait-bounds.rs Introduce const Trait (always-const trait bounds) 2023-12-27 12:51:32 +01:00
mbe-const-trait-bound-theoretical-regression.rs Introduce const Trait (always-const trait bounds) 2023-12-27 12:51:32 +01:00
mbe-const-trait-bound-theoretical-regression.stderr Bless tests 2024-01-13 12:46:58 -05:00
mbe-dyn-const-2015.rs Introduce const Trait (always-const trait bounds) 2023-12-27 12:51:32 +01:00
mutually-exclusive-trait-bound-modifiers.rs Introduce const Trait (always-const trait bounds) 2023-12-27 12:51:32 +01:00
mutually-exclusive-trait-bound-modifiers.stderr Introduce const Trait (always-const trait bounds) 2023-12-27 12:51:32 +01:00
nested-closure.rs
non-const-op-const-closure-non-const-outer.rs
non-const-op-const-closure-non-const-outer.stderr bless ui tests 2023-12-19 04:28:21 +00:00
non-const-op-in-closure-in-const.rs
non-const-op-in-closure-in-const.stderr Introduce const Trait (always-const trait bounds) 2023-12-27 12:51:32 +01:00
specializing-constness-2.rs bless ui tests 2023-12-19 04:28:21 +00:00
specializing-constness-2.stderr bless ui tests 2023-12-19 04:28:21 +00:00
specializing-constness.rs bless tests 2023-08-06 13:34:53 +00:00
specializing-constness.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
staged-api-user-crate.rs
staged-api-user-crate.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
staged-api.rs bless tests 2023-08-06 13:34:53 +00:00
staged-api.stable.stderr
staged-api.unstable.stderr
static-const-trait-bound.rs
std-impl-gate.gated.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
std-impl-gate.rs
std-impl-gate.stock.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
super-traits-fail-2.nn.stderr Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00
super-traits-fail-2.ny.stderr Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00
super-traits-fail-2.rs Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00
super-traits-fail-2.yn.stderr Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00
super-traits-fail-2.yy.stderr Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00
super-traits-fail-3.nn.stderr Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00
super-traits-fail-3.ny.stderr Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00
super-traits-fail-3.rs Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00
super-traits-fail-3.yn.stderr Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00
super-traits-fail.rs
super-traits.rs Remove constness from ImplSource::Param 2023-08-14 02:17:30 +00:00
syntax.rs
tilde-const-and-const-params.rs Validate ~const trait bounds on associated fns. 2023-09-30 19:00:45 -04:00
tilde-const-and-const-params.stderr Add Span to TraitBoundModifier 2023-11-24 14:32:05 +00:00
tilde-const-assoc-fn-in-trait-impl.rs effects: support ~const in assoc fns in trait impls 2024-01-07 18:22:47 +01:00
tilde-const-inherent-assoc-const-fn.rs effects: support ~const in assoc fns in trait impls 2024-01-07 18:22:47 +01:00
tilde-const-invalid-places.rs Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00
tilde-const-invalid-places.stderr Auto merge of #119088 - George-lewis:glewis/suggest-upgrading-compiler, r=Nilstrieb 2024-01-13 20:06:03 +00:00
tilde-const-syntax.rs
tilde-const-trait-assoc-tys.rs Allow ~const on assoc ty bounds again 2024-01-12 17:22:18 +01:00
tilde-twice.rs
tilde-twice.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
trait-default-body-stability.rs bless ui tests 2023-12-19 04:28:21 +00:00
trait-default-body-stability.stderr bless ui tests 2023-12-19 04:28:21 +00:00
trait-method-ptr-in-consts-ice.rs
trait-where-clause-const.rs Remove constness from ImplSource::Param 2023-08-14 02:17:30 +00:00
trait-where-clause-const.stderr ~const trait or projection bounds do not imply non-const bounds 2024-01-08 15:01:14 +00:00
trait-where-clause-run.rs Remove constness from ImplSource::Param 2023-08-14 02:17:30 +00:00
trait-where-clause-self-referential.rs Remove constness from ImplSource::Param 2023-08-14 02:17:30 +00:00
trait-where-clause.rs Validate ~const trait bounds on associated fns. 2023-09-30 19:00:45 -04:00
trait-where-clause.stderr Add Span to TraitBoundModifier 2023-11-24 14:32:05 +00:00
unsatisfied-const-trait-bound.rs ~const trait or projection bounds do not imply non-const bounds 2024-01-08 15:01:14 +00:00
unsatisfied-const-trait-bound.stderr ~const trait or projection bounds do not imply non-const bounds 2024-01-08 15:01:14 +00:00