Rollup merge of #138403 - Bryanskiy:delegation-ice-2, r=petrochenkov
Delegation: one more ICE fix for `MethodCall` generation self-explanatory Fixes https://github.com/rust-lang/rust/issues/138362 r? `@petrochenkov`
This commit is contained in:
commit
8d28328049
3 changed files with 35 additions and 0 deletions
|
@ -330,6 +330,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
|
|||
.unwrap_or_default()
|
||||
&& delegation.qself.is_none()
|
||||
&& !has_generic_args
|
||||
&& !args.is_empty()
|
||||
{
|
||||
let ast_segment = delegation.path.segments.last().unwrap();
|
||||
let segment = self.lower_path_segment(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue