fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1ast_passes_anon_struct_or_union_not_allowed = 2 anonymous {$struct_or_union}s are not allowed outside of unnamed struct or union fields 3 .label = anonymous {$struct_or_union} declared here 4 5ast_passes_assoc_const_without_body = 6 associated constant in `impl` without body 7 .suggestion = provide a definition for the constant 8 9ast_passes_assoc_fn_without_body = 10 associated function in `impl` without body 11 .suggestion = provide a definition for the function 12 13ast_passes_assoc_type_without_body = 14 associated type in `impl` without body 15 .suggestion = provide a definition for the type 16 17ast_passes_at_least_one_trait = at least one trait must be specified 18 19ast_passes_auto_generic = auto traits cannot have generic parameters 20 .label = auto trait cannot have generic parameters 21 .suggestion = remove the parameters 22 23ast_passes_auto_items = auto traits cannot have associated items 24 .label = {ast_passes_auto_items} 25 .suggestion = remove these associated items 26 27ast_passes_auto_super_lifetime = auto traits cannot have super traits or lifetime bounds 28 .label = {ast_passes_auto_super_lifetime} 29 .suggestion = remove the super traits or lifetime bounds 30 31ast_passes_bad_c_variadic = only foreign or `unsafe extern "C"` functions may be C-variadic 32 33ast_passes_body_in_extern = incorrect `{$kind}` inside `extern` block 34 .cannot_have = cannot have a body 35 .invalid = the invalid body 36 .existing = `extern` blocks define existing foreign {$kind}s and {$kind}s inside of them cannot have a body 37 38ast_passes_bound_in_context = bounds on `type`s in {$ctx} have no effect 39 40ast_passes_const_and_async = functions cannot be both `const` and `async` 41 .const = `const` because of this 42 .async = `async` because of this 43 .label = {""} 44 45ast_passes_const_without_body = 46 free constant item without body 47 .suggestion = provide a definition for the constant 48 49ast_passes_constraint_on_negative_bound = 50 associated type constraints not allowed on negative bounds 51 52ast_passes_deprecated_where_clause_location = 53 where clause not allowed here 54 55ast_passes_equality_in_where = equality constraints are not yet supported in `where` clauses 56 .label = not supported 57 .suggestion = if `{$ident}` is an associated type you're trying to set, use the associated type binding syntax 58 .suggestion_path = if `{$trait_segment}::{$potential_assoc}` is an associated type you're trying to set, use the associated type binding syntax 59 .note = see issue #20041 <https://github.com/rust-lang/rust/issues/20041> for more information 60 61ast_passes_extern_block_suggestion = if you meant to declare an externally defined function, use an `extern` block 62 63ast_passes_extern_fn_qualifiers = functions in `extern` blocks cannot have qualifiers 64 .label = in this `extern` block 65 .suggestion = remove the qualifiers 66 67ast_passes_extern_item_ascii = items in `extern` blocks cannot use non-ascii identifiers 68 .label = in this `extern` block 69 .note = this limitation may be lifted in the future; see issue #83942 <https://github.com/rust-lang/rust/issues/83942> for more information 70 71ast_passes_extern_keyword_link = for more information, visit https://doc.rust-lang.org/std/keyword.extern.html 72 73ast_passes_extern_types_cannot = `type`s inside `extern` blocks cannot have {$descr} 74 .suggestion = remove the {$remove_descr} 75 .label = `extern` block begins here 76 77ast_passes_extern_without_abi = extern declarations without an explicit ABI are deprecated 78 79ast_passes_feature_on_non_nightly = `#![feature]` may not be used on the {$channel} release channel 80 .suggestion = remove the attribute 81 .stable_since = the feature `{$name}` has been stable since `{$since}` and no longer requires an attribute to enable 82 83ast_passes_fieldless_union = unions cannot have zero fields 84 85ast_passes_fn_body_extern = incorrect function inside `extern` block 86 .cannot_have = cannot have a body 87 .suggestion = remove the invalid body 88 .help = you might have meant to write a function accessible through FFI, which can be done by writing `extern fn` outside of the `extern` block 89 .label = `extern` blocks define existing foreign functions and functions inside of them cannot have a body 90 91ast_passes_fn_param_c_var_args_not_last = 92 `...` must be the last argument of a C-variadic function 93 94ast_passes_fn_param_c_var_args_only = 95 C-variadic function must be declared with at least one named argument 96 97ast_passes_fn_param_doc_comment = 98 documentation comments cannot be applied to function parameters 99 .label = doc comments are not allowed here 100 101ast_passes_fn_param_forbidden_attr = 102 allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes in function parameters 103 104ast_passes_fn_param_forbidden_self = 105 `self` parameter is only allowed in associated functions 106 .label = not semantically valid as function parameter 107 .note = associated functions are those in `impl` or `trait` definitions 108 109ast_passes_fn_param_too_many = 110 function can not have more than {$max_num_args} arguments 111 112ast_passes_fn_without_body = 113 free function without a body 114 .suggestion = provide a definition for the function 115 116ast_passes_forbidden_default = 117 `default` is only allowed on items in trait impls 118 .label = `default` because of this 119 120ast_passes_forbidden_lifetime_bound = 121 lifetime bounds cannot be used in this context 122 123ast_passes_forbidden_non_lifetime_param = 124 only lifetime parameters can be used in this context 125 126ast_passes_generic_before_constraints = generic arguments must come before the first constraint 127 .constraints = {$constraint_len -> 128 [one] constraint 129 *[other] constraints 130 } 131 .args = generic {$args_len -> 132 [one] argument 133 *[other] arguments 134 } 135 .empty_string = {""}, 136 .suggestion = move the {$constraint_len -> 137 [one] constraint 138 *[other] constraints 139 } after the generic {$args_len -> 140 [one] argument 141 *[other] arguments 142 } 143 144ast_passes_generic_default_trailing = generic parameters with a default must be trailing 145 146ast_passes_impl_trait_path = `impl Trait` is not allowed in path parameters 147 148ast_passes_incompatible_features = `{$f1}` and `{$f2}` are incompatible, using them at the same time is not allowed 149 .help = remove one of these features 150 151ast_passes_inherent_cannot_be = inherent impls cannot be {$annotation} 152 .because = {$annotation} because of this 153 .type = inherent impl for this type 154 .only_trait = only trait implementations may be annotated with {$annotation} 155 156ast_passes_invalid_label = 157 invalid label name `{$name}` 158 159ast_passes_invalid_unnamed_field = 160 unnamed fields are not allowed outside of structs or unions 161 .label = unnamed field declared here 162 163ast_passes_invalid_unnamed_field_ty = 164 unnamed fields can only have struct or union types 165 .label = not a struct or union 166 167ast_passes_item_underscore = `{$kind}` items in this context need a name 168 .label = `_` is not a valid name for this `{$kind}` item 169 170ast_passes_keyword_lifetime = 171 lifetimes cannot use keyword names 172 173ast_passes_module_nonascii = trying to load file for module `{$name}` with non-ascii identifier name 174 .help = consider using the `#[path]` attribute to specify filesystem path 175 176ast_passes_negative_bound_not_supported = 177 negative bounds are not supported 178 179ast_passes_nested_impl_trait = nested `impl Trait` is not allowed 180 .outer = outer `impl Trait` 181 .inner = nested `impl Trait` here 182 183ast_passes_nested_lifetimes = nested quantification of lifetimes 184 185ast_passes_nomangle_ascii = `#[no_mangle]` requires ASCII identifier 186 187ast_passes_obsolete_auto = `impl Trait for .. {"{}"}` is an obsolete syntax 188 .help = use `auto trait Trait {"{}"}` instead 189 190ast_passes_optional_const_exclusive = `~const` and `{$modifier}` are mutually exclusive 191 192ast_passes_optional_trait_object = `?Trait` is not permitted in trait object types 193 194ast_passes_optional_trait_supertrait = `?Trait` is not permitted in supertraits 195 .note = traits are `?{$path_str}` by default 196 197ast_passes_out_of_order_params = {$param_ord} parameters must be declared prior to {$max_param} parameters 198 .suggestion = reorder the parameters: lifetimes, then consts and types 199 200ast_passes_pattern_in_bodiless = patterns aren't allowed in functions without bodies 201 .label = pattern not allowed in function without body 202 203ast_passes_pattern_in_fn_pointer = patterns aren't allowed in function pointer types 204 205ast_passes_pattern_in_foreign = patterns aren't allowed in foreign function declarations 206 .label = pattern not allowed in foreign function 207 208ast_passes_show_span = {$msg} 209 210ast_passes_stability_outside_std = stability attributes may not be used outside of the standard library 211 212ast_passes_static_without_body = 213 free static item without body 214 .suggestion = provide a definition for the static 215 216ast_passes_tilde_const_disallowed = `~const` is not allowed here 217 .trait = trait objects cannot have `~const` trait bounds 218 .closure = closures cannot have `~const` trait bounds 219 .function = this function is not `const`, so it cannot have `~const` trait bounds 220 221ast_passes_trait_fn_const = 222 functions in traits cannot be declared const 223 .label = functions in traits cannot be const 224 225ast_passes_trait_object_single_bound = only a single explicit lifetime bound is permitted 226 227ast_passes_ty_alias_without_body = 228 free type alias without body 229 .suggestion = provide a definition for the type 230 231ast_passes_unsafe_item = {$kind} cannot be declared unsafe 232 233ast_passes_unsafe_negative_impl = negative impls cannot be unsafe 234 .negative = negative because of this 235 .unsafe = unsafe because of this 236 237ast_passes_visibility_not_permitted = 238 visibility qualifiers are not permitted here 239 .enum_variant = enum variants and their fields always share the visibility of the enum they are in 240 .trait_impl = trait items always share the visibility of their trait 241 .individual_impl_items = place qualifiers on individual impl items instead 242 .individual_foreign_items = place qualifiers on individual foreign items instead 243 244ast_passes_where_clause_after_type_alias = where clauses are not allowed after the type for type aliases 245 .note = see issue #112792 <https://github.com/rust-lang/rust/issues/112792> for more information 246 .help = add `#![feature(lazy_type_alias)]` to the crate attributes to enable 247 248ast_passes_where_clause_before_type_alias = where clauses are not allowed before the type for type aliases 249 .note = see issue #89122 <https://github.com/rust-lang/rust/issues/89122> for more information 250 .suggestion = move it to the end of the type declaration