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:
commit
21c57f5490
37 changed files with 260 additions and 198 deletions
|
@ -1434,24 +1434,27 @@ pub(crate) enum OnlyCurrentTraits {
|
|||
#[diag(hir_analysis_only_current_traits_outside, code = E0117)]
|
||||
Outside {
|
||||
#[primary_span]
|
||||
#[label(hir_analysis_only_current_traits_label)]
|
||||
span: Span,
|
||||
#[note(hir_analysis_only_current_traits_note_uncovered)]
|
||||
#[note(hir_analysis_only_current_traits_note_more_info)]
|
||||
#[note(hir_analysis_only_current_traits_note)]
|
||||
note: (),
|
||||
},
|
||||
#[diag(hir_analysis_only_current_traits_primitive, code = E0117)]
|
||||
Primitive {
|
||||
#[primary_span]
|
||||
#[label(hir_analysis_only_current_traits_label)]
|
||||
span: Span,
|
||||
#[note(hir_analysis_only_current_traits_note_uncovered)]
|
||||
#[note(hir_analysis_only_current_traits_note_more_info)]
|
||||
#[note(hir_analysis_only_current_traits_note)]
|
||||
note: (),
|
||||
},
|
||||
#[diag(hir_analysis_only_current_traits_arbitrary, code = E0117)]
|
||||
Arbitrary {
|
||||
#[primary_span]
|
||||
#[label(hir_analysis_only_current_traits_label)]
|
||||
span: Span,
|
||||
#[note(hir_analysis_only_current_traits_note_uncovered)]
|
||||
#[note(hir_analysis_only_current_traits_note_more_info)]
|
||||
#[note(hir_analysis_only_current_traits_note)]
|
||||
note: (),
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue