rust/tests/ui/traits/const-traits
Michael Goulet 57f2e12f4a Completely deny calling functions with const conditions in MIR const check unless const_trait_impl is enabled
This will help us make sure that we never leak any conditionally const
functions into stable.
2024-11-01 16:13:30 +00:00
..
auxiliary Re-do recursive const stability checks 2024-10-25 20:31:40 +02:00
const_derives Hack out effects support for old solver 2024-10-28 21:42:14 +00:00
effects Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
specialization Hack out effects support for old solver 2024-10-28 21:42:14 +00:00
assoc-type-const-bound-usage-0.rs Add support for ~const item bounds 2024-10-24 23:43:31 +00:00
assoc-type-const-bound-usage-1.rs Add next-solver to more effects tests 2024-10-24 09:46:36 +00:00
assoc-type-const-bound-usage-1.stderr Add support for ~const item bounds 2024-10-24 23:43:31 +00:00
assoc-type-const-bound-usage-fail-2.rs Add support for ~const item bounds 2024-10-24 23:43:31 +00:00
assoc-type-const-bound-usage-fail-2.stderr Add support for ~const item bounds 2024-10-24 23:43:31 +00:00
assoc-type-const-bound-usage-fail.rs Add support for ~const item bounds 2024-10-24 23:43:31 +00:00
assoc-type-const-bound-usage-fail.stderr Add support for ~const item bounds 2024-10-24 23:43:31 +00:00
assoc-type.rs Add next-solver to more effects tests 2024-10-24 09:46:36 +00:00
assoc-type.stderr Pass constness with span into lower_poly_trait_ref 2024-10-26 20:54:38 +00:00
attr-misuse.rs Move tests 2024-10-22 00:03:09 +00:00
attr-misuse.stderr Move tests 2024-10-22 00:03:09 +00:00
call-const-closure.rs Add tests 2024-10-24 09:46:36 +00:00
call-const-closure.stderr Add tests 2024-10-24 09:46:36 +00:00
call-const-in-tilde-const.rs Add tests 2024-10-24 09:46:36 +00:00
call-const-in-tilde-const.stderr Add tests 2024-10-24 09:46:36 +00:00
call-const-trait-method-fail.rs Move tests 2024-10-22 00:03:09 +00:00
call-const-trait-method-fail.stderr Implement const effect predicate in new solver 2024-10-24 09:46:36 +00:00
call-const-trait-method-pass.rs Move tests 2024-10-22 00:03:09 +00:00
call-const-trait-method-pass.stderr Deny calls to non-#[const_trait] methods in MIR constck 2024-10-26 11:35:56 +08:00
call-generic-in-impl.rs Move tests 2024-10-22 00:03:09 +00:00
call-generic-in-impl.stderr Pass constness with span into lower_poly_trait_ref 2024-10-26 20:54:38 +00:00
call-generic-method-chain.rs Add next-solver to more effects tests 2024-10-24 09:46:36 +00:00
call-generic-method-chain.stderr Pass constness with span into lower_poly_trait_ref 2024-10-26 20:54:38 +00:00
call-generic-method-dup-bound.rs Add next-solver to more effects tests 2024-10-24 09:46:36 +00:00
call-generic-method-dup-bound.stderr Pass constness with span into lower_poly_trait_ref 2024-10-26 20:54:38 +00:00
call-generic-method-fail.rs Deny calls to non-#[const_trait] methods in MIR constck 2024-10-26 11:35:56 +08:00
call-generic-method-fail.stderr Deny calls to non-#[const_trait] methods in MIR constck 2024-10-26 11:35:56 +08:00
call-generic-method-nonconst-bound.rs Move tests 2024-10-22 00:03:09 +00:00
call-generic-method-nonconst.rs Move tests 2024-10-22 00:03:09 +00:00
call-generic-method-nonconst.stderr Implement const effect predicate in new solver 2024-10-24 09:46:36 +00:00
call-generic-method-pass.rs Add next-solver to more effects tests 2024-10-24 09:46:36 +00:00
call-generic-method-pass.stderr Pass constness with span into lower_poly_trait_ref 2024-10-26 20:54:38 +00:00
call.rs Deny calls to non-#[const_trait] methods in MIR constck 2024-10-26 11:35:56 +08:00
call.stderr Deny calls to non-#[const_trait] methods in MIR constck 2024-10-26 11:35:56 +08:00
const-and-non-const-impl.rs Move tests 2024-10-22 00:03:09 +00:00
const-and-non-const-impl.stderr Move tests 2024-10-22 00:03:09 +00:00
const-bound-in-host.rs Add tests 2024-10-24 09:46:36 +00:00
const-bound-in-host.stderr Add tests 2024-10-24 09:46:36 +00:00
const-bound-on-not-const-associated-fn.rs Add next-solver to more effects tests 2024-10-24 09:46:36 +00:00
const-bound-on-not-const-associated-fn.stderr Add next-solver to more effects tests 2024-10-24 09:46:36 +00:00
const-bounds-non-const-trait.rs Implement const effect predicate in new solver 2024-10-24 09:46:36 +00:00
const-bounds-non-const-trait.stderr Hack out effects support for old solver 2024-10-28 21:42:14 +00:00
const-check-fns-in-const-impl.rs Add next-solver to more effects tests 2024-10-24 09:46:36 +00:00
const-check-fns-in-const-impl.stderr Add next-solver to more effects tests 2024-10-24 09:46:36 +00:00
const-closure-parse-not-item.rs Move tests 2024-10-22 00:03:09 +00:00
const-closure-parse-not-item.stderr Pass constness with span into lower_poly_trait_ref 2024-10-26 20:54:38 +00:00
const-closure-trait-method-fail.rs Move tests 2024-10-22 00:03:09 +00:00
const-closure-trait-method-fail.stderr Pass constness with span into lower_poly_trait_ref 2024-10-26 20:54:38 +00:00
const-closure-trait-method.rs Move tests 2024-10-22 00:03:09 +00:00
const-closure-trait-method.stderr Pass constness with span into lower_poly_trait_ref 2024-10-26 20:54:38 +00:00
const-closures.rs Move tests 2024-10-22 00:03:09 +00:00
const-closures.stderr Pass constness with span into lower_poly_trait_ref 2024-10-26 20:54:38 +00:00
const-default-method-bodies.rs Move tests 2024-10-22 00:03:09 +00:00
const-default-method-bodies.stderr Implement const effect predicate in new solver 2024-10-24 09:46:36 +00:00
const-drop-bound.rs Move tests 2024-10-22 00:03:09 +00:00
const-drop-bound.stderr Pass constness with span into lower_poly_trait_ref 2024-10-26 20:54:38 +00:00
const-drop-fail-2.precise.stderr Move tests 2024-10-22 00:03:09 +00:00
const-drop-fail-2.rs Move tests 2024-10-22 00:03:09 +00:00
const-drop-fail-2.stderr Completely deny calling functions with const conditions in MIR const check unless const_trait_impl is enabled 2024-11-01 16:13:30 +00:00
const-drop-fail-2.stock.stderr Move tests 2024-10-22 00:03:09 +00:00
const-drop-fail.precise.stderr Pass constness with span into lower_poly_trait_ref 2024-10-26 20:54:38 +00:00
const-drop-fail.rs Move tests 2024-10-22 00:03:09 +00:00
const-drop-fail.stock.stderr Pass constness with span into lower_poly_trait_ref 2024-10-26 20:54:38 +00:00
const-drop.precise.stderr Completely deny calling functions with const conditions in MIR const check unless const_trait_impl is enabled 2024-11-01 16:13:30 +00:00
const-drop.rs Move tests 2024-10-22 00:03:09 +00:00
const-drop.stock.stderr Completely deny calling functions with const conditions in MIR const check unless const_trait_impl is enabled 2024-11-01 16:13:30 +00:00
const-fns-are-early-bound.rs Implement const effect predicate in new solver 2024-10-24 09:46:36 +00:00
const-impl-norecover.rs Move tests 2024-10-22 00:03:09 +00:00
const-impl-norecover.stderr Move tests 2024-10-22 00:03:09 +00:00
const-impl-recovery.rs Move tests 2024-10-22 00:03:09 +00:00
const-impl-recovery.stderr Move tests 2024-10-22 00:03:09 +00:00
const-impl-requires-const-trait.rs Add next-solver to more effects tests 2024-10-24 09:46:36 +00:00
const-impl-requires-const-trait.stderr Add next-solver to more effects tests 2024-10-24 09:46:36 +00:00
const-impl-trait.rs Add next-solver to more effects tests 2024-10-24 09:46:36 +00:00
const-in-closure.rs Add tests 2024-10-24 09:46:36 +00:00
const-in-closure.stderr Add tests 2024-10-24 09:46:36 +00:00
const-trait-bounds-trait-objects.rs Move tests 2024-10-22 00:03:09 +00:00
const-trait-bounds-trait-objects.stderr Move tests 2024-10-22 00:03:09 +00:00
const-trait-bounds.rs Move tests 2024-10-22 00:03:09 +00:00
const-trait-bounds.stderr Move tests 2024-10-22 00:03:09 +00:00
cross-crate-default-method-body-is-const.rs Move tests 2024-10-22 00:03:09 +00:00
cross-crate.gatednc.stderr Implement const effect predicate in new solver 2024-10-24 09:46:36 +00:00
cross-crate.rs Completely deny calling functions with const conditions in MIR const check unless const_trait_impl is enabled 2024-11-01 16:13:30 +00:00
cross-crate.stock.stderr Completely deny calling functions with const conditions in MIR const check unless const_trait_impl is enabled 2024-11-01 16:13:30 +00:00
cross-crate.stocknc.stderr Completely deny calling functions with const conditions in MIR const check unless const_trait_impl is enabled 2024-11-01 16:13:30 +00:00
default-method-body-is-const-body-checking.rs Completely deny calling functions with const conditions in MIR const check unless const_trait_impl is enabled 2024-11-01 16:13:30 +00:00
default-method-body-is-const-body-checking.stderr Completely deny calling functions with const conditions in MIR const check unless const_trait_impl is enabled 2024-11-01 16:13:30 +00:00
default-method-body-is-const-same-trait-ck.rs Move tests 2024-10-22 00:03:09 +00:00
default-method-body-is-const-same-trait-ck.stderr Implement const effect predicate in new solver 2024-10-24 09:46:36 +00:00
default-method-body-is-const-with-staged-api.rs Move tests 2024-10-22 00:03:09 +00:00
do-not-const-check-override.rs Move tests 2024-10-22 00:03:09 +00:00
do-not-const-check.rs Do not enforce ~const constness effects in typeck if rustc_do_mot_const_check 2024-10-30 17:41:09 +00:00
do-not-const-check.stderr Do not enforce ~const constness effects in typeck if rustc_do_mot_const_check 2024-10-30 17:41:09 +00:00
dont-observe-host-opaque.rs Add tests 2024-10-24 09:46:36 +00:00
dont-observe-host-opaque.stderr Add tests 2024-10-24 09:46:36 +00:00
dont-observe-host.rs Add tests 2024-10-24 09:46:36 +00:00
dont-observe-host.stderr Add tests 2024-10-24 09:46:36 +00:00
feature-gate.gated.stderr Move tests 2024-10-22 00:03:09 +00:00
feature-gate.rs Move tests 2024-10-22 00:03:09 +00:00
feature-gate.stock.stderr Move tests 2024-10-22 00:03:09 +00:00
fn-ptr-lub.rs Add tests 2024-10-24 09:46:36 +00:00
fn-ptr-lub.stderr Add tests 2024-10-24 09:46:36 +00:00
function-pointer-does-not-require-const.rs Move tests 2024-10-22 00:03:09 +00:00
gate.rs Move tests 2024-10-22 00:03:09 +00:00
gate.stderr Move tests 2024-10-22 00:03:09 +00:00
generic-bound.rs Move tests 2024-10-22 00:03:09 +00:00
generic-bound.stderr Deny calls to non-#[const_trait] methods in MIR constck 2024-10-26 11:35:56 +08:00
hir-const-check.rs Deny calls to non-#[const_trait] methods in MIR constck 2024-10-26 11:35:56 +08:00
hir-const-check.stderr Deny calls to non-#[const_trait] methods in MIR constck 2024-10-26 11:35:56 +08:00
ice-119717-constant-lifetime.rs Move tests 2024-10-22 00:03:09 +00:00
ice-119717-constant-lifetime.stderr Hack out effects support for old solver 2024-10-28 21:42:14 +00:00
ice-120503-async-const-method.rs Move tests 2024-10-22 00:03:09 +00:00
ice-120503-async-const-method.stderr Hack out effects support for old solver 2024-10-28 21:42:14 +00:00
ice-121536-const-method.rs Move tests 2024-10-22 00:03:09 +00:00
ice-121536-const-method.stderr Hack out effects support for old solver 2024-10-28 21:42:14 +00:00
ice-123664-unexpected-bound-var.rs Implement const effect predicate in new solver 2024-10-24 09:46:36 +00:00
ice-123664-unexpected-bound-var.stderr Hack out effects support for old solver 2024-10-28 21:42:14 +00:00
ice-124857-combine-effect-const-infer-vars.rs Move tests 2024-10-22 00:03:09 +00:00
ice-124857-combine-effect-const-infer-vars.stderr Hack out effects support for old solver 2024-10-28 21:42:14 +00:00
ice-126148-failed-to-normalize.rs Deny calls to non-#[const_trait] methods in MIR constck 2024-10-26 11:35:56 +08:00
ice-126148-failed-to-normalize.stderr Hack out effects support for old solver 2024-10-28 21:42:14 +00:00
impl-tilde-const-trait.rs Move tests 2024-10-22 00:03:09 +00:00
impl-tilde-const-trait.stderr Move tests 2024-10-22 00:03:09 +00:00
impl-with-default-fn-fail.rs Move tests 2024-10-22 00:03:09 +00:00
impl-with-default-fn-fail.stderr Hack out effects support for old solver 2024-10-28 21:42:14 +00:00
impl-with-default-fn-pass.rs Move tests 2024-10-22 00:03:09 +00:00
inherent-impl-const-bounds.rs Move tests 2024-10-22 00:03:09 +00:00
inherent-impl.rs Move tests 2024-10-22 00:03:09 +00:00
inherent-impl.stderr Move tests 2024-10-22 00:03:09 +00:00
inline-incorrect-early-bound-in-ctfe.rs Deny calls to non-#[const_trait] methods in MIR constck 2024-10-26 11:35:56 +08:00
inline-incorrect-early-bound-in-ctfe.stderr Deny calls to non-#[const_trait] methods in MIR constck 2024-10-26 11:35:56 +08:00
issue-79450.rs Re-do recursive const stability checks 2024-10-25 20:31:40 +02:00
issue-79450.stderr Re-do recursive const stability checks 2024-10-25 20:31:40 +02:00
issue-88155.rs Move tests 2024-10-22 00:03:09 +00:00
issue-88155.stderr Deny calls to non-#[const_trait] methods in MIR constck 2024-10-26 11:35:56 +08:00
issue-92111.rs Move tests 2024-10-22 00:03:09 +00:00
issue-92111.stderr Pass constness with span into lower_poly_trait_ref 2024-10-26 20:54:38 +00:00
issue-92230-wf-super-trait-env.rs Move tests 2024-10-22 00:03:09 +00:00
issue-100222.rs Move tests 2024-10-22 00:03:09 +00:00
issue-102156.rs Move tests 2024-10-22 00:03:09 +00:00
issue-102156.stderr Move tests 2024-10-22 00:03:09 +00:00
issue-102985.rs Move tests 2024-10-22 00:03:09 +00:00
issue-102985.stderr Deny calls to non-#[const_trait] methods in MIR constck 2024-10-26 11:35:56 +08:00
issue-103677.rs Move tests 2024-10-22 00:03:09 +00:00
item-bound-entailment-fails.rs Add tests 2024-10-24 09:46:36 +00:00
item-bound-entailment-fails.stderr Pass constness with span into lower_poly_trait_ref 2024-10-26 20:54:38 +00:00
item-bound-entailment.rs Add tests 2024-10-24 09:46:36 +00:00
item-bound-entailment.stderr Add tests 2024-10-24 09:46:36 +00:00
match-non-const-eq.gated.stderr Deny calls to non-#[const_trait] methods in MIR constck 2024-10-26 11:35:56 +08:00
match-non-const-eq.rs Move tests 2024-10-22 00:03:09 +00:00
match-non-const-eq.stock.stderr Deny calls to non-#[const_trait] methods in MIR constck 2024-10-26 11:35:56 +08:00
mbe-bare-trait-objects-const-trait-bounds.rs Move tests 2024-10-22 00:03:09 +00:00
mbe-const-trait-bound-theoretical-regression.rs Move tests 2024-10-22 00:03:09 +00:00
mbe-const-trait-bound-theoretical-regression.stderr Move tests 2024-10-22 00:03:09 +00:00
mbe-dyn-const-2015.rs Move tests 2024-10-22 00:03:09 +00:00
mutually-exclusive-trait-bound-modifiers.rs Move tests 2024-10-22 00:03:09 +00:00
mutually-exclusive-trait-bound-modifiers.stderr Move tests 2024-10-22 00:03:09 +00:00
nested-closure.rs Move tests 2024-10-22 00:03:09 +00:00
non-const-op-const-closure-non-const-outer.rs Move tests 2024-10-22 00:03:09 +00:00
non-const-op-const-closure-non-const-outer.stderr Deny calls to non-#[const_trait] methods in MIR constck 2024-10-26 11:35:56 +08:00
non-const-op-in-closure-in-const.rs Move tests 2024-10-22 00:03:09 +00:00
non-const-op-in-closure-in-const.stderr Pass constness with span into lower_poly_trait_ref 2024-10-26 20:54:38 +00:00
predicate-entailment-fails.rs Add tests 2024-10-24 09:46:36 +00:00
predicate-entailment-fails.stderr Pass constness with span into lower_poly_trait_ref 2024-10-26 20:54:38 +00:00
predicate-entailment-passes.rs Add tests 2024-10-24 09:46:36 +00:00
predicate-entailment-passes.stderr Add tests 2024-10-24 09:46:36 +00:00
specializing-constness-2.rs Move tests 2024-10-22 00:03:09 +00:00
specializing-constness-2.stderr Completely deny calling functions with const conditions in MIR const check unless const_trait_impl is enabled 2024-11-01 16:13:30 +00:00
specializing-constness.rs Implement const effect predicate in new solver 2024-10-24 09:46:36 +00:00
specializing-constness.stderr Hack out effects support for old solver 2024-10-28 21:42:14 +00:00
staged-api-user-crate.rs Completely deny calling functions with const conditions in MIR const check unless const_trait_impl is enabled 2024-11-01 16:13:30 +00:00
staged-api-user-crate.stderr Completely deny calling functions with const conditions in MIR const check unless const_trait_impl is enabled 2024-11-01 16:13:30 +00:00
staged-api.rs Re-do recursive const stability checks 2024-10-25 20:31:40 +02:00
staged-api.stable.stderr Re-do recursive const stability checks 2024-10-25 20:31:40 +02:00
staged-api.unstable.stderr Re-do recursive const stability checks 2024-10-25 20:31:40 +02:00
static-const-trait-bound.rs Move tests 2024-10-22 00:03:09 +00:00
std-impl-gate.gated.stderr Deny calls to non-#[const_trait] methods in MIR constck 2024-10-26 11:35:56 +08:00
std-impl-gate.rs Move tests 2024-10-22 00:03:09 +00:00
std-impl-gate.stock.stderr Deny calls to non-#[const_trait] methods in MIR constck 2024-10-26 11:35:56 +08:00
super-traits-fail-2.nn.stderr Pass constness with span into lower_poly_trait_ref 2024-10-26 20:54:38 +00:00
super-traits-fail-2.ny.stderr Pass constness with span into lower_poly_trait_ref 2024-10-26 20:54:38 +00:00
super-traits-fail-2.rs Deny calls to non-#[const_trait] methods in MIR constck 2024-10-26 11:35:56 +08:00
super-traits-fail-2.yn.stderr Implement const effect predicate in new solver 2024-10-24 09:46:36 +00:00
super-traits-fail-2.yy.stderr Implement const effect predicate in new solver 2024-10-24 09:46:36 +00:00
super-traits-fail-3.nn.stderr Pass constness with span into lower_poly_trait_ref 2024-10-26 20:54:38 +00:00
super-traits-fail-3.ny.stderr Pass constness with span into lower_poly_trait_ref 2024-10-26 20:54:38 +00:00
super-traits-fail-3.rs Deny calls to non-#[const_trait] methods in MIR constck 2024-10-26 11:35:56 +08:00
super-traits-fail-3.yn.stderr Pass constness with span into lower_poly_trait_ref 2024-10-26 20:54:38 +00:00
super-traits-fail.rs Implement const effect predicate in new solver 2024-10-24 09:46:36 +00:00
super-traits-fail.stderr Implement const effect predicate in new solver 2024-10-24 09:46:36 +00:00
super-traits.rs Move tests 2024-10-22 00:03:09 +00:00
syntax.rs Move tests 2024-10-22 00:03:09 +00:00
tilde-const-and-const-params.rs Hack out effects support for old solver 2024-10-28 21:42:14 +00:00
tilde-const-and-const-params.stderr Hack out effects support for old solver 2024-10-28 21:42:14 +00:00
tilde-const-assoc-fn-in-trait-impl.rs Move tests 2024-10-22 00:03:09 +00:00
tilde-const-in-struct-args.rs Add tests 2024-10-24 09:46:36 +00:00
tilde-const-in-struct-args.stderr Add tests 2024-10-24 09:46:36 +00:00
tilde-const-inherent-assoc-const-fn.rs Move tests 2024-10-22 00:03:09 +00:00
tilde-const-invalid-places.rs Move tests 2024-10-22 00:03:09 +00:00
tilde-const-invalid-places.stderr Move tests 2024-10-22 00:03:09 +00:00
tilde-const-syntax.rs Move tests 2024-10-22 00:03:09 +00:00
tilde-const-trait-assoc-tys.rs Move tests 2024-10-22 00:03:09 +00:00
tilde-twice.rs Move tests 2024-10-22 00:03:09 +00:00
tilde-twice.stderr Move tests 2024-10-22 00:03:09 +00:00
trait-default-body-stability.rs Move tests 2024-10-22 00:03:09 +00:00
trait-default-body-stability.stderr Deny calls to non-#[const_trait] methods in MIR constck 2024-10-26 11:35:56 +08:00
trait-method-ptr-in-consts-ice.rs Move tests 2024-10-22 00:03:09 +00:00
trait-where-clause-const.rs Implement const effect predicate in new solver 2024-10-24 09:46:36 +00:00
trait-where-clause-const.stderr Implement const effect predicate in new solver 2024-10-24 09:46:36 +00:00
trait-where-clause-run.rs Move tests 2024-10-22 00:03:09 +00:00
trait-where-clause-self-referential.rs Move tests 2024-10-22 00:03:09 +00:00
trait-where-clause.rs Move tests 2024-10-22 00:03:09 +00:00
trait-where-clause.stderr Move tests 2024-10-22 00:03:09 +00:00
unsatisfied-const-trait-bound.rs Move tests 2024-10-22 00:03:09 +00:00
unsatisfied-const-trait-bound.stderr Pass constness with span into lower_poly_trait_ref 2024-10-26 20:54:38 +00:00