diff options
| author | David Wood <david.wood@huawei.com> | 2022-06-28 13:40:59 +0100 |
|---|---|---|
| committer | David Wood <david.wood@huawei.com> | 2022-06-30 08:59:22 +0100 |
| commit | dbdbdb68740dd3be9cea059dd5cb6067c45f38d7 (patch) | |
| tree | 8da1066b5203950ef9358ed04e3e2e1c4a306148 /compiler/rustc_error_messages | |
| parent | a13b70ea83f1f3781cba2dbdc990520bdbb6a740 (diff) | |
| download | rust-dbdbdb68740dd3be9cea059dd5cb6067c45f38d7.tar.gz rust-dbdbdb68740dd3be9cea059dd5cb6067c45f38d7.zip | |
lint: port no-mangle diagnostics
Signed-off-by: David Wood <david.wood@huawei.com>
Diffstat (limited to 'compiler/rustc_error_messages')
| -rw-r--r-- | compiler/rustc_error_messages/locales/en-US/lint.ftl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/rustc_error_messages/locales/en-US/lint.ftl b/compiler/rustc_error_messages/locales/en-US/lint.ftl index 3de652e3093..cbe7e15a723 100644 --- a/compiler/rustc_error_messages/locales/en-US/lint.ftl +++ b/compiler/rustc_error_messages/locales/en-US/lint.ftl @@ -343,3 +343,9 @@ lint-builtin-unused-doc-comment = unused doc comment .label = rustdoc does not generate documentation for {$kind} .plain-help = use `//` for a plain comment .block-help = use `/* */` for a plain comment + +lint-builtin-no-mangle-generic = functions generic over types or consts must be mangled + .suggestion = remove this attribute + +lint-builtin-const-no-mangle = const items should never be `#[no_mangle]` + .suggestion = try a static value |
