]>
Commit | Line | Data |
---|---|---|
49aad941 | 1 | hir_typeck_add_missing_parentheses_in_range = you must surround the range in parentheses to call its `{$func_name}` function |
9ffffee4 | 2 | |
49aad941 | 3 | hir_typeck_add_return_type_add = try adding a return type |
9ffffee4 | 4 | |
49aad941 | 5 | hir_typeck_add_return_type_missing_here = a return type might be missing here |
9ffffee4 | 6 | |
49aad941 FG |
7 | hir_typeck_address_of_temporary_taken = cannot take address of a temporary |
8 | .label = temporary value | |
487cf647 | 9 | |
49aad941 FG |
10 | hir_typeck_arg_mismatch_indeterminate = argument type mismatch was detected, but rustc had trouble determining where |
11 | .note = we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new | |
487cf647 | 12 | |
49aad941 FG |
13 | hir_typeck_candidate_trait_note = `{$trait_name}` defines an item `{$item_name}`{$action_or_ty -> |
14 | [NONE] {""} | |
15 | [implement] , perhaps you need to implement it | |
16 | *[other] , perhaps you need to restrict type parameter `{$action_or_ty}` with it | |
17 | } | |
487cf647 | 18 | |
49aad941 FG |
19 | hir_typeck_const_select_must_be_const = this argument must be a `const fn` |
20 | .help = consult the documentation on `const_eval_select` for more information | |
487cf647 | 21 | |
49aad941 FG |
22 | hir_typeck_const_select_must_be_fn = this argument must be a function item |
23 | .note = expected a function item, found {$ty} | |
24 | .help = consult the documentation on `const_eval_select` for more information | |
487cf647 | 25 | |
49aad941 | 26 | hir_typeck_convert_to_str = try converting the passed type into a `&str` |
487cf647 | 27 | |
49aad941 | 28 | hir_typeck_ctor_is_private = tuple struct constructor `{$def}` is private |
487cf647 FG |
29 | |
30 | hir_typeck_expected_default_return_type = expected `()` because of default return type | |
31 | ||
32 | hir_typeck_expected_return_type = expected `{$expected}` because of return type | |
33 | ||
49aad941 FG |
34 | hir_typeck_field_multiply_specified_in_initializer = |
35 | field `{$ident}` specified more than once | |
36 | .label = used more than once | |
37 | .previous_use_label = first use of `{$ident}` | |
487cf647 | 38 | |
49aad941 FG |
39 | hir_typeck_fru_expr = this expression does not end in a comma... |
40 | hir_typeck_fru_expr2 = ... so this is interpreted as a `..` range expression, instead of functional record update syntax | |
41 | hir_typeck_fru_note = this expression may have been misinterpreted as a `..` range expression | |
42 | hir_typeck_fru_suggestion = | |
43 | to set the remaining fields{$expr -> | |
44 | [NONE]{""} | |
45 | *[other] {" "}from `{$expr}` | |
46 | }, separate the last named field with a comma | |
487cf647 | 47 | |
49aad941 FG |
48 | hir_typeck_functional_record_update_on_non_struct = |
49 | functional record update syntax requires a struct | |
9c376795 | 50 | |
49aad941 FG |
51 | hir_typeck_help_set_edition_cargo = set `edition = "{$edition}"` in `Cargo.toml` |
52 | hir_typeck_help_set_edition_standalone = pass `--edition {$edition}` to `rustc` | |
9c376795 FG |
53 | hir_typeck_lang_start_expected_sig_note = the `start` lang item should have the signature `fn(fn() -> T, isize, *const *const u8, u8) -> isize` |
54 | ||
49aad941 FG |
55 | hir_typeck_lang_start_incorrect_number_params = incorrect number of parameters for the `start` lang item |
56 | hir_typeck_lang_start_incorrect_number_params_note_expected_count = the `start` lang item should have four parameters, but found {$found_param_count} | |
57 | ||
9c376795 FG |
58 | hir_typeck_lang_start_incorrect_param = parameter {$param_num} of the `start` lang item is incorrect |
59 | .suggestion = change the type from `{$found_ty}` to `{$expected_ty}` | |
60 | ||
61 | hir_typeck_lang_start_incorrect_ret_ty = the return type of the `start` lang item is incorrect | |
62 | .suggestion = change the type from `{$found_ty}` to `{$expected_ty}` | |
9ffffee4 | 63 | |
49aad941 FG |
64 | hir_typeck_method_call_on_unknown_raw_pointee = |
65 | cannot call a method on a raw pointer with an unknown pointee type | |
9ffffee4 | 66 | |
49aad941 FG |
67 | hir_typeck_missing_parentheses_in_range = can't call method `{$method_name}` on type `{$ty_str}` |
68 | ||
69 | hir_typeck_no_associated_item = no {$item_kind} named `{$item_name}` found for {$ty_prefix} `{$ty_str}`{$trait_missing_method -> | |
70 | [true] {""} | |
71 | *[other] {" "}in the current scope | |
72 | } | |
73 | ||
74 | hir_typeck_note_edition_guide = for more on editions, read https://doc.rust-lang.org/edition-guide | |
9ffffee4 FG |
75 | |
76 | hir_typeck_op_trait_generic_params = `{$method_name}` must not have any generic parameters | |
77 | ||
49aad941 FG |
78 | hir_typeck_return_stmt_outside_of_fn_body = |
79 | return statement outside of function body | |
80 | .encl_body_label = the return is part of this body... | |
81 | .encl_fn_label = ...not the enclosing function body | |
82 | ||
83 | hir_typeck_struct_expr_non_exhaustive = | |
84 | cannot create non-exhaustive {$what} using struct expression | |
85 | ||
86 | hir_typeck_suggest_boxing_note = for more on the distinction between the stack and the heap, read https://doc.rust-lang.org/book/ch15-01-box.html, https://doc.rust-lang.org/rust-by-example/std/box.html, and https://doc.rust-lang.org/std/boxed/index.html | |
87 | ||
88 | hir_typeck_suggest_boxing_when_appropriate = store this in the heap by calling `Box::new` | |
89 | ||
90 | hir_typeck_union_pat_dotdot = `..` cannot be used in union patterns | |
91 | ||
92 | hir_typeck_union_pat_multiple_fields = union patterns should have exactly one field | |
93 | hir_typeck_yield_expr_outside_of_generator = | |
94 | yield expression outside of generator literal |