review comments

This commit is contained in:
Esteban Küber 2019-09-04 23:41:51 -07:00
parent c9d05aa9ce
commit b21408527a
5 changed files with 34 additions and 32 deletions

View file

@ -197,7 +197,7 @@ impl<'a> Parser<'a> {
let (args, constraints) =
self.parse_generic_args_with_leaning_angle_bracket_recovery(style, lo)?;
self.expect_gt()?;
let span = ident.span.to(self.prev_span);
let span = lo.to(self.prev_span);
AngleBracketedArgs { args, constraints, span }.into()
} else {
// `(T, U) -> R`