]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_messages/locales/en-US/lint.ftl
lint: port translation migration diagnostics
[rust.git] / compiler / rustc_error_messages / locales / en-US / lint.ftl
1 lint-array-into-iter =
2     this method call resolves to `<&{$target} as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to <{$target} as IntoIterator>::into_iter in Rust 2021
3     .use-iter-suggestion = use `.iter()` instead of `.into_iter()` to avoid ambiguity
4     .remove-into-iter-suggestion = or remove `.into_iter()` to iterate by value
5     .use-explicit-into-iter-suggestion =
6         or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value
7
8 lint-enum-intrinsics-mem-discriminant =
9     the return value of `mem::discriminant` is unspecified when called with a non-enum type
10     .note = the argument to `discriminant` should be a reference to an enum, but it was passed a reference to a `{$ty_param}`, which is not an enum.
11
12 lint-enum-intrinsics-mem-variant =
13     the return value of `mem::variant_count` is unspecified when called with a non-enum type
14     .note = the type parameter of `variant_count` should be an enum, but it was instantiated with the type `{$ty_param}`, which is not an enum.
15
16 lint-expectation = this lint expectation is unfulfilled
17     .note = the `unfulfilled_lint_expectations` lint can't be expected and will always produce this message
18
19 lint-hidden-unicode-codepoints = unicode codepoint changing visible direction of text present in {$label}
20     .label = this {$label} contains {$count ->
21         [one] an invisible
22         *[other] invisible
23     } unicode text flow control {$count ->
24         [one] codepoint
25         *[other] codepoints
26     }
27     .note = these kind of unicode codepoints change the way text flows on applications that support them, but can cause confusion because they change the order of characters on the screen
28     .suggestion-remove = if their presence wasn't intentional, you can remove them
29     .suggestion-escape = if you want to keep them but make them visible in your source code, you can escape them
30     .no-suggestion-note-escape = if you want to keep them but make them visible in your source code, you can escape them: {$escaped}
31
32 lint-default-hash-types = prefer `{$preferred}` over `{$used}`, it has better performance
33     .note = a `use rustc_data_structures::fx::{$preferred}` may be necessary
34
35 lint-query-instability = using `{$query}` can result in unstable query results
36     .note = if you believe this case to be fine, allow this lint and add a comment explaining your rationale
37
38 lint-tykind-kind = usage of `ty::TyKind::<kind>`
39     .suggestion = try using `ty::<kind>` directly
40
41 lint-tykind = usage of `ty::TyKind`
42     .help = try using `Ty` instead
43
44 lint-ty-qualified = usage of qualified `ty::{$ty}`
45     .suggestion = try importing it and using it unqualified
46
47 lint-lintpass-by-hand = implementing `LintPass` by hand
48     .help = try using `declare_lint_pass!` or `impl_lint_pass!` instead
49
50 lint-non-existant-doc-keyword = found non-existing keyword `{$keyword}` used in `#[doc(keyword = \"...\")]`
51     .help = only existing keywords are allowed in core/std
52
53 lint-diag-out-of-impl =
54     diagnostics should only be created in `SessionDiagnostic`/`AddSubdiagnostic` impls
55
56 lint-untranslatable-diag = diagnostics should be created using translatable messages