]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_messages/locales/en-US/hir_analysis.ftl
Match crate and slug names
[rust.git] / compiler / rustc_error_messages / locales / en-US / hir_analysis.ftl
1 hir_analysis_unrecognized_atomic_operation =
2     unrecognized atomic operation function: `{$op}`
3     .label = unrecognized atomic operation
4
5 hir_analysis_wrong_number_of_generic_arguments_to_intrinsic =
6     intrinsic has wrong number of {$descr} parameters: found {$found}, expected {$expected}
7     .label = expected {$expected} {$descr} {$expected ->
8         [one] parameter
9         *[other] parameters
10     }
11
12 hir_analysis_unrecognized_intrinsic_function =
13     unrecognized intrinsic function: `{$name}`
14     .label = unrecognized intrinsic
15
16 hir_analysis_lifetimes_or_bounds_mismatch_on_trait =
17     lifetime parameters or bounds on {$item_kind} `{$ident}` do not match the trait declaration
18     .label = lifetimes do not match {$item_kind} in trait
19     .generics_label = lifetimes in impl do not match this {$item_kind} in trait
20
21 hir_analysis_drop_impl_on_wrong_item =
22     the `Drop` trait may only be implemented for local structs, enums, and unions
23     .label = must be a struct, enum, or union in the current crate
24
25 hir_analysis_field_already_declared =
26     field `{$field_name}` is already declared
27     .label = field already declared
28     .previous_decl_label = `{$field_name}` first declared here
29
30 hir_analysis_copy_impl_on_type_with_dtor =
31     the trait `Copy` may not be implemented for this type; the type has a destructor
32     .label = `Copy` not allowed on types with destructors
33
34 hir_analysis_multiple_relaxed_default_bounds =
35     type parameter has more than one relaxed default bound, only one is supported
36
37 hir_analysis_copy_impl_on_non_adt =
38     the trait `Copy` may not be implemented for this type
39     .label = type is not a structure or enumeration
40
41 hir_analysis_trait_object_declared_with_no_traits =
42     at least one trait is required for an object type
43     .alias_span = this alias does not contain a trait
44
45 hir_analysis_ambiguous_lifetime_bound =
46     ambiguous lifetime bound, explicit lifetime bound required
47
48 hir_analysis_assoc_type_binding_not_allowed =
49     associated type bindings are not allowed here
50     .label = associated type not allowed here
51
52 hir_analysis_typeof_reserved_keyword_used =
53     `typeof` is a reserved keyword but unimplemented
54     .suggestion = consider replacing `typeof(...)` with an actual type
55     .label = reserved keyword
56
57 hir_analysis_value_of_associated_struct_already_specified =
58     the value of the associated type `{$item_name}` (from trait `{$def_path}`) is already specified
59     .label = re-bound here
60     .previous_bound_label = `{$item_name}` bound here first
61
62 hir_analysis_unconstrained_opaque_type = unconstrained opaque type
63     .note = `{$name}` must be used in combination with a concrete type within the same {$what}
64
65 hir_analysis_missing_type_params =
66     the type {$parameterCount ->
67         [one] parameter
68         *[other] parameters
69     } {$parameters} must be explicitly specified
70     .label = type {$parameterCount ->
71         [one] parameter
72         *[other] parameters
73     } {$parameters} must be specified for this
74     .suggestion = set the type {$parameterCount ->
75         [one] parameter
76         *[other] parameters
77     } to the desired {$parameterCount ->
78         [one] type
79         *[other] types
80     }
81     .no_suggestion_label = missing {$parameterCount ->
82         [one] reference
83         *[other] references
84     } to {$parameters}
85     .note = because of the default `Self` reference, type parameters must be specified on object types
86
87 hir_analysis_manual_implementation =
88     manual implementations of `{$trait_name}` are experimental
89     .label = manual implementations of `{$trait_name}` are experimental
90     .help = add `#![feature(unboxed_closures)]` to the crate attributes to enable
91
92 hir_analysis_substs_on_overridden_impl = could not resolve substs on overridden impl
93
94 hir_analysis_unused_extern_crate =
95     unused extern crate
96     .suggestion = remove it
97
98 hir_analysis_extern_crate_not_idiomatic =
99     `extern crate` is not idiomatic in the new edition
100     .suggestion = convert it to a `{$msg_code}`
101
102 hir_analysis_expected_used_symbol = expected `used`, `used(compiler)` or `used(linker)`
103
104 hir_analysis_const_impl_for_non_const_trait =
105     const `impl` for trait `{$trait_name}` which is not marked with `#[const_trait]`
106     .suggestion = mark `{$trait_name}` as const
107     .note = marking a trait with `#[const_trait]` ensures all default method bodies are `const`
108     .adding = adding a non-const method body in the future would be a breaking change
109
110 hir_analysis_const_bound_for_non_const_trait =
111     ~const can only be applied to `#[const_trait]` traits
112
113 hir_analysis_self_in_impl_self =
114     `Self` is not valid in the self type of an impl block
115     .note = replace `Self` with a different type