about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-03-06 21:26:22 +0000
committerbors <bors@rust-lang.org>2023-03-06 21:26:22 +0000
commit1bfe96ec667c9acafa52c5d4bb43ad1bc2e9c3ab (patch)
tree22e65dcbddd81bbd14d010604d01891e1e9c5df5
parenta360fab9a36a20046fed4c6e9b863c52c7578de0 (diff)
parent34a3187ee875e991e97c21cf23d31cf86313b651 (diff)
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.
-rw-r--r--crates/ide-diagnostics/src/handlers/expected_function.rs1
-rw-r--r--crates/ide-diagnostics/src/handlers/unresolved_field.rs1
-rw-r--r--crates/ide-diagnostics/src/handlers/unresolved_method.rs1
3 files changed, 3 insertions, 0 deletions
diff --git a/crates/ide-diagnostics/src/handlers/expected_function.rs b/crates/ide-diagnostics/src/handlers/expected_function.rs
index 23bc778da29..d2f27664d6f 100644
--- a/crates/ide-diagnostics/src/handlers/expected_function.rs
+++ b/crates/ide-diagnostics/src/handlers/expected_function.rs
@@ -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)]
diff --git a/crates/ide-diagnostics/src/handlers/unresolved_field.rs b/crates/ide-diagnostics/src/handlers/unresolved_field.rs
index 33c39de085d..9754fc3f68b 100644
--- a/crates/ide-diagnostics/src/handlers/unresolved_field.rs
+++ b/crates/ide-diagnostics/src/handlers/unresolved_field.rs
@@ -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>> {
diff --git a/crates/ide-diagnostics/src/handlers/unresolved_method.rs b/crates/ide-diagnostics/src/handlers/unresolved_method.rs
index 0d1f91f02c3..4b0e64cb896 100644
--- a/crates/ide-diagnostics/src/handlers/unresolved_method.rs
+++ b/crates/ide-diagnostics/src/handlers/unresolved_method.rs
@@ -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>> {