1
Fork 0

Use IntoDiagnosticArg where it makes sense

This commit is contained in:
Nikita Tomashevich 2022-08-24 15:46:29 +03:00
parent 74f9973824
commit 3fae3904b1
No known key found for this signature in database
GPG key ID: B29791D4D878E345
5 changed files with 61 additions and 41 deletions

View file

@ -63,7 +63,12 @@ infer_source_kind_closure_return =
# generator_kind may need to be translated
infer_need_type_info_in_generator =
type inside {$generator_kind} must be known in this context
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 ->