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
hir-wf-canonicalized.stderr
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
issue-87495.rs
issue-87495.stderr
issue-95665.rs
issue-95665.stderr
issue-96810.rs
issue-96810.stderr
issue-103573.rs
issue-103573.stderr
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
wf-array-elem-sized.stderr
wf-complex-assoc-type.rs
wf-complex-assoc-type.stderr
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
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
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
wf-enum-bound.stderr
wf-enum-fields-struct-variant.rs
wf-enum-fields-struct-variant.stderr
wf-enum-fields.rs
wf-enum-fields.stderr
wf-fn-where-clause.rs
wf-fn-where-clause.stderr
wf-foreign-fn-decl-ret.rs
wf-foreign-fn-decl-ret.stderr
wf-impl-associated-type-region.rs
wf-impl-associated-type-region.stderr remove trailing dots 2023-10-08 10:06:17 +00:00
wf-impl-associated-type-trait.rs
wf-impl-associated-type-trait.stderr
wf-impl-self-type.rs
wf-impl-self-type.stderr
wf-in-fn-arg.rs
wf-in-fn-arg.stderr
wf-in-fn-ret.rs
wf-in-fn-ret.stderr
wf-in-fn-type-arg.rs
wf-in-fn-type-arg.stderr
wf-in-fn-type-implicit.rs
wf-in-fn-type-ret.rs
wf-in-fn-type-ret.stderr
wf-in-fn-type-static.rs
wf-in-fn-type-static.stderr remove trailing dots 2023-10-08 10:06:17 +00:00
wf-in-fn-where-clause.rs
wf-in-fn-where-clause.stderr
wf-in-foreign-fn-decls-issue-80468.rs
wf-in-foreign-fn-decls-issue-80468.stderr
wf-in-obj-type-static.rs
wf-in-obj-type-static.stderr remove trailing dots 2023-10-08 10:06:17 +00:00
wf-in-obj-type-trait.rs
wf-in-obj-type-trait.stderr
wf-in-where-clause-static.rs
wf-inherent-impl-method-where-clause.rs
wf-inherent-impl-method-where-clause.stderr
wf-inherent-impl-where-clause.rs
wf-inherent-impl-where-clause.stderr
wf-misc-methods-issue-28609.rs
wf-misc-methods-issue-28609.stderr
wf-normalization-sized.rs
wf-object-safe.rs
wf-object-safe.stderr
wf-outlives-ty-in-fn-or-trait.rs
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
wf-packed-on-proj-of-type-as-unimpl-trait.stderr
wf-static-method.rs
wf-static-method.stderr
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
wf-struct-bound.stderr
wf-struct-field.rs
wf-struct-field.stderr
wf-trait-associated-type-bound.rs
wf-trait-associated-type-bound.stderr
wf-trait-associated-type-region.rs
wf-trait-associated-type-region.stderr remove trailing dots 2023-10-08 10:06:17 +00:00
wf-trait-associated-type-trait.rs
wf-trait-associated-type-trait.stderr
wf-trait-bound.rs
wf-trait-bound.stderr
wf-trait-default-fn-arg.rs
wf-trait-default-fn-arg.stderr
wf-trait-default-fn-ret.rs
wf-trait-default-fn-ret.stderr
wf-trait-default-fn-where-clause.rs
wf-trait-default-fn-where-clause.stderr
wf-trait-fn-arg.rs
wf-trait-fn-arg.stderr
wf-trait-fn-ret.rs
wf-trait-fn-ret.stderr
wf-trait-fn-where-clause.rs
wf-trait-fn-where-clause.stderr
wf-trait-superbound.rs
wf-trait-superbound.stderr
wf-unsafe-trait-obj-match.rs
wf-unsafe-trait-obj-match.stderr On object safety error, mention new enum as alternative 2023-10-29 23:55:46 +00:00