rust/tests/ui/traits/const-traits
Matthias Krüger b9db639ea5
Rollup merge of #132544 - dianne:unstable-library-feature-backticks, r=compiler-errors
Use backticks instead of single quotes for library feature names in diagnostics

This PR changes the text of library feature errors for using unstable or body-unstable items. Displaying library feature names in backticks is consistent with other diagnostics (e.g. those from `rustc_passes`) and with the `reason`s on unstable attributes in the library. Additionally, this simplifies diagnostics when supporting multiple unstable attributes on items (see #131824) since `DiagSymbolList` also displays symbols using backticks.
2024-11-04 18:12:46 +01:00
..
auxiliary Yeet effects feature 2024-11-03 18:59:31 +00:00
const_derives Rollup merge of #132544 - dianne:unstable-library-feature-backticks, r=compiler-errors 2024-11-04 18:12:46 +01:00
effects Fix minicore, add tests based off of it 2024-11-04 04:51:32 +00:00
specialization Rename the FIXMEs, remove a few that dont matter anymore 2024-11-03 18:59:41 +00:00
assoc-type-const-bound-usage-0.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
assoc-type-const-bound-usage-1.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
assoc-type-const-bound-usage-1.stderr Yeet effects feature 2024-11-03 18:59:31 +00:00
assoc-type-const-bound-usage-fail-2.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
assoc-type-const-bound-usage-fail-2.stderr Yeet effects feature 2024-11-03 18:59:31 +00:00
assoc-type-const-bound-usage-fail.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
assoc-type-const-bound-usage-fail.stderr Yeet effects feature 2024-11-03 18:59:31 +00:00
assoc-type.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
assoc-type.stderr Yeet effects feature 2024-11-03 18:59:31 +00:00
attr-misuse.rs
attr-misuse.stderr
call-const-closure.rs Rename the FIXMEs, remove a few that dont matter anymore 2024-11-03 18:59:41 +00:00
call-const-closure.stderr Add tests 2024-10-24 09:46:36 +00:00
call-const-in-tilde-const.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
call-const-in-tilde-const.stderr Yeet effects feature 2024-11-03 18:59:31 +00:00
call-const-trait-method-fail.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
call-const-trait-method-fail.stderr Yeet effects feature 2024-11-03 18:59:31 +00:00
call-const-trait-method-pass.rs
call-const-trait-method-pass.stderr Gate checking ~const bounds on const_trait_impl 2024-11-03 18:48:24 +00:00
call-generic-in-impl.rs Rename the FIXMEs, remove a few that dont matter anymore 2024-11-03 18:59:41 +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 Rename the FIXMEs, remove a few that dont matter anymore 2024-11-03 18:59:41 +00:00
call-generic-method-chain.stderr Yeet effects feature 2024-11-03 18:59:31 +00:00
call-generic-method-dup-bound.rs Rename the FIXMEs, remove a few that dont matter anymore 2024-11-03 18:59:41 +00:00
call-generic-method-dup-bound.stderr Yeet effects feature 2024-11-03 18:59:31 +00:00
call-generic-method-fail.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
call-generic-method-fail.stderr Yeet effects feature 2024-11-03 18:59:31 +00:00
call-generic-method-nonconst-bound.rs
call-generic-method-nonconst.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
call-generic-method-nonconst.stderr Yeet effects feature 2024-11-03 18:59:31 +00:00
call-generic-method-pass.rs Rename the FIXMEs, remove a few that dont matter anymore 2024-11-03 18:59:41 +00:00
call-generic-method-pass.stderr Yeet effects feature 2024-11-03 18:59:31 +00:00
call.rs Rename the FIXMEs, remove a few that dont matter anymore 2024-11-03 18:59:41 +00: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
const-and-non-const-impl.stderr
const-bound-in-host.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
const-bound-on-not-const-associated-fn.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
const-bound-on-not-const-associated-fn.stderr Yeet effects feature 2024-11-03 18:59:31 +00:00
const-bounds-non-const-trait.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
const-bounds-non-const-trait.stderr Yeet effects feature 2024-11-03 18:59:31 +00:00
const-check-fns-in-const-impl.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
const-check-fns-in-const-impl.stderr Yeet effects feature 2024-11-03 18:59:31 +00:00
const-closure-parse-not-item.rs
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
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
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
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 Yeet effects feature 2024-11-03 18:59:31 +00:00
const-default-method-bodies.stderr Yeet effects feature 2024-11-03 18:59:31 +00:00
const-drop-bound.rs
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
const-drop-fail-2.rs Rename the FIXMEs, remove a few that dont matter anymore 2024-11-03 18:59:41 +00:00
const-drop-fail-2.stderr Gate checking ~const bounds on const_trait_impl 2024-11-03 18:48:24 +00:00
const-drop-fail-2.stock.stderr
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
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 Gate checking ~const bounds on const_trait_impl 2024-11-03 18:48:24 +00:00
const-drop.rs
const-drop.stock.stderr Gate checking ~const bounds on const_trait_impl 2024-11-03 18:48:24 +00:00
const-fns-are-early-bound.rs Rename the FIXMEs, remove a few that dont matter anymore 2024-11-03 18:59:41 +00:00
const-impl-norecover.rs
const-impl-norecover.stderr
const-impl-recovery.rs
const-impl-recovery.stderr
const-impl-requires-const-trait.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
const-impl-requires-const-trait.stderr Yeet effects feature 2024-11-03 18:59:31 +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 Yeet effects feature 2024-11-03 18:59:31 +00:00
const-trait-bounds-trait-objects.rs Rename the FIXMEs, remove a few that dont matter anymore 2024-11-03 18:59:41 +00:00
const-trait-bounds-trait-objects.stderr
const-trait-bounds.rs Rename the FIXMEs, remove a few that dont matter anymore 2024-11-03 18:59:41 +00:00
const-trait-bounds.stderr Yeet effects feature 2024-11-03 18:59:31 +00:00
cross-crate-default-method-body-is-const.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
cross-crate.gatednc.stderr
cross-crate.rs Yeet effects feature 2024-11-03 18:59:31 +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 Gate checking ~const bounds on const_trait_impl 2024-11-03 18:48:24 +00:00
default-method-body-is-const-same-trait-ck.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
default-method-body-is-const-same-trait-ck.stderr Yeet effects feature 2024-11-03 18:59:31 +00:00
default-method-body-is-const-with-staged-api.rs
do-not-const-check-override.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
do-not-const-check.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
dont-observe-host-opaque.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
dont-observe-host.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
feature-gate.gated.stderr
feature-gate.rs
feature-gate.stock.stderr
fn-ptr-lub.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
function-pointer-does-not-require-const.rs
gate.rs
gate.stderr
generic-bound.rs
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 Yeet effects feature 2024-11-03 18:59:31 +00:00
hir-const-check.stderr Yeet effects feature 2024-11-03 18:59:31 +00:00
ice-119717-constant-lifetime.rs Yeet effects feature 2024-11-03 18:59:31 +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 Yeet effects feature 2024-11-03 18:59:31 +00:00
ice-120503-async-const-method.stderr Yeet effects feature 2024-11-03 18:59:31 +00:00
ice-121536-const-method.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
ice-121536-const-method.stderr Yeet effects feature 2024-11-03 18:59:31 +00:00
ice-123664-unexpected-bound-var.rs Yeet effects feature 2024-11-03 18:59:31 +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 Yeet effects feature 2024-11-03 18:59:31 +00:00
ice-124857-combine-effect-const-infer-vars.stderr Yeet effects feature 2024-11-03 18:59:31 +00:00
ice-126148-failed-to-normalize.rs Yeet effects feature 2024-11-03 18:59:31 +00: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
impl-tilde-const-trait.stderr
impl-with-default-fn-fail.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
impl-with-default-fn-fail.stderr Yeet effects feature 2024-11-03 18:59:31 +00:00
impl-with-default-fn-pass.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
inherent-impl-const-bounds.rs
inherent-impl.rs
inherent-impl.stderr
inline-incorrect-early-bound-in-ctfe.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
inline-incorrect-early-bound-in-ctfe.stderr Yeet effects feature 2024-11-03 18:59:31 +00:00
issue-79450.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
issue-79450.stderr Yeet effects feature 2024-11-03 18:59:31 +00:00
issue-88155.rs
issue-88155.stderr Deny calls to non-#[const_trait] methods in MIR constck 2024-10-26 11:35:56 +08:00
issue-92111.rs
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 Yeet effects feature 2024-11-03 18:59:31 +00:00
issue-100222.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
issue-102156.rs
issue-102156.stderr
issue-102985.rs
issue-102985.stderr Deny calls to non-#[const_trait] methods in MIR constck 2024-10-26 11:35:56 +08:00
issue-103677.rs
item-bound-entailment-fails.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
item-bound-entailment-fails.stderr Yeet effects feature 2024-11-03 18:59:31 +00:00
item-bound-entailment.rs Yeet effects feature 2024-11-03 18:59:31 +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
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
mbe-const-trait-bound-theoretical-regression.rs
mbe-const-trait-bound-theoretical-regression.stderr
mbe-dyn-const-2015.rs
mutually-exclusive-trait-bound-modifiers.rs
mutually-exclusive-trait-bound-modifiers.stderr
nested-closure.rs
non-const-op-const-closure-non-const-outer.rs
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
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 Yeet effects feature 2024-11-03 18:59:31 +00:00
predicate-entailment-fails.stderr Yeet effects feature 2024-11-03 18:59:31 +00:00
predicate-entailment-passes.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
specializing-constness-2.rs
specializing-constness-2.stderr Gate checking ~const bounds on const_trait_impl 2024-11-03 18:48:24 +00:00
specializing-constness.rs Rename the FIXMEs, remove a few that dont matter anymore 2024-11-03 18:59:41 +00:00
specializing-constness.stderr Yeet effects feature 2024-11-03 18:59:31 +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 Yeet effects feature 2024-11-03 18:59:31 +00:00
staged-api.stable.stderr Yeet effects feature 2024-11-03 18:59:31 +00:00
staged-api.unstable.stderr Yeet effects feature 2024-11-03 18:59:31 +00:00
static-const-trait-bound.rs
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
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 Yeet effects feature 2024-11-03 18:59:31 +00:00
super-traits-fail-2.ny.stderr Yeet effects feature 2024-11-03 18:59:31 +00:00
super-traits-fail-2.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
super-traits-fail-2.yn.stderr Yeet effects feature 2024-11-03 18:59:31 +00:00
super-traits-fail-2.yy.stderr Yeet effects feature 2024-11-03 18:59:31 +00:00
super-traits-fail-3.nn.stderr Yeet effects feature 2024-11-03 18:59:31 +00:00
super-traits-fail-3.ny.stderr Yeet effects feature 2024-11-03 18:59:31 +00:00
super-traits-fail-3.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
super-traits-fail-3.yn.stderr Yeet effects feature 2024-11-03 18:59:31 +00:00
super-traits-fail.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
super-traits-fail.stderr Yeet effects feature 2024-11-03 18:59:31 +00:00
super-traits.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
syntax.rs
tilde-const-and-const-params.rs Yeet effects feature 2024-11-03 18:59:31 +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 Yeet effects feature 2024-11-03 18:59:31 +00:00
tilde-const-in-struct-args.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
tilde-const-inherent-assoc-const-fn.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
tilde-const-invalid-places.rs
tilde-const-invalid-places.stderr
tilde-const-syntax.rs
tilde-const-trait-assoc-tys.rs Rename the FIXMEs, remove a few that dont matter anymore 2024-11-03 18:59:41 +00:00
tilde-twice.rs
tilde-twice.stderr
trait-default-body-stability.rs Yeet effects feature 2024-11-03 18:59:31 +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
trait-where-clause-const.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
trait-where-clause-const.stderr Yeet effects feature 2024-11-03 18:59:31 +00:00
trait-where-clause-run.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
trait-where-clause-self-referential.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
trait-where-clause.rs
trait-where-clause.stderr
unsatisfied-const-trait-bound.rs Rename the FIXMEs, remove a few that dont matter anymore 2024-11-03 18:59:41 +00:00
unsatisfied-const-trait-bound.stderr Yeet effects feature 2024-11-03 18:59:31 +00:00