Skip to content

Commit 1aff815

Browse files
committed
Set experimental field at diagnostic new instead of lib
1 parent beeaaf1 commit 1aff815

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ pub(crate) fn unresolved_assoc_item(
1313
"no such associated item",
1414
d.expr_or_pat.clone().map(Into::into),
1515
)
16+
.experimental()
1617
}
1718

1819
#[cfg(test)]

crates/ide-diagnostics/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ pub fn diagnostics(
373373
AnyDiagnostic::UndeclaredLabel(d) => handlers::undeclared_label::undeclared_label(&ctx, &d),
374374
AnyDiagnostic::UnimplementedBuiltinMacro(d) => handlers::unimplemented_builtin_macro::unimplemented_builtin_macro(&ctx, &d),
375375
AnyDiagnostic::UnreachableLabel(d) => handlers::unreachable_label::unreachable_label(&ctx, &d),
376-
AnyDiagnostic::UnresolvedAssocItem(d) => handlers::unresolved_assoc_item::unresolved_assoc_item(&ctx, &d).experimental(),
376+
AnyDiagnostic::UnresolvedAssocItem(d) => handlers::unresolved_assoc_item::unresolved_assoc_item(&ctx, &d),
377377
AnyDiagnostic::UnresolvedExternCrate(d) => handlers::unresolved_extern_crate::unresolved_extern_crate(&ctx, &d),
378378
AnyDiagnostic::UnresolvedField(d) => handlers::unresolved_field::unresolved_field(&ctx, &d),
379379
AnyDiagnostic::UnresolvedImport(d) => handlers::unresolved_import::unresolved_import(&ctx, &d),

0 commit comments

Comments
 (0)