fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
10.2 KiB233 linesraw
1builtin_macros_alloc_error_must_be_fn = alloc_error_handler must be a function
2builtin_macros_alloc_must_statics = allocators must be statics
3
4builtin_macros_asm_clobber_abi = clobber_abi
5builtin_macros_asm_clobber_no_reg = asm with `clobber_abi` must specify explicit registers for outputs
6builtin_macros_asm_clobber_outputs = generic outputs
7
8builtin_macros_asm_duplicate_arg = duplicate argument named `{$name}`
9    .label = previously here
10    .arg = duplicate argument
11
12builtin_macros_asm_expected_comma = expected token: `,`
13    .label = expected `,`
14
15builtin_macros_asm_expected_other = expected operand, {$is_global_asm ->
16    [true] options
17    *[false] clobber_abi, options
18    }, or additional template string
19
20builtin_macros_asm_explicit_register_name = explicit register arguments cannot have names
21
22builtin_macros_asm_modifier_invalid = asm template modifier must be a single character
23
24builtin_macros_asm_mutually_exclusive = the `{$opt1}` and `{$opt2}` options are mutually exclusive
25
26builtin_macros_asm_noreturn = asm outputs are not allowed with the `noreturn` option
27
28builtin_macros_asm_opt_already_provided = the `{$symbol}` option was already provided
29    .label = this option was already provided
30    .suggestion = remove this option
31
32builtin_macros_asm_pos_after = positional arguments cannot follow named arguments or explicit register arguments
33    .pos = positional argument
34    .named = named argument
35    .explicit = explicit register argument
36
37builtin_macros_asm_pure_combine = the `pure` option must be combined with either `nomem` or `readonly`
38
39builtin_macros_asm_pure_no_output = asm with the `pure` option must have at least one output
40
41builtin_macros_asm_requires_template = requires at least a template string argument
42
43builtin_macros_asm_sym_no_path = expected a path for argument to `sym`
44
45builtin_macros_asm_underscore_input = _ cannot be used for input operands
46
47builtin_macros_assert_missing_comma = unexpected string literal
48    .suggestion = try adding a comma
49
50builtin_macros_assert_requires_boolean = macro requires a boolean expression as an argument
51    .label = boolean expression required
52
53builtin_macros_assert_requires_expression = macro requires an expression as an argument
54    .suggestion = try removing semicolon
55
56builtin_macros_bad_derive_target = `derive` may only be applied to `struct`s, `enum`s and `union`s
57    .label = not applicable here
58    .label2 = not a `struct`, `enum` or `union`
59
60builtin_macros_bench_sig = functions used as benches must have signature `fn(&mut Bencher) -> impl Termination`
61
62
63builtin_macros_cannot_derive_union = this trait cannot be derived for unions
64
65builtin_macros_cfg_accessible_has_args = `cfg_accessible` path cannot accept arguments
66
67builtin_macros_cfg_accessible_indeterminate = cannot determine whether the path is accessible or not
68
69builtin_macros_cfg_accessible_literal_path = `cfg_accessible` path cannot be a literal
70builtin_macros_cfg_accessible_multiple_paths = multiple `cfg_accessible` paths are specified
71builtin_macros_cfg_accessible_unspecified_path = `cfg_accessible` path is not specified
72builtin_macros_concat_bytes_array = cannot concatenate doubly nested array
73    .note = byte strings are treated as arrays of bytes
74    .help = try flattening the array
75
76builtin_macros_concat_bytes_bad_repeat = repeat count is not a positive number
77
78builtin_macros_concat_bytes_invalid = cannot concatenate {$lit_kind} literals
79    .byte_char = try using a byte character
80    .byte_str = try using a byte string
81    .number_array = try wrapping the number in an array
82
83builtin_macros_concat_bytes_missing_literal = expected a byte literal
84    .note = only byte literals (like `b"foo"`, `b's'` and `[3, 4, 5]`) can be passed to `concat_bytes!()`
85
86builtin_macros_concat_bytes_non_u8 = numeric literal is not a `u8`
87
88builtin_macros_concat_bytes_oob = numeric literal is out of bounds
89
90builtin_macros_concat_bytestr = cannot concatenate a byte string literal
91builtin_macros_concat_c_str_lit = cannot concatenate a C string literal
92
93builtin_macros_concat_idents_ident_args = `concat_idents!()` requires ident args
94
95builtin_macros_concat_idents_missing_args = `concat_idents!()` takes 1 or more arguments
96builtin_macros_concat_idents_missing_comma = `concat_idents!()` expecting comma
97builtin_macros_concat_missing_literal = expected a literal
98    .note = only literals (like `"foo"`, `-42` and `3.14`) can be passed to `concat!()`
99
100builtin_macros_default_arg = `#[default]` attribute does not accept a value
101    .suggestion = try using `#[default]`
102
103builtin_macros_derive_macro_call = `derive` cannot be used on items with type macros
104
105builtin_macros_derive_path_args_list = traits in `#[derive(...)]` don't accept arguments
106    .suggestion = remove the arguments
107
108builtin_macros_derive_path_args_value = traits in `#[derive(...)]` don't accept values
109    .suggestion = remove the value
110
111builtin_macros_env_not_defined = environment variable `{$var}` not defined at compile time
112    .cargo = Cargo sets build script variables at run time. Use `std::env::var({$var_expr})` instead
113    .custom = use `std::env::var({$var_expr})` to read the variable at run time
114
115builtin_macros_env_takes_args = `env!()` takes 1 or 2 arguments
116
117builtin_macros_expected_one_cfg_pattern = expected 1 cfg-pattern
118
119builtin_macros_expected_register_class_or_explicit_register = expected register class or explicit register
120
121builtin_macros_export_macro_rules = cannot export macro_rules! macros from a `proc-macro` crate type currently
122
123builtin_macros_format_duplicate_arg = duplicate argument named `{$ident}`
124    .label1 = previously here
125    .label2 = duplicate argument
126
127builtin_macros_format_no_arg_named = there is no argument named `{$name}`
128    .note = did you intend to capture a variable `{$name}` from the surrounding scope?
129    .note2 = to avoid ambiguity, `format_args!` cannot capture variables when the format string is expanded from a macro
130
131builtin_macros_format_pos_mismatch = {$n} positional {$n ->
132    [one] argument
133    *[more] arguments
134    } in format string, but {$desc}
135
136builtin_macros_format_positional_after_named = positional arguments cannot follow named arguments
137    .label = positional arguments must be before named arguments
138    .named_args = named argument
139
140builtin_macros_format_remove_raw_ident = remove the `r#`
141
142builtin_macros_format_requires_string = requires at least a format string argument
143
144builtin_macros_format_string_invalid = invalid format string: {$desc}
145    .label = {$label1} in format string
146    .note = {$note}
147    .second_label = {$label}
148
149builtin_macros_format_unknown_trait = unknown format trait `{$ty}`
150    .note = the only appropriate formatting traits are:
151                                            - ``, which uses the `Display` trait
152                                            - `?`, which uses the `Debug` trait
153                                            - `e`, which uses the `LowerExp` trait
154                                            - `E`, which uses the `UpperExp` trait
155                                            - `o`, which uses the `Octal` trait
156                                            - `p`, which uses the `Pointer` trait
157                                            - `b`, which uses the `Binary` trait
158                                            - `x`, which uses the `LowerHex` trait
159                                            - `X`, which uses the `UpperHex` trait
160    .suggestion = use the `{$trait_name}` trait
161
162builtin_macros_format_unused_arg = {$named ->
163    [true] named argument
164    *[false] argument
165    } never used
166
167builtin_macros_format_unused_args = multiple unused formatting arguments
168    .label = multiple missing formatting specifiers
169
170builtin_macros_format_use_positional = consider using a positional formatting argument instead
171
172builtin_macros_global_asm_clobber_abi = `clobber_abi` cannot be used with `global_asm!`
173
174builtin_macros_invalid_crate_attribute = invalid crate attribute
175
176builtin_macros_multiple_default_attrs = multiple `#[default]` attributes
177    .note = only one `#[default]` attribute is needed
178    .label = `#[default]` used here
179    .label_again = `#[default]` used again here
180    .help = try removing {$only_one ->
181    [true] this
182    *[false] these
183    }
184
185builtin_macros_multiple_defaults = multiple declared defaults
186    .label = first default
187    .additional = additional default
188    .note = only one variant can be default
189    .suggestion = make `{$ident}` default
190
191builtin_macros_no_default_variant = no default declared
192    .help = make a unit variant default by placing `#[default]` above it
193    .suggestion = make `{$ident}` default
194
195builtin_macros_non_abi = at least one abi must be provided as an argument to `clobber_abi`
196
197builtin_macros_non_exhaustive_default = default variant must be exhaustive
198    .label = declared `#[non_exhaustive]` here
199    .help = consider a manual implementation of `Default`
200
201builtin_macros_non_unit_default = the `#[default]` attribute may only be used on unit enum variants
202    .help = consider a manual implementation of `Default`
203
204builtin_macros_proc_macro = `proc-macro` crate types currently cannot export any items other than functions tagged with `#[proc_macro]`, `#[proc_macro_derive]`, or `#[proc_macro_attribute]`
205
206builtin_macros_requires_cfg_pattern =
207    macro requires a cfg-pattern as an argument
208    .label = cfg-pattern required
209
210builtin_macros_should_panic = functions using `#[should_panic]` must return `()`
211
212builtin_macros_test_arg_non_lifetime = functions used as tests can not have any non-lifetime generic parameters
213
214builtin_macros_test_args = functions used as tests can not have any arguments
215
216builtin_macros_test_bad_fn = {$kind} functions cannot be used for tests
217    .label = `{$kind}` because of this
218
219builtin_macros_test_case_non_item = `#[test_case]` attribute is only allowed on items
220
221builtin_macros_test_runner_invalid = `test_runner` argument must be a path
222builtin_macros_test_runner_nargs = `#![test_runner(..)]` accepts exactly 1 argument
223
224builtin_macros_tests_not_support = building tests with panic=abort is not supported without `-Zpanic_abort_tests`
225
226builtin_macros_trace_macros = trace_macros! accepts only `true` or `false`
227
228builtin_macros_unexpected_lit = expected path to a trait, found literal
229    .label = not a trait
230    .str_lit = try using `#[derive({$sym})]`
231    .other = for example, write `#[derive(Debug)]` for `Debug`
232
233builtin_macros_unnameable_test_items = cannot test inner items