Auto merge of #14267 - Veykril:experimental-diagnostics, r=Veykril
internal: Mark unresolved field, unresolved method and expected function diagnostics experimental Our type checking is still not good enough for us to have these diagnostics be enabled by default it seems so let's mark them as experimental for now.
This commit is contained in:
commit
1bfe96ec66
crates/ide-diagnostics/src/handlers
@ -14,6 +14,7 @@ pub(crate) fn expected_function(
|
||||
format!("expected function, found {}", d.found.display(ctx.sema.db)),
|
||||
ctx.sema.diagnostics_display_range(d.call.clone().map(|it| it.into())).range,
|
||||
)
|
||||
.experimental()
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
@ -32,6 +32,7 @@ pub(crate) fn unresolved_field(
|
||||
ctx.sema.diagnostics_display_range(d.expr.clone().map(|it| it.into())).range,
|
||||
)
|
||||
.with_fixes(fixes(ctx, d))
|
||||
.experimental()
|
||||
}
|
||||
|
||||
fn fixes(ctx: &DiagnosticsContext<'_>, d: &hir::UnresolvedField) -> Option<Vec<Assist>> {
|
||||
|
@ -32,6 +32,7 @@ pub(crate) fn unresolved_method(
|
||||
ctx.sema.diagnostics_display_range(d.expr.clone().map(|it| it.into())).range,
|
||||
)
|
||||
.with_fixes(fixes(ctx, d))
|
||||
.experimental()
|
||||
}
|
||||
|
||||
fn fixes(ctx: &DiagnosticsContext<'_>, d: &hir::UnresolvedMethodCall) -> Option<Vec<Assist>> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user