Suggesting an available assoc item is always maybe-incorrect
This commit is contained in:
parent
cefe1dcef0
commit
ef121f28d8
2 changed files with 6 additions and 14 deletions
|
@ -126,12 +126,14 @@ pub enum AssocItemNotFoundSugg<'a> {
|
|||
assoc_kind: &'static str,
|
||||
suggested_name: Symbol,
|
||||
},
|
||||
#[suggestion(hir_analysis_assoc_item_not_found_other_sugg, code = "{suggested_name}")]
|
||||
#[suggestion(
|
||||
hir_analysis_assoc_item_not_found_other_sugg,
|
||||
code = "{suggested_name}",
|
||||
applicability = "maybe-incorrect"
|
||||
)]
|
||||
Other {
|
||||
#[primary_span]
|
||||
span: Span,
|
||||
#[applicability]
|
||||
applicability: Applicability,
|
||||
ty_param_name: &'a str,
|
||||
assoc_kind: &'static str,
|
||||
suggested_name: Symbol,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue