2022-08-17 09:51:01 -05:00
|
|
|
ast_passes_forbidden_let =
|
|
|
|
`let` expressions are not supported here
|
|
|
|
.note = only supported directly in conditions of `if` and `while` expressions
|
|
|
|
.not_supported_or = `||` operators are not supported in let chain expressions
|
|
|
|
.not_supported_parentheses = `let`s wrapped in parentheses are not supported in a context with let chains
|
2022-08-17 14:36:57 -05:00
|
|
|
|
2022-08-29 12:49:30 -05:00
|
|
|
ast_passes_forbidden_let_stable =
|
|
|
|
expected expression, found statement (`let`)
|
|
|
|
.note = variable declaration using `let` is a statement
|
|
|
|
|
2022-08-17 14:36:57 -05:00
|
|
|
ast_passes_deprecated_where_clause_location =
|
|
|
|
where clause not allowed here
|
|
|
|
|
|
|
|
ast_passes_forbidden_assoc_constraint =
|
|
|
|
associated type bounds are not allowed within structs, enums, or unions
|
|
|
|
|
|
|
|
ast_passes_keyword_lifetime =
|
|
|
|
lifetimes cannot use keyword names
|
|
|
|
|
|
|
|
ast_passes_invalid_label =
|
|
|
|
invalid label name `{$name}`
|
|
|
|
|
|
|
|
ast_passes_invalid_visibility =
|
|
|
|
unnecessary visibility qualifier
|
|
|
|
.implied = `pub` not permitted here because it's implied
|
|
|
|
.individual_impl_items = place qualifiers on individual impl items instead
|
|
|
|
.individual_foreign_items = place qualifiers on individual foreign items instead
|
2022-08-18 02:49:52 -05:00
|
|
|
|
2022-08-18 02:57:25 -05:00
|
|
|
ast_passes_trait_fn_const =
|
|
|
|
functions in traits cannot be declared const
|
|
|
|
.label = functions in traits cannot be const
|
2022-08-18 03:38:11 -05:00
|
|
|
|
|
|
|
ast_passes_forbidden_lifetime_bound =
|
|
|
|
lifetime bounds cannot be used in this context
|
|
|
|
|
|
|
|
ast_passes_forbidden_non_lifetime_param =
|
|
|
|
only lifetime parameters can be used in this context
|
|
|
|
|
2022-08-18 04:20:14 -05:00
|
|
|
ast_passes_fn_param_too_many =
|
2022-08-18 03:38:11 -05:00
|
|
|
function can not have more than {$max_num_args} arguments
|
|
|
|
|
2022-08-18 04:20:14 -05:00
|
|
|
ast_passes_fn_param_c_var_args_only =
|
2022-08-18 03:38:11 -05:00
|
|
|
C-variadic function must be declared with at least one named argument
|
|
|
|
|
2022-08-18 04:20:14 -05:00
|
|
|
ast_passes_fn_param_c_var_args_not_last =
|
2022-08-18 03:38:11 -05:00
|
|
|
`...` must be the last argument of a C-variadic function
|
2022-08-18 03:46:01 -05:00
|
|
|
|
2022-08-18 04:20:14 -05:00
|
|
|
ast_passes_fn_param_doc_comment =
|
2022-08-18 03:46:01 -05:00
|
|
|
documentation comments cannot be applied to function parameters
|
|
|
|
.label = doc comments are not allowed here
|
|
|
|
|
2022-08-18 04:20:14 -05:00
|
|
|
ast_passes_fn_param_forbidden_attr =
|
2022-08-18 03:46:01 -05:00
|
|
|
allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes in function parameters
|
2022-08-18 04:20:14 -05:00
|
|
|
|
|
|
|
ast_passes_fn_param_forbidden_self =
|
|
|
|
`self` parameter is only allowed in associated functions
|
|
|
|
.label = not semantically valid as function parameter
|
|
|
|
.note = associated functions are those in `impl` or `trait` definitions
|
2022-08-18 12:43:01 -05:00
|
|
|
|
|
|
|
ast_passes_forbidden_default =
|
|
|
|
`default` is only allowed on items in trait impls
|
|
|
|
.label = `default` because of this
|
|
|
|
|
|
|
|
ast_passes_assoc_const_without_body =
|
|
|
|
associated constant in `impl` without body
|
|
|
|
.suggestion = provide a definition for the constant
|
|
|
|
|
|
|
|
ast_passes_assoc_fn_without_body =
|
|
|
|
associated function in `impl` without body
|
|
|
|
.suggestion = provide a definition for the function
|
|
|
|
|
|
|
|
ast_passes_assoc_type_without_body =
|
|
|
|
associated type in `impl` without body
|
|
|
|
.suggestion = provide a definition for the type
|
|
|
|
|
|
|
|
ast_passes_const_without_body =
|
|
|
|
free constant item without body
|
|
|
|
.suggestion = provide a definition for the constant
|
|
|
|
|
|
|
|
ast_passes_static_without_body =
|
|
|
|
free static item without body
|
|
|
|
.suggestion = provide a definition for the static
|
|
|
|
|
|
|
|
ast_passes_ty_alias_without_body =
|
|
|
|
free type alias without body
|
|
|
|
.suggestion = provide a definition for the type
|
|
|
|
|
|
|
|
ast_passes_fn_without_body =
|
|
|
|
free function without a body
|
|
|
|
.suggestion = provide a definition for the function
|
2023-01-19 06:52:15 -06:00
|
|
|
|
|
|
|
ast_passes_extern_block_suggestion = if you meant to declare an externally defined function, use an `extern` block
|