]> git.proxmox.com Git - rustc.git/blame - compiler/rustc_metadata/messages.ftl
New upstream version 1.70.0+dfsg1
[rustc.git] / compiler / rustc_metadata / messages.ftl
CommitLineData
f2b60f7d
FG
1metadata_rlib_required =
2 crate `{$crate_name}` required to be available in rlib format, but was not found in this form
3
4metadata_lib_required =
5 crate `{$crate_name}` required to be available in {$kind} format, but was not found in this form
6
9c376795
FG
7metadata_rustc_lib_required =
8 crate `{$crate_name}` required to be available in {$kind} format, but was not found in this form
9 .note = only .rmeta files are distributed for `rustc_private` crates other than `rustc_driver`
10 .help = try adding `extern crate rustc_driver;` at the top level of this crate
11
f2b60f7d
FG
12metadata_crate_dep_multiple =
13 cannot satisfy dependencies so `{$crate_name}` only shows up once
14 .help = having upstream crates all available in one format will likely make this go away
15
16metadata_two_panic_runtimes =
17 cannot link together two panic runtimes: {$prev_name} and {$cur_name}
18
19metadata_bad_panic_strategy =
20 the linked panic runtime `{$runtime}` is not compiled with this crate's panic strategy `{$strategy}`
21
22metadata_required_panic_strategy =
23 the crate `{$crate_name}` requires panic strategy `{$found_strategy}` which is incompatible with this crate's strategy of `{$desired_strategy}`
24
25metadata_incompatible_panic_in_drop_strategy =
26 the crate `{$crate_name}` is compiled with the panic-in-drop strategy `{$found_strategy}` which is incompatible with this crate's strategy of `{$desired_strategy}`
27
28metadata_multiple_names_in_link =
29 multiple `name` arguments in a single `#[link]` attribute
30
31metadata_multiple_kinds_in_link =
32 multiple `kind` arguments in a single `#[link]` attribute
33
34metadata_link_name_form =
35 link name must be of the form `name = "string"`
36
37metadata_link_kind_form =
38 link kind must be of the form `kind = "string"`
39
40metadata_link_modifiers_form =
41 link modifiers must be of the form `modifiers = "string"`
42
43metadata_link_cfg_form =
44 link cfg must be of the form `cfg(/* predicate */)`
45
46metadata_wasm_import_form =
47 wasm import module must be of the form `wasm_import_module = "string"`
48
49metadata_empty_link_name =
50 link name must not be empty
51 .label = empty link name
52
53metadata_link_framework_apple =
54 link kind `framework` is only supported on Apple targets
55
56metadata_framework_only_windows =
57 link kind `raw-dylib` is only supported on Windows targets
58
59metadata_unknown_link_kind =
60 unknown link kind `{$kind}`, expected one of: static, dylib, framework, raw-dylib
61 .label = unknown link kind
62
63metadata_multiple_link_modifiers =
64 multiple `modifiers` arguments in a single `#[link]` attribute
65
66metadata_multiple_cfgs =
67 multiple `cfg` arguments in a single `#[link]` attribute
68
69metadata_link_cfg_single_predicate =
70 link cfg must have a single predicate argument
71
72metadata_multiple_wasm_import =
73 multiple `wasm_import_module` arguments in a single `#[link]` attribute
74
75metadata_unexpected_link_arg =
76 unexpected `#[link]` argument, expected one of: name, kind, modifiers, cfg, wasm_import_module, import_name_type
77
78metadata_invalid_link_modifier =
79 invalid linking modifier syntax, expected '+' or '-' prefix before one of: bundle, verbatim, whole-archive, as-needed
80
81metadata_multiple_modifiers =
82 multiple `{$modifier}` modifiers in a single `modifiers` argument
83
84metadata_bundle_needs_static =
85 linking modifier `bundle` is only compatible with `static` linking kind
86
87metadata_whole_archive_needs_static =
88 linking modifier `whole-archive` is only compatible with `static` linking kind
89
90metadata_as_needed_compatibility =
91 linking modifier `as-needed` is only compatible with `dylib` and `framework` linking kinds
92
93metadata_unknown_link_modifier =
94 unknown linking modifier `{$modifier}`, expected one of: bundle, verbatim, whole-archive, as-needed
95
96metadata_incompatible_wasm_link =
97 `wasm_import_module` is incompatible with other arguments in `#[link]` attributes
98
99metadata_link_requires_name =
100 `#[link]` attribute requires a `name = "string"` argument
101 .label = missing `name` argument
102
103metadata_raw_dylib_no_nul =
104 link name must not contain NUL characters if link kind is `raw-dylib`
105
106metadata_link_ordinal_raw_dylib =
107 `#[link_ordinal]` is only supported if link kind is `raw-dylib`
108
109metadata_lib_framework_apple =
110 library kind `framework` is only supported on Apple targets
111
112metadata_empty_renaming_target =
113 an empty renaming target was specified for library `{$lib_name}`
114
115metadata_renaming_no_link =
116 renaming of the library `{$lib_name}` was specified, however this crate contains no `#[link(...)]` attributes referencing this library
117
118metadata_multiple_renamings =
119 multiple renamings were specified for library `{$lib_name}`
120
121metadata_no_link_mod_override =
122 overriding linking modifiers from command line is not supported
123
124metadata_unsupported_abi_i686 =
125 ABI not supported by `#[link(kind = "raw-dylib")]` on i686
126
127metadata_unsupported_abi =
128 ABI not supported by `#[link(kind = "raw-dylib")]` on this architecture
129
130metadata_fail_create_file_encoder =
131 failed to create file encoder: {$err}
132
133metadata_fail_seek_file =
134 failed to seek the file: {$err}
135
136metadata_fail_write_file =
137 failed to write to the file: {$err}
138
139metadata_crate_not_panic_runtime =
140 the crate `{$crate_name}` is not a panic runtime
141
142metadata_no_panic_strategy =
143 the crate `{$crate_name}` does not have the panic strategy `{$strategy}`
144
145metadata_profiler_builtins_needs_core =
146 `profiler_builtins` crate (required by compiler options) is not compatible with crate attribute `#![no_core]`
147
148metadata_not_profiler_runtime =
149 the crate `{$crate_name}` is not a profiler runtime
150
151metadata_no_multiple_global_alloc =
152 cannot define multiple global allocators
153 .label = cannot define a new global allocator
154
155metadata_prev_global_alloc =
156 previous global allocator defined here
157
487cf647
FG
158metadata_no_multiple_alloc_error_handler =
159 cannot define multiple allocation error handlers
160 .label = cannot define a new allocation error handler
161
162metadata_prev_alloc_error_handler =
163 previous allocation error handler defined here
164
f2b60f7d
FG
165metadata_conflicting_global_alloc =
166 the `#[global_allocator]` in {$other_crate_name} conflicts with global allocator in: {$crate_name}
167
487cf647
FG
168metadata_conflicting_alloc_error_handler =
169 the `#[alloc_error_handler]` in {$other_crate_name} conflicts with allocation error handler in: {$crate_name}
170
f2b60f7d
FG
171metadata_global_alloc_required =
172 no global memory allocator found but one is required; link to std or add `#[global_allocator]` to a static item that implements the GlobalAlloc trait
173
174metadata_no_transitive_needs_dep =
175 the crate `{$crate_name}` cannot depend on a crate that needs {$needs_crate_name}, but it depends on `{$deps_crate_name}`
176
177metadata_failed_write_error =
178 failed to write {$filename}: {$err}
179
180metadata_missing_native_library =
181 could not find native static library `{$libname}`, perhaps an -L flag is missing?
182
2b03887a
FG
183metadata_only_provide_library_name = only provide the library name `{$suggested_name}`, not the full filename
184
f2b60f7d
FG
185metadata_failed_create_tempdir =
186 couldn't create a temp dir: {$err}
187
188metadata_failed_create_file =
189 failed to create the file {$filename}: {$err}
190
191metadata_failed_create_encoded_metadata =
192 failed to create encoded metadata from file: {$err}
193
194metadata_non_ascii_name =
195 cannot load a crate with a non-ascii name `{$crate_name}`
196
197metadata_extern_location_not_exist =
198 extern location for {$crate_name} does not exist: {$location}
199
200metadata_extern_location_not_file =
201 extern location for {$crate_name} is not a file: {$location}
202
203metadata_multiple_candidates =
9c376795 204 multiple candidates for `{$flavor}` dependency `{$crate_name}` found
f2b60f7d
FG
205
206metadata_symbol_conflicts_current =
207 the current crate is indistinguishable from one of its dependencies: it has the same crate-name `{$crate_name}` and was compiled with the same `-C metadata` arguments. This will result in symbol conflicts between the two.
208
209metadata_symbol_conflicts_others =
210 found two different crates with name `{$crate_name}` that are not distinguished by differing `-C metadata`. This will result in symbol conflicts between the two.
211
212metadata_stable_crate_id_collision =
213 found crates (`{$crate_name0}` and `{$crate_name1}`) with colliding StableCrateId values.
214
215metadata_dl_error =
216 {$err}
217
218metadata_newer_crate_version =
219 found possibly newer version of crate `{$crate_name}`{$add_info}
220 .note = perhaps that crate needs to be recompiled?
221
222metadata_found_crate_versions =
223 the following crate versions were found:{$found_crates}
224
225metadata_no_crate_with_triple =
226 couldn't find crate `{$crate_name}` with expected target triple {$locator_triple}{$add_info}
227
228metadata_found_staticlib =
229 found staticlib `{$crate_name}` instead of rlib or dylib{$add_info}
230 .help = please recompile that crate using --crate-type lib
231
232metadata_incompatible_rustc =
233 found crate `{$crate_name}` compiled by an incompatible version of rustc{$add_info}
234 .help = please recompile that crate using this compiler ({$rustc_version}) (consider running `cargo clean` first)
235
236metadata_invalid_meta_files =
237 found invalid metadata files for crate `{$crate_name}`{$add_info}
238
239metadata_cannot_find_crate =
240 can't find crate for `{$crate_name}`{$add_info}
241
242metadata_no_dylib_plugin =
243 plugin `{$crate_name}` only found in rlib format, but must be available in dylib format
244
245metadata_target_not_installed =
246 the `{$locator_triple}` target may not be installed
247
248metadata_target_no_std_support =
249 the `{$locator_triple}` target may not support the standard library
250
251metadata_consider_downloading_target =
252 consider downloading the target with `rustup target add {$locator_triple}`
253
254metadata_std_required =
255 `std` is required by `{$current_crate}` because it does not declare `#![no_std]`
256
257metadata_consider_building_std =
258 consider building the standard library from source with `cargo build -Zbuild-std`
259
260metadata_compiler_missing_profiler =
261 the compiler may have been built without the profiler runtime
262
263metadata_install_missing_components =
264 maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
265
266metadata_cant_find_crate =
267 can't find crate
268
269metadata_crate_location_unknown_type =
270 extern location for {$crate_name} is of an unknown type: {$path}
271
272metadata_lib_filename_form =
487cf647 273 file name should be lib*.rlib or {$dll_prefix}*{$dll_suffix}
f2b60f7d
FG
274
275metadata_multiple_import_name_type =
276 multiple `import_name_type` arguments in a single `#[link]` attribute
277
278metadata_import_name_type_form =
279 import name type must be of the form `import_name_type = "string"`
280
281metadata_import_name_type_x86 =
282 import name type is only supported on x86
283
284metadata_unknown_import_name_type =
285 unknown import name type `{$import_name_type}`, expected one of: decorated, noprefix, undecorated
286
287metadata_import_name_type_raw =
288 import name type can only be used with link kind `raw-dylib`