rust/tests/ui/traits/const-traits
Matthias Krüger 2846699366
Rollup merge of #134181 - estebank:trim-render, r=oli-obk
Tweak multispan rendering to reduce output length

Consider comments and bare delimiters the same as an "empty line" for purposes of hiding rendered code output of long multispans. This results in more aggressive shortening of rendered output without losing too much context, specially in `*.stderr` tests that have "hidden" comments. We do that check not only on the first 4 lines of the multispan, but now also on the previous to last line as well.
2024-12-14 03:54:31 +01:00
..
auxiliary Yeet effects feature 2024-11-03 18:59:31 +00:00
const_derives Tweak wording of non-const traits used as const bounds 2024-12-10 00:38:05 +00:00
effects Arbitrary self types v2: use Receiver trait 2024-12-11 11:59:12 +00:00
specialization Fix const specialization 2024-12-02 22:21:53 +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 Adjust HostEffect error spans correctly to point at args 2024-12-01 05:11:42 +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 Adjust HostEffect error spans correctly to point at args 2024-12-01 05:11:42 +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 Adjust HostEffect error spans correctly to point at args 2024-12-01 05:11:42 +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 Adjust HostEffect error spans correctly to point at args 2024-12-01 05:11:42 +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 Adjust HostEffect error spans correctly to point at args 2024-12-01 05:11:42 +00:00
call-const-trait-method-pass.rs
call-const-trait-method-pass.stderr Tweak wording of non-const traits used as const bounds 2024-12-10 00:38:05 +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 Tweak wording of non-const traits used as const bounds 2024-12-10 00:38:05 +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 Tweak wording of non-const traits used as const bounds 2024-12-10 00:38:05 +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 Tweak wording of non-const traits used as const bounds 2024-12-10 00:38:05 +00:00
call-generic-method-fail.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
call-generic-method-fail.stderr Mention type parameter in more cases and don't suggest ~const bound already there 2024-12-07 21:37:13 +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 Adjust HostEffect error spans correctly to point at args 2024-12-01 05:11:42 +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 Tweak wording of non-const traits used as const bounds 2024-12-10 00:38:05 +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 constify Add 2024-11-21 18:56:49 +08:00
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 Tweak wording of non-const traits used as const bounds 2024-12-10 00:38:05 +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 Tweak wording of non-const traits used as const bounds 2024-12-10 00:38:05 +00:00
const-closure-trait-method-fail.rs
const-closure-trait-method-fail.stderr Tweak wording of non-const traits used as const bounds 2024-12-10 00:38:05 +00:00
const-closure-trait-method.rs
const-closure-trait-method.stderr Tweak wording of non-const traits used as const bounds 2024-12-10 00:38:05 +00:00
const-closures.rs
const-closures.stderr Tweak wording of non-const traits used as const bounds 2024-12-10 00:38:05 +00:00
const-default-method-bodies.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
const-default-method-bodies.stderr Adjust HostEffect error spans correctly to point at args 2024-12-01 05:11:42 +00:00
const-drop-bound.rs Check drop is trivial before checking ty needs drop 2024-11-22 17:01:02 +00:00
const-drop-bound.stderr Adjust HostEffect error spans correctly to point at args 2024-12-01 05:11:42 +00:00
const-drop-fail-2.precise.stderr Adjust HostEffect error spans correctly to point at args 2024-12-01 05:11:42 +00:00
const-drop-fail-2.rs Constify Drop and Destruct 2024-11-25 17:27:41 +00:00
const-drop-fail-2.stock.stderr Adjust HostEffect error spans correctly to point at args 2024-12-01 05:11:42 +00:00
const-drop-fail.precise.stderr Adjust HostEffect error spans correctly to point at args 2024-12-01 05:11:42 +00:00
const-drop-fail.rs Adjust HostEffect error spans correctly to point at args 2024-12-01 05:11:42 +00:00
const-drop-fail.stock.stderr Adjust HostEffect error spans correctly to point at args 2024-12-01 05:11:42 +00:00
const-drop.rs Constify Drop and Destruct 2024-11-25 17:27: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 Tweak wording of non-const traits used as const bounds 2024-12-10 00:38:05 +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-opaque.no.stderr Adjust HostEffect error spans correctly to point at args 2024-12-01 05:11:42 +00:00
const-opaque.rs Implement ~const opaques 2024-11-19 20:31:05 +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
cross-crate-default-method-body-is-const.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
cross-crate.gatednc.stderr Adjust HostEffect error spans correctly to point at args 2024-12-01 05:11:42 +00:00
cross-crate.rs require const_impl_trait gate for all conditional and trait const calls 2024-11-09 23:02:20 +01:00
cross-crate.stock.stderr give a hint which feature is missing 2024-11-09 23:32:06 +01:00
cross-crate.stocknc.stderr give a hint which feature is missing 2024-11-09 23:32:06 +01: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 Adjust HostEffect error spans correctly to point at args 2024-12-01 05:11:42 +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 Adjust HostEffect error spans correctly to point at args 2024-12-01 05:11:42 +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-ice-on-const-pred-for-bounds.rs Validate self in host predicates correctly 2024-12-10 02:31:15 +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
eval-bad-signature.rs Make compare_impl_item into a query 2024-11-30 16:45:01 +00:00
eval-bad-signature.stderr Make compare_impl_item into a query 2024-11-30 16:45:01 +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 constify Add 2024-11-21 18:56:49 +08:00
hir-const-check.rs Get rid of HIR const checker 2024-11-22 02:32:26 +00:00
hir-const-check.stderr Get rid of HIR const checker 2024-11-22 02:32:26 +00:00
ice-119717-constant-lifetime.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
ice-119717-constant-lifetime.stderr Tweak wording of non-const traits used as const bounds 2024-12-10 00:38:05 +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 Filter empty lines, comments and delimiters from previous to last multiline span rendering 2024-12-12 23:36:27 +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 Tweak wording of non-const traits used as const bounds 2024-12-10 00:38:05 +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 Get rid of HIR const checker 2024-11-22 02:32:26 +00:00
ice-126148-failed-to-normalize.stderr Tweak wording of non-const traits used as const bounds 2024-12-10 00:38:05 +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 Constify Drop and Destruct 2024-11-25 17:27:41 +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 Tweak wording of non-const traits used as const bounds 2024-12-10 00:38:05 +00:00
overlap-const-with-nonconst.min_spec.stderr Fix const specialization 2024-12-02 22:21:53 +00:00
overlap-const-with-nonconst.rs Fix const specialization 2024-12-02 22:21:53 +00:00
overlap-const-with-nonconst.spec.stderr Fix const specialization 2024-12-02 22:21:53 +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 Adjust HostEffect error spans correctly to point at args 2024-12-01 05:11:42 +00:00
specializing-constness.rs Reimplement specialization for const traits 2024-12-02 22:12:08 +00:00
specializing-constness.stderr Reimplement specialization for const traits 2024-12-02 22:12:08 +00:00
staged-api-user-crate.rs require const_impl_trait gate for all conditional and trait const calls 2024-11-09 23:02:20 +01:00
staged-api-user-crate.stderr give a hint which feature is missing 2024-11-09 23:32:06 +01:00
staged-api.rs require const_impl_trait gate for all conditional and trait const calls 2024-11-09 23:02:20 +01:00
staged-api.stderr require const_impl_trait gate for all conditional and trait const calls 2024-11-09 23:02:20 +01: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 Tweak wording of non-const traits used as const bounds 2024-12-10 00:38:05 +00:00
super-traits-fail-2.ny.stderr Tweak wording of non-const traits used as const bounds 2024-12-10 00:38:05 +00:00
super-traits-fail-2.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
super-traits-fail-2.yn.stderr Adjust HostEffect error spans correctly to point at args 2024-12-01 05:11:42 +00:00
super-traits-fail-2.yy.stderr Adjust HostEffect error spans correctly to point at args 2024-12-01 05:11:42 +00:00
super-traits-fail-3.nnn.stderr Tweak wording of non-const traits used as const bounds 2024-12-10 00:38:05 +00:00
super-traits-fail-3.nny.stderr Tweak wording of non-const traits used as const bounds 2024-12-10 00:38:05 +00:00
super-traits-fail-3.nyn.stderr Tweak wording of non-const traits used as const bounds 2024-12-10 00:38:05 +00:00
super-traits-fail-3.nyy.stderr Tweak wording of non-const traits used as const bounds 2024-12-10 00:38:05 +00:00
super-traits-fail-3.rs Tweak wording of non-const traits used as const bounds 2024-12-10 00:38:05 +00:00
super-traits-fail-3.ynn.stderr Tweak wording of non-const traits used as const bounds 2024-12-10 00:38:05 +00:00
super-traits-fail-3.yny.stderr Tweak wording of non-const traits used as const bounds 2024-12-10 00:38:05 +00:00
super-traits-fail-3.yyn.stderr Tweak wording of non-const traits used as const bounds 2024-12-10 00:38:05 +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 Rename -Zparse-only. 2024-11-29 06:10:15 +11:00
tilde-const-and-const-params.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
tilde-const-and-const-params.stderr Adjust HostEffect error spans correctly to point at args 2024-12-01 05:11:42 +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 Rename -Zparse-only. 2024-11-29 06:10:15 +11:00
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 Rename -Zparse-only. 2024-11-29 06:10:15 +11:00
tilde-twice.stderr
trait-default-body-stability.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
trait-default-body-stability.stderr Tweak wording of non-const traits used as const bounds 2024-12-10 00:38:05 +00: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 Adjust HostEffect error spans correctly to point at args 2024-12-01 05:11:42 +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 Mention type parameter in more cases and don't suggest ~const bound already there 2024-12-07 21:37:13 +00:00
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 Adjust HostEffect error spans correctly to point at args 2024-12-01 05:11:42 +00:00