privacy: port "field is private" diag
Signed-off-by: David Wood <david.wood@huawei.com>
This commit is contained in:
parent
ae612241dc
commit
be9ebfdbce
6 changed files with 52 additions and 19 deletions
3
compiler/rustc_error_messages/locales/en-US/privacy.ftl
Normal file
3
compiler/rustc_error_messages/locales/en-US/privacy.ftl
Normal file
|
@ -0,0 +1,3 @@
|
|||
privacy-field-is-private = field `{$field_name}` of {$variant_descr} `{$def_path_str}` is private
|
||||
privacy-field-is-private-is-update-syntax-label = field `{$field_name}` is private
|
||||
privacy-field-is-private-label = private field
|
|
@ -32,6 +32,7 @@ pub use unic_langid::{langid, LanguageIdentifier};
|
|||
// Generates `DEFAULT_LOCALE_RESOURCES` static and `fluent_generated` module.
|
||||
fluent_messages! {
|
||||
parser => "../locales/en-US/parser.ftl",
|
||||
privacy => "../locales/en-US/privacy.ftl",
|
||||
typeck => "../locales/en-US/typeck.ftl",
|
||||
builtin_macros => "../locales/en-US/builtin_macros.ftl",
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue