Rollup merge of #127092 - compiler-errors:rtn-dots-redux, r=estebank
Change return-type-notation to use `(..)` Aligns the syntax with the current wording of [RFC 3654](https://github.com/rust-lang/rfcs/pull/3654). Also implements rustfmt support (along with making a match exhaustive). Tracking: * https://github.com/rust-lang/rust/issues/109417
This commit is contained in:
commit
33e9f25e91
51 changed files with 248 additions and 179 deletions
|
@ -1221,6 +1221,7 @@ impl<'a: 'ast, 'ast, 'tcx> Visitor<'ast> for LateResolutionVisitor<'a, '_, 'ast,
|
|||
}
|
||||
}
|
||||
}
|
||||
GenericArgs::ParenthesizedElided(_) => {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -350,6 +350,7 @@ impl<'a> From<&'a ast::PathSegment> for Segment {
|
|||
(args.span, found_lifetimes)
|
||||
}
|
||||
GenericArgs::Parenthesized(args) => (args.span, true),
|
||||
GenericArgs::ParenthesizedElided(span) => (*span, true),
|
||||
}
|
||||
} else {
|
||||
(DUMMY_SP, false)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue