rust/tests/ui/wf
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
..
hir-wf-canonicalized.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
hir-wf-canonicalized.stderr Point out if a local trait has no implementations 2023-09-10 21:20:36 +00:00
hir-wf-check-erase-regions.rs Work around the fact that check_mod_type_wf may spuriously return ErrorGuaranteed, even if that error is only emitted by check_modwitem_types 2023-10-25 12:04:54 +00:00
hir-wf-check-erase-regions.stderr Work around the fact that check_mod_type_wf may spuriously return ErrorGuaranteed, even if that error is only emitted by check_modwitem_types 2023-10-25 12:04:54 +00:00
issue-48638.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-87495.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-87495.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-95665.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-95665.stderr Point out if a local trait has no implementations 2023-09-10 21:20:36 +00:00
issue-96810.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-96810.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-103573.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-103573.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-110157.rs Work around the fact that check_mod_type_wf may spuriously return ErrorGuaranteed, even if that error is only emitted by check_modwitem_types 2023-10-25 12:04:54 +00:00
issue-110157.stderr Work around the fact that check_mod_type_wf may spuriously return ErrorGuaranteed, even if that error is only emitted by check_modwitem_types 2023-10-25 12:04:54 +00:00
wf-array-elem-sized.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-array-elem-sized.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-complex-assoc-type.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-complex-assoc-type.stderr Point out if a local trait has no implementations 2023-09-10 21:20:36 +00:00
wf-const-type.rs Work around the fact that check_mod_type_wf may spuriously return ErrorGuaranteed, even if that error is only emitted by check_modwitem_types 2023-10-25 12:04:54 +00:00
wf-const-type.stderr Work around the fact that check_mod_type_wf may spuriously return ErrorGuaranteed, even if that error is only emitted by check_modwitem_types 2023-10-25 12:04:54 +00:00
wf-convert-unsafe-trait-obj-box.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-convert-unsafe-trait-obj-box.stderr On object safety error, mention new enum as alternative 2023-10-29 23:55:46 +00:00
wf-convert-unsafe-trait-obj.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-convert-unsafe-trait-obj.stderr On object safety error, mention new enum as alternative 2023-10-29 23:55:46 +00:00
wf-enum-bound.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-enum-bound.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-enum-fields-struct-variant.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-enum-fields-struct-variant.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-enum-fields.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-enum-fields.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-fn-where-clause.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-fn-where-clause.stderr Reorder fullfillment errors to keep more interesting ones first 2023-10-04 02:04:14 +00:00
wf-foreign-fn-decl-ret.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-foreign-fn-decl-ret.stderr Point out if a local trait has no implementations 2023-09-10 21:20:36 +00:00
wf-impl-associated-type-region.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-impl-associated-type-region.stderr remove trailing dots 2023-10-08 10:06:17 +00:00
wf-impl-associated-type-trait.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-impl-associated-type-trait.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-impl-self-type.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-impl-self-type.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-in-fn-arg.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-in-fn-arg.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-in-fn-ret.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-in-fn-ret.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-in-fn-type-arg.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-in-fn-type-arg.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-in-fn-type-implicit.rs add known-bug test for unsound issue 104005 2023-04-22 13:57:34 -04:00
wf-in-fn-type-ret.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-in-fn-type-ret.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-in-fn-type-static.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-in-fn-type-static.stderr remove trailing dots 2023-10-08 10:06:17 +00:00
wf-in-fn-where-clause.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-in-fn-where-clause.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-in-foreign-fn-decls-issue-80468.rs Introduce ReError 2023-02-09 10:26:49 +00:00
wf-in-foreign-fn-decls-issue-80468.stderr Introduce ReError 2023-02-09 10:26:49 +00:00
wf-in-obj-type-static.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-in-obj-type-static.stderr remove trailing dots 2023-10-08 10:06:17 +00:00
wf-in-obj-type-trait.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-in-obj-type-trait.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-in-where-clause-static.rs add known-bug test for unsound issue 98117 2023-04-22 13:31:00 -04:00
wf-inherent-impl-method-where-clause.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-inherent-impl-method-where-clause.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-inherent-impl-where-clause.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-inherent-impl-where-clause.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-misc-methods-issue-28609.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-misc-methods-issue-28609.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-normalization-sized.rs add known-bug test for unsound issue 100041 2023-04-22 13:37:13 -04:00
wf-object-safe.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-object-safe.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-outlives-ty-in-fn-or-trait.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-outlives-ty-in-fn-or-trait.stderr remove trailing dots 2023-10-08 10:06:17 +00:00
wf-packed-on-proj-of-type-as-unimpl-trait.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-packed-on-proj-of-type-as-unimpl-trait.stderr Point out if a local trait has no implementations 2023-09-10 21:20:36 +00:00
wf-static-method.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-static-method.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-static-type.rs Work around the fact that check_mod_type_wf may spuriously return ErrorGuaranteed, even if that error is only emitted by check_modwitem_types 2023-10-25 12:04:54 +00:00
wf-static-type.stderr Work around the fact that check_mod_type_wf may spuriously return ErrorGuaranteed, even if that error is only emitted by check_modwitem_types 2023-10-25 12:04:54 +00:00
wf-struct-bound.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-struct-bound.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-struct-field.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-struct-field.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-trait-associated-type-bound.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-trait-associated-type-bound.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-trait-associated-type-region.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-trait-associated-type-region.stderr remove trailing dots 2023-10-08 10:06:17 +00:00
wf-trait-associated-type-trait.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-trait-associated-type-trait.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-trait-bound.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-trait-bound.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-trait-default-fn-arg.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-trait-default-fn-arg.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-trait-default-fn-ret.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-trait-default-fn-ret.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-trait-default-fn-where-clause.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-trait-default-fn-where-clause.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-trait-fn-arg.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-trait-fn-arg.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-trait-fn-ret.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-trait-fn-ret.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-trait-fn-where-clause.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-trait-fn-where-clause.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-trait-superbound.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-trait-superbound.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-unsafe-trait-obj-match.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-unsafe-trait-obj-match.stderr On object safety error, mention new enum as alternative 2023-10-29 23:55:46 +00:00