1
Fork 0
This commit is contained in:
kadiwa 2023-04-17 09:16:07 +02:00
parent 8a778ca1e3
commit 85653831f7
No known key found for this signature in database
GPG key ID: 0B52AE391C674CE5
7 changed files with 10 additions and 10 deletions

View file

@ -2628,7 +2628,7 @@ impl<'tcx> LateLintPass<'tcx> for InvalidValue {
if let Some(err) = with_no_trimmed_paths!(ty_find_init_error(cx, conjured_ty, init)) {
let msg = match init {
InitKind::Zeroed => fluent::lint_builtin_unpermitted_type_init_zeroed,
InitKind::Uninit => fluent::lint_builtin_unpermitted_type_init_unint,
InitKind::Uninit => fluent::lint_builtin_unpermitted_type_init_uninit,
};
let sub = BuiltinUnpermittedTypeInitSub { err };
cx.emit_spanned_lint(