Set experimental field at diagnostic new instead of lib

This commit is contained in:
Zach 2024-01-10 05:58:25 -06:00
parent beeaaf184e
commit 1aff8157bc
2 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@ pub(crate) fn unresolved_assoc_item(
"no such associated item",
d.expr_or_pat.clone().map(Into::into),
)
.experimental()
}
#[cfg(test)]

View File

@ -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).experimental(),
AnyDiagnostic::UnresolvedAssocItem(d) => handlers::unresolved_assoc_item::unresolved_assoc_item(&ctx, &d),
AnyDiagnostic::UnresolvedExternCrate(d) => handlers::unresolved_extern_crate::unresolved_extern_crate(&ctx, &d),
AnyDiagnostic::UnresolvedField(d) => handlers::unresolved_field::unresolved_field(&ctx, &d),
AnyDiagnostic::UnresolvedImport(d) => handlers::unresolved_import::unresolved_import(&ctx, &d),