Skip to content

Commit 1bfe96e

Browse files
committed
Auto merge of rust-lang#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.
2 parents a360fab + 34a3187 commit 1bfe96e

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

crates/ide-diagnostics/src/handlers/expected_function.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ pub(crate) fn expected_function(
1414
format!("expected function, found {}", d.found.display(ctx.sema.db)),
1515
ctx.sema.diagnostics_display_range(d.call.clone().map(|it| it.into())).range,
1616
)
17+
.experimental()
1718
}
1819

1920
#[cfg(test)]

crates/ide-diagnostics/src/handlers/unresolved_field.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ pub(crate) fn unresolved_field(
3232
ctx.sema.diagnostics_display_range(d.expr.clone().map(|it| it.into())).range,
3333
)
3434
.with_fixes(fixes(ctx, d))
35+
.experimental()
3536
}
3637

3738
fn fixes(ctx: &DiagnosticsContext<'_>, d: &hir::UnresolvedField) -> Option<Vec<Assist>> {

crates/ide-diagnostics/src/handlers/unresolved_method.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ pub(crate) fn unresolved_method(
3232
ctx.sema.diagnostics_display_range(d.expr.clone().map(|it| it.into())).range,
3333
)
3434
.with_fixes(fixes(ctx, d))
35+
.experimental()
3536
}
3637

3738
fn fixes(ctx: &DiagnosticsContext<'_>, d: &hir::UnresolvedMethodCall) -> Option<Vec<Assist>> {

0 commit comments

Comments
 (0)