113 lines
4.5 KiB
Plaintext
113 lines
4.5 KiB
Plaintext
infer_opaque_hidden_type =
|
|
opaque type's hidden type cannot be another opaque type from the same scope
|
|
.label = one of the two opaque types used here has to be outside its defining scope
|
|
.opaque_type = opaque type whose hidden type is being assigned
|
|
.hidden_type = opaque type being used as hidden type
|
|
|
|
infer_type_annotations_needed = {$source_kind ->
|
|
[closure] type annotations needed for the closure `{$source_name}`
|
|
[normal] type annotations needed for `{$source_name}`
|
|
*[other] type annotations needed
|
|
}
|
|
.label = type must be known at this point
|
|
|
|
infer_label_bad = {$bad_kind ->
|
|
*[other] cannot infer type
|
|
[more_info] cannot infer {$prefix_kind ->
|
|
*[type] type for {$prefix}
|
|
[const_with_param] the value of const parameter
|
|
[const] the value of the constant
|
|
} `{$name}`{$has_parent ->
|
|
[true] {" "}declared on the {$parent_prefix} `{$parent_name}`
|
|
*[false] {""}
|
|
}
|
|
}
|
|
|
|
infer_source_kind_subdiag_let = {$kind ->
|
|
[with_pattern] consider giving `{$name}` an explicit type
|
|
[closure] consider giving this closure parameter an explicit type
|
|
*[other] consider giving this pattern a type
|
|
}{$x_kind ->
|
|
[has_name] , where the {$prefix_kind ->
|
|
*[type] type for {$prefix}
|
|
[const_with_param] the value of const parameter
|
|
[const] the value of the constant
|
|
} `{$arg_name}` is specified
|
|
[underscore] , where the placeholders `_` are specified
|
|
*[empty] {""}
|
|
}
|
|
|
|
infer_source_kind_subdiag_generic_label =
|
|
cannot infer {$is_type ->
|
|
[true] type
|
|
*[false] the value
|
|
} of the {$is_type ->
|
|
[true] type
|
|
*[false] const
|
|
} {$parent_exists ->
|
|
[true] parameter `{$param_name}` declared on the {$parent_prefix} `{$parent_name}`
|
|
*[false] parameter {$param_name}
|
|
}
|
|
|
|
infer_source_kind_subdiag_generic_suggestion =
|
|
consider specifying the generic {$arg_count ->
|
|
[one] argument
|
|
*[other] arguments
|
|
}
|
|
|
|
infer_source_kind_fully_qualified =
|
|
try using a fully qualified path to specify the expected types
|
|
|
|
infer_source_kind_closure_return =
|
|
try giving this closure an explicit return type
|
|
|
|
# generator_kind may need to be translated
|
|
infer_need_type_info_in_generator =
|
|
type inside {$generator_kind ->
|
|
[async_block] `async` block
|
|
[async_closure] `async` closure
|
|
[async_fn] `async fn` body
|
|
*[generator] generator
|
|
} must be known in this context
|
|
|
|
|
|
infer_subtype = ...so that the {$requirement ->
|
|
[method_compat] method type is compatible with trait
|
|
[type_compat] associated type is compatible with trait
|
|
[const_compat] const is compatible with trait
|
|
[expr_assignable] expression is assignable
|
|
[if_else_different] `if` and `else` have incompatible types
|
|
[no_else] `if` missing an `else` returns `()`
|
|
[fn_main_correct_type] `main` function has the correct type
|
|
[fn_start_correct_type] #[start]` function has the correct type
|
|
[intristic_correct_type] intrinsic has the correct type
|
|
[method_correct_type] method receiver has the correct type
|
|
*[other] types are compatible
|
|
}
|
|
infer_subtype_2 = ...so that {$requirement ->
|
|
[method_compat] method type is compatible with trait
|
|
[type_compat] associated type is compatible with trait
|
|
[const_compat] const is compatible with trait
|
|
[expr_assignable] expression is assignable
|
|
[if_else_different] `if` and `else` have incompatible types
|
|
[no_else] `if` missing an `else` returns `()`
|
|
[fn_main_correct_type] `main` function has the correct type
|
|
[fn_start_correct_type] #[start]` function has the correct type
|
|
[intristic_correct_type] intrinsic has the correct type
|
|
[method_correct_type] method receiver has the correct type
|
|
*[other] types are compatible
|
|
}
|
|
|
|
infer_reborrow = ...so that reference does not outlive borrowed content
|
|
infer_reborrow_upvar = ...so that closure can access `{$name}`
|
|
infer_relate_object_bound = ...so that it can be closed over into an object
|
|
infer_data_borrowed = ...so that the type `{$name}` is not borrowed for too long
|
|
infer_reference_outlives_referent = ...so that the reference type `{$name}` does not outlive the data it points at
|
|
infer_relate_param_bound = ...so that the type `{$name}` will meet its required lifetime bounds{$continues ->
|
|
[true] ...
|
|
*[false] {""}
|
|
}
|
|
infer_relate_param_bound_2 = ...that is required by this bound
|
|
infer_relate_region_param_bound = ...so that the declared lifetime parameter bounds are satisfied
|
|
infer_compare_impl_item_obligation = ...so that the definition in impl matches the definition from the trait
|