rust/tests/ui/traits/object
Esteban Küber 8c04999226 On object safety error, mention new enum as alternative
When we encounter a `dyn Trait` that isn't object safe, look for its
implementors. If there's one, mention using it directly If there are
less than 9, mention the possibility of creating a new enum and using
that instead.

Account for object unsafe `impl Trait on dyn Trait {}`.  Make a
distinction between public and sealed traits.

Fix #80194.
2023-10-29 23:55:46 +00:00
..
auto-dedup-in-impl.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
auto-dedup-in-impl.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
auto-dedup.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bounds-cycle-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bounds-cycle-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bounds-cycle-3.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bounds-cycle-4.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
enforce-supertrait-projection.rs Ensure that dyn trait bounds stay sorted 2023-09-07 06:57:08 +00:00
enforce-supertrait-projection.stderr Ensure that dyn trait bounds stay sorted 2023-09-07 06:57:08 +00:00
exclusion.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
generics.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-33140-traitobject-crate.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-33140-traitobject-crate.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-44454-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-44454-1.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-44454-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-44454-2.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-44454-3.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-44454-3.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lifetime-first.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
macro-matcher.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
macro-matcher.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
print_vtable_sizes.rs Don't emit useless vptrs for marker traits 2023-07-19 12:06:31 +00:00
print_vtable_sizes.stdout Don't emit useless vptrs for marker traits 2023-07-19 12:06:31 +00:00
safety.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
safety.stderr On object safety error, mention new enum as alternative 2023-10-29 23:55:46 +00:00
supertrait-lifetime-bound.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
supertrait-lifetime-bound.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
vs-lifetime-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
vs-lifetime-2.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
vs-lifetime.rs diagnostics: remove inconsistent English article "this" from E0107 2023-02-23 10:27:06 -07:00
vs-lifetime.stderr diagnostics: remove inconsistent English article "this" from E0107 2023-02-23 10:27:06 -07:00
with-lifetime-bound.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
with-self-in-projection-output-bad.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
with-self-in-projection-output-bad.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
with-self-in-projection-output-good.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
with-self-in-projection-output-repeated-supertrait.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00