about summary refs log tree commit diff
path: root/compiler/rustc_error_messages
diff options
context:
space:
mode:
authorRejyr <jerrylwang123@gmail.com>2022-10-05 08:23:00 -0400
committerRejyr <jerrylwang123@gmail.com>2023-01-09 17:07:25 -0500
commitab66ea61cf4b6f47109d9c24d5a3ce3ea169c60a (patch)
tree04118315f2b0ea3ea15c299b51e0794c35818dbe /compiler/rustc_error_messages
parentf9289c35fb0a6e1ddde9200423cdd7d5dafb0886 (diff)
downloadrust-ab66ea61cf4b6f47109d9c24d5a3ce3ea169c60a.tar.gz
rust-ab66ea61cf4b6f47109d9c24d5a3ce3ea169c60a.zip
add: `emit{,_spanned}_lint` for `LintLevelsBuilder`
add: `emit_spanned_lint` and `emit_lint` for `LintLevelsBuilder`
migrate: `DeprecatedLintName`
Diffstat (limited to 'compiler/rustc_error_messages')
-rw-r--r--compiler/rustc_error_messages/locales/en-US/lint.ftl4
1 files changed, 4 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 2eb409a5ddd..78b8f6aaae9 100644
--- a/compiler/rustc_error_messages/locales/en-US/lint.ftl
+++ b/compiler/rustc_error_messages/locales/en-US/lint.ftl
@@ -16,6 +16,10 @@ lint_enum_intrinsics_mem_variant =
 lint_expectation = this lint expectation is unfulfilled
     .note = the `unfulfilled_lint_expectations` lint can't be expected and will always produce this message
 
+lint_deprecated_lint_name =
+    lint name `{$name}` is deprecated and may not have an effect in the future.
+    .suggestion = change it to
+
 lint_hidden_unicode_codepoints = unicode codepoint changing visible direction of text present in {$label}
     .label = this {$label} contains {$count ->
         [one] an invisible