1
Fork 0

Rollup merge of #128391 - cafce25:issue-128390, r=lcnr

Change orphan hint from "only" to "any uncovered type inside..."

Fix #128390
This commit is contained in:
Matthias Krüger 2024-10-17 12:07:19 +02:00 committed by GitHub
commit 21c57f5490
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
37 changed files with 260 additions and 198 deletions

View file

@ -356,12 +356,14 @@ hir_analysis_only_current_traits_arbitrary = only traits defined in the current
hir_analysis_only_current_traits_foreign = this is not defined in the current crate because this is a foreign trait
hir_analysis_only_current_traits_label = impl doesn't use only types from inside the current crate
hir_analysis_only_current_traits_name = this is not defined in the current crate because {$name} are always foreign
hir_analysis_only_current_traits_note = define and implement a trait or new type instead
hir_analysis_only_current_traits_note_more_info = for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
hir_analysis_only_current_traits_note_uncovered = impl doesn't have any local type before any uncovered type parameters
hir_analysis_only_current_traits_opaque = type alias impl trait is treated as if it were foreign, because its hidden type could be from a foreign crate
hir_analysis_only_current_traits_outside = only traits defined in the current crate can be implemented for types defined outside of the crate