]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_messages/locales/en-US/hir_analysis.ftl
drive-by: Fix path spans
[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     .where_label = this `where` clause might not match the one in the trait
21     .bounds_label = this bound might be missing in the impl
22
23 hir_analysis_drop_impl_on_wrong_item =
24     the `Drop` trait may only be implemented for local structs, enums, and unions
25     .label = must be a struct, enum, or union in the current crate
26
27 hir_analysis_field_already_declared =
28     field `{$field_name}` is already declared
29     .label = field already declared
30     .previous_decl_label = `{$field_name}` first declared here
31
32 hir_analysis_copy_impl_on_type_with_dtor =
33     the trait `Copy` may not be implemented for this type; the type has a destructor
34     .label = `Copy` not allowed on types with destructors
35
36 hir_analysis_multiple_relaxed_default_bounds =
37     type parameter has more than one relaxed default bound, only one is supported
38
39 hir_analysis_copy_impl_on_non_adt =
40     the trait `Copy` may not be implemented for this type
41     .label = type is not a structure or enumeration
42
43 hir_analysis_trait_object_declared_with_no_traits =
44     at least one trait is required for an object type
45     .alias_span = this alias does not contain a trait
46
47 hir_analysis_ambiguous_lifetime_bound =
48     ambiguous lifetime bound, explicit lifetime bound required
49
50 hir_analysis_assoc_type_binding_not_allowed =
51     associated type bindings are not allowed here
52     .label = associated type not allowed here
53
54 hir_analysis_typeof_reserved_keyword_used =
55     `typeof` is a reserved keyword but unimplemented
56     .suggestion = consider replacing `typeof(...)` with an actual type
57     .label = reserved keyword
58
59 hir_analysis_value_of_associated_struct_already_specified =
60     the value of the associated type `{$item_name}` (from trait `{$def_path}`) is already specified
61     .label = re-bound here
62     .previous_bound_label = `{$item_name}` bound here first
63
64 hir_analysis_unconstrained_opaque_type = unconstrained opaque type
65     .note = `{$name}` must be used in combination with a concrete type within the same {$what}
66
67 hir_analysis_missing_type_params =
68     the type {$parameterCount ->
69         [one] parameter
70         *[other] parameters
71     } {$parameters} must be explicitly specified
72     .label = type {$parameterCount ->
73         [one] parameter
74         *[other] parameters
75     } {$parameters} must be specified for this
76     .suggestion = set the type {$parameterCount ->
77         [one] parameter
78         *[other] parameters
79     } to the desired {$parameterCount ->
80         [one] type
81         *[other] types
82     }
83     .no_suggestion_label = missing {$parameterCount ->
84         [one] reference
85         *[other] references
86     } to {$parameters}
87     .note = because of the default `Self` reference, type parameters must be specified on object types
88
89 hir_analysis_manual_implementation =
90     manual implementations of `{$trait_name}` are experimental
91     .label = manual implementations of `{$trait_name}` are experimental
92     .help = add `#![feature(unboxed_closures)]` to the crate attributes to enable
93
94 hir_analysis_substs_on_overridden_impl = could not resolve substs on overridden impl
95
96 hir_analysis_unused_extern_crate =
97     unused extern crate
98     .suggestion = remove it
99
100 hir_analysis_extern_crate_not_idiomatic =
101     `extern crate` is not idiomatic in the new edition
102     .suggestion = convert it to a `{$msg_code}`
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
116
117 hir_analysis_linkage_type =
118     invalid type for variable with `#[linkage]` attribute