]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_messages/locales/en-US/ast_passes.ftl
Auto merge of #100908 - lnicola:rust-analyzer-2022-08-23, r=lnicola
[rust.git] / compiler / rustc_error_messages / locales / en-US / ast_passes.ftl
1 ast_passes_forbidden_let =
2     `let` expressions are not supported here
3     .note = only supported directly in conditions of `if` and `while` expressions
4     .not_supported_or = `||` operators are not supported in let chain expressions
5     .not_supported_parentheses = `let`s wrapped in parentheses are not supported in a context with let chains
6
7 ast_passes_deprecated_where_clause_location =
8     where clause not allowed here
9
10 ast_passes_forbidden_assoc_constraint =
11     associated type bounds are not allowed within structs, enums, or unions
12
13 ast_passes_keyword_lifetime =
14     lifetimes cannot use keyword names
15
16 ast_passes_invalid_label =
17     invalid label name `{$name}`
18
19 ast_passes_invalid_visibility =
20     unnecessary visibility qualifier
21     .implied = `pub` not permitted here because it's implied
22     .individual_impl_items = place qualifiers on individual impl items instead
23     .individual_foreign_items = place qualifiers on individual foreign items instead
24
25 ast_passes_trait_fn_async =
26     functions in traits cannot be declared `async`
27     .label = `async` because of this
28     .note = `async` trait functions are not currently supported
29     .note2 = consider using the `async-trait` crate: https://crates.io/crates/async-trait
30
31 ast_passes_trait_fn_const =
32     functions in traits cannot be declared const
33     .label = functions in traits cannot be const
34
35 ast_passes_forbidden_lifetime_bound =
36     lifetime bounds cannot be used in this context
37
38 ast_passes_forbidden_non_lifetime_param =
39     only lifetime parameters can be used in this context
40
41 ast_passes_fn_param_too_many =
42     function can not have more than {$max_num_args} arguments
43
44 ast_passes_fn_param_c_var_args_only =
45     C-variadic function must be declared with at least one named argument
46
47 ast_passes_fn_param_c_var_args_not_last =
48     `...` must be the last argument of a C-variadic function
49
50 ast_passes_fn_param_doc_comment =
51     documentation comments cannot be applied to function parameters
52     .label = doc comments are not allowed here
53
54 ast_passes_fn_param_forbidden_attr =
55     allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes in function parameters
56
57 ast_passes_fn_param_forbidden_self =
58     `self` parameter is only allowed in associated functions
59     .label = not semantically valid as function parameter
60     .note = associated functions are those in `impl` or `trait` definitions
61
62 ast_passes_forbidden_default =
63     `default` is only allowed on items in trait impls
64     .label = `default` because of this
65
66 ast_passes_assoc_const_without_body =
67     associated constant in `impl` without body
68     .suggestion = provide a definition for the constant
69
70 ast_passes_assoc_fn_without_body =
71     associated function in `impl` without body
72     .suggestion = provide a definition for the function
73
74 ast_passes_assoc_type_without_body =
75     associated type in `impl` without body
76     .suggestion = provide a definition for the type
77
78 ast_passes_const_without_body =
79     free constant item without body
80     .suggestion = provide a definition for the constant
81
82 ast_passes_static_without_body =
83     free static item without body
84     .suggestion = provide a definition for the static
85
86 ast_passes_ty_alias_without_body =
87     free type alias without body
88     .suggestion = provide a definition for the type
89
90 ast_passes_fn_without_body =
91     free function without a body
92     .suggestion = provide a definition for the function
93     .extern_block_suggestion = if you meant to declare an externally defined function, use an `extern` block