@@ -370,6 +370,8 @@ lint_builtin_anonymous_params = anonymous parameters are deprecated and will be
370
370
.suggestion = try naming the parameter or explicitly ignoring it
371
371
372
372
lint_builtin_deprecated_attr_link = use of deprecated attribute `{ $name } `: { $reason } . See { $link }
373
+ .msg_suggestion = { $msg }
374
+ .default_suggestion = remove this attribute
373
375
lint_builtin_deprecated_attr_used = use of deprecated attribute `{ $name } `: no longer used.
374
376
lint_builtin_deprecated_attr_default_suggestion = remove this attribute
375
377
@@ -430,10 +432,16 @@ lint_builtin_incomplete_features = the feature `{$name}` is incomplete and may n
430
432
.note = see issue #{ $n } <https://github.com/rust-lang/rust/issues/{ $n } > for more information
431
433
.help = consider using `min_{ $name } ` instead, which is more stable and complete
432
434
433
- lint_builtin_clashing_extern_same_name = `{ $this_fi } ` redeclared with a different signature
435
+ lint_builtin_unpermitted_type_init_zeroed = the type `{ $ty } ` does not permit zero-initialization
436
+ lint_builtin_unpermitted_type_init_unint = the type `{ $ty } ` does not permit being left uninitialized
437
+
438
+ lint_builtin_unpermitted_type_init_label = this code causes undefined behavior when executed
439
+ lint_builtin_unpermitted_type_init_label_suggestion = help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
440
+
441
+ lint_builtin_clashing_extern_same_name = `{ $this } ` redeclared with a different signature
434
442
.previous_decl_label = `{ $orig } ` previously declared here
435
443
.mismatch_label = this signature doesn't match the previous declaration
436
- lint_builtin_clashing_extern_diff_name = `{ $this_fi } ` redeclares `{ $orig } ` with a different signature
444
+ lint_builtin_clashing_extern_diff_name = `{ $this } ` redeclares `{ $orig } ` with a different signature
437
445
.previous_decl_label = `{ $orig } ` previously declared here
438
446
.mismatch_label = this signature doesn't match the previous declaration
439
447
0 commit comments