-
Notifications
You must be signed in to change notification settings - Fork 1.8k
minor: Mark unresolved associated item diagnostic as experimental #16330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
crates/ide-diagnostics/src/lib.rs
Outdated
@@ -373,7 +373,7 @@ pub fn diagnostics( | |||
AnyDiagnostic::UndeclaredLabel(d) => handlers::undeclared_label::undeclared_label(&ctx, &d), | |||
AnyDiagnostic::UnimplementedBuiltinMacro(d) => handlers::unimplemented_builtin_macro::unimplemented_builtin_macro(&ctx, &d), | |||
AnyDiagnostic::UnreachableLabel(d) => handlers::unreachable_label::unreachable_label(&ctx, &d), | |||
AnyDiagnostic::UnresolvedAssocItem(d) => handlers::unresolved_assoc_item::unresolved_assoc_item(&ctx, &d), | |||
AnyDiagnostic::UnresolvedAssocItem(d) => handlers::unresolved_assoc_item::unresolved_assoc_item(&ctx, &d).experimental(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be better to add .experimental()
after Diagnostic::new
rust-analyzer/crates/ide-diagnostics/src/handlers/unresolved_assoc_item.rs
Lines 10 to 15 in ae6e737
Diagnostic::new_with_syntax_node_ptr( | |
ctx, | |
DiagnosticCode::RustcHardError("E0599"), | |
"no such associated item", | |
d.expr_or_pat.clone().map(Into::into), | |
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. I've been running into this false positive in a few projects recently. Thank you for all the awesome work, Rust Analyzer is fantastic and keeps getting better.
Thanks! |
☀️ Test successful - checks-actions |
Per #16327 unresolved associated item has false positives. Mark the diagnostic as experimental until this is more dependable.