Skip to content

Commit a17c083

Browse files
Rollup merge of #155031 - aerooneqq:delegation-generic-args-lowering-ice, r=petrochenkov
delegation: fix unelided lifetime ICE, refactoring of GenericArgPosition This PR does two things: - First it restores `lower_generic_args_of_path` as it was before rust-lang/rust#151864, as it turns out we should use `GenericArgPosition::Type` for generic args lowering for signature inheritance, as it will not cause lifetime inference and then ICEs during child args lowering, - Next it refactors `GenericArgPosition` enum replacing `Value` and `MethodCall` with `Call(IsMethodCall)`, as the only place where we created `Value` or `MethodCall` variants was in `check_generic_arg_count_for_call`, where it was a match over `is_method_call`. Not sure it is needed, but seems cleaner to me. Fixes rust-lang/rust#154178, part of rust-lang/rust#118212. r? @petrochenkov
2 parents 19ef287 + af0fdef commit a17c083

0 file changed

File tree

    0 commit comments

    Comments
     (0)