Skip to content

Commit 758140e

Browse files
committed
migrate: rest of builtin.rs without builtin_asm_labels
1 parent 587d497 commit 758140e

File tree

3 files changed

+363
-185
lines changed

3 files changed

+363
-185
lines changed

compiler/rustc_error_messages/locales/en-US/lint.ftl

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,8 @@ lint_builtin_anonymous_params = anonymous parameters are deprecated and will be
370370
.suggestion = try naming the parameter or explicitly ignoring it
371371
372372
lint_builtin_deprecated_attr_link = use of deprecated attribute `{$name}`: {$reason}. See {$link}
373+
.msg_suggestion = {$msg}
374+
.default_suggestion = remove this attribute
373375
lint_builtin_deprecated_attr_used = use of deprecated attribute `{$name}`: no longer used.
374376
lint_builtin_deprecated_attr_default_suggestion = remove this attribute
375377
@@ -430,10 +432,16 @@ lint_builtin_incomplete_features = the feature `{$name}` is incomplete and may n
430432
.note = see issue #{$n} <https://github.com/rust-lang/rust/issues/{$n}> for more information
431433
.help = consider using `min_{$name}` instead, which is more stable and complete
432434
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
434442
.previous_decl_label = `{$orig}` previously declared here
435443
.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
437445
.previous_decl_label = `{$orig}` previously declared here
438446
.mismatch_label = this signature doesn't match the previous declaration
439447

0 commit comments

Comments
 (0)