rust/tests/ui/dyn-compatibility
Taylor Cramer d00d4dfe0d Refactor dyn-compatibility error and suggestions
This CL makes a number of small changes to dyn compatibility errors:
- "object safety" has been renamed to "dyn-compatibility" throughout
- "Convert to enum" suggestions are no longer generated when there
  exists a type-generic impl of the trait or an impl for `dyn OtherTrait`
- Several error messages are reorganized for user readability

Additionally, the dyn compatibility error creation code has been
split out into functions.

cc #132713
cc #133267
2025-01-22 09:20:57 -08:00
..
almost-supertrait-associated-type.rs Refactor dyn-compatibility error and suggestions 2025-01-22 09:20:57 -08:00
almost-supertrait-associated-type.stderr Refactor dyn-compatibility error and suggestions 2025-01-22 09:20:57 -08:00
assoc_const_bounds.rs
assoc_const_bounds_sized.rs
assoc_type_bounds.rs Fix ICE when multiple supertrait substitutions need assoc but only one is provided 2024-12-11 19:53:40 +00:00
assoc_type_bounds.stderr Fix ICE when multiple supertrait substitutions need assoc but only one is provided 2024-12-11 19:53:40 +00:00
assoc_type_bounds2.rs Fix ICE when multiple supertrait substitutions need assoc but only one is provided 2024-12-11 19:53:40 +00:00
assoc_type_bounds2.stderr Fix ICE when multiple supertrait substitutions need assoc but only one is provided 2024-12-11 19:53:40 +00:00
assoc_type_bounds_implicit_sized.fixed
assoc_type_bounds_implicit_sized.rs
assoc_type_bounds_implicit_sized.stderr
assoc_type_bounds_sized.rs
assoc_type_bounds_sized_others.rs
assoc_type_bounds_sized_others.stderr
assoc_type_bounds_sized_unnecessary.rs
assoc_type_bounds_sized_unnecessary.stderr
assoc_type_bounds_sized_used.rs
assoc_type_bounds_sized_used.stderr
associated-consts.curr.stderr Refactor dyn-compatibility error and suggestions 2025-01-22 09:20:57 -08:00
associated-consts.dyn_compatible_for_dispatch.stderr Refactor dyn-compatibility error and suggestions 2025-01-22 09:20:57 -08:00
associated-consts.rs
avoid-ice-on-warning-2.new.stderr Don't assume traits used as type are trait objs 2024-10-11 17:36:04 +02:00
avoid-ice-on-warning-2.old.stderr Refactor dyn-compatibility error and suggestions 2025-01-22 09:20:57 -08:00
avoid-ice-on-warning-2.rs Refactor dyn-compatibility error and suggestions 2025-01-22 09:20:57 -08:00
avoid-ice-on-warning-3.new.stderr Don't assume traits used as type are trait objs 2024-10-11 17:36:04 +02:00
avoid-ice-on-warning-3.old.stderr Refactor dyn-compatibility error and suggestions 2025-01-22 09:20:57 -08:00
avoid-ice-on-warning-3.rs Refactor dyn-compatibility error and suggestions 2025-01-22 09:20:57 -08:00
avoid-ice-on-warning.new.stderr Don't assume traits used as type are trait objs 2024-10-11 17:36:04 +02:00
avoid-ice-on-warning.old.stderr
avoid-ice-on-warning.rs Don't assume traits used as type are trait objs 2024-10-11 17:36:04 +02:00
bare-trait-dont-suggest-dyn.new.fixed Refactor dyn-compatibility error and suggestions 2025-01-22 09:20:57 -08:00
bare-trait-dont-suggest-dyn.new.stderr Don't assume traits used as type are trait objs 2024-10-11 17:36:04 +02:00
bare-trait-dont-suggest-dyn.old.stderr Refactor dyn-compatibility error and suggestions 2025-01-22 09:20:57 -08:00
bare-trait-dont-suggest-dyn.rs Refactor dyn-compatibility error and suggestions 2025-01-22 09:20:57 -08:00
bounds.rs Refactor dyn-compatibility error and suggestions 2025-01-22 09:20:57 -08:00
bounds.stderr Refactor dyn-compatibility error and suggestions 2025-01-22 09:20:57 -08:00
by-value-self-use.rs
by-value-self-use.stderr
by-value-self.rs
call-when-assoc-ty-is-sized.rs
elaborated-predicates-ordering.rs
erroneous_signature.rs
erroneous_signature.stderr
gat-incompatible-supertrait.rs Refactor dyn-compatibility error and suggestions 2025-01-22 09:20:57 -08:00
gat-incompatible-supertrait.stderr Refactor dyn-compatibility error and suggestions 2025-01-22 09:20:57 -08:00
generics.curr.stderr Refactor dyn-compatibility error and suggestions 2025-01-22 09:20:57 -08:00
generics.dyn_compatible_for_dispatch.stderr Refactor dyn-compatibility error and suggestions 2025-01-22 09:20:57 -08:00
generics.rs
impossible-predicates-multiple_supertrait_upcastable-check.rs
item-bounds-can-reference-self.rs
mention-correct-dyn-incompatible-trait.rs
mention-correct-dyn-incompatible-trait.stderr Refactor dyn-compatibility error and suggestions 2025-01-22 09:20:57 -08:00
mentions-Self-in-super-predicates.rs Refactor dyn-compatibility error and suggestions 2025-01-22 09:20:57 -08:00
mentions-Self-in-super-predicates.stderr Refactor dyn-compatibility error and suggestions 2025-01-22 09:20:57 -08:00
mentions-Self.curr.stderr Refactor dyn-compatibility error and suggestions 2025-01-22 09:20:57 -08:00
mentions-Self.dyn_compatible_for_dispatch.stderr Refactor dyn-compatibility error and suggestions 2025-01-22 09:20:57 -08:00
mentions-Self.rs
missing-assoc-type.rs Refactor dyn-compatibility error and suggestions 2025-01-22 09:20:57 -08:00
missing-assoc-type.stderr Refactor dyn-compatibility error and suggestions 2025-01-22 09:20:57 -08:00
no-static.curr.stderr Refactor dyn-compatibility error and suggestions 2025-01-22 09:20:57 -08:00
no-static.dyn_compatible_for_dispatch.stderr Refactor dyn-compatibility error and suggestions 2025-01-22 09:20:57 -08:00
no-static.rs
phantom-fn.rs
reference-to-bare-trait-in-fn-inputs-and-outputs-issue-125139.rs Don't assume traits used as type are trait objs 2024-10-11 17:36:04 +02:00
reference-to-bare-trait-in-fn-inputs-and-outputs-issue-125139.stderr Don't assume traits used as type are trait objs 2024-10-11 17:36:04 +02:00
require-assoc-for-all-super-substs.rs Fix ICE when multiple supertrait substitutions need assoc but only one is provided 2024-12-11 19:53:40 +00:00
require-assoc-for-all-super-substs.stderr Fix ICE when multiple supertrait substitutions need assoc but only one is provided 2024-12-11 19:53:40 +00:00
sized-2.curr.stderr Refactor dyn-compatibility error and suggestions 2025-01-22 09:20:57 -08:00
sized-2.dyn_compatible_for_dispatch.stderr Refactor dyn-compatibility error and suggestions 2025-01-22 09:20:57 -08:00
sized-2.rs
sized.curr.stderr Refactor dyn-compatibility error and suggestions 2025-01-22 09:20:57 -08:00
sized.dyn_compatible_for_dispatch.stderr Refactor dyn-compatibility error and suggestions 2025-01-22 09:20:57 -08:00
sized.rs
supertrait-mentions-GAT.rs Refactor dyn-compatibility error and suggestions 2025-01-22 09:20:57 -08:00
supertrait-mentions-GAT.stderr Refactor dyn-compatibility error and suggestions 2025-01-22 09:20:57 -08:00
supertrait-mentions-Self.rs
supertrait-mentions-Self.stderr Refactor dyn-compatibility error and suggestions 2025-01-22 09:20:57 -08:00
taint-const-eval.curr.stderr Refactor dyn-compatibility error and suggestions 2025-01-22 09:20:57 -08:00
taint-const-eval.dyn_compatible_for_dispatch.stderr Refactor dyn-compatibility error and suggestions 2025-01-22 09:20:57 -08:00
taint-const-eval.rs Refactor dyn-compatibility error and suggestions 2025-01-22 09:20:57 -08:00
undispatchable-receiver-and-wc-references-Self.rs Refactor dyn-compatibility error and suggestions 2025-01-22 09:20:57 -08:00
undispatchable-receiver-and-wc-references-Self.stderr Refactor dyn-compatibility error and suggestions 2025-01-22 09:20:57 -08:00