keep bounds where they were
This commit is contained in:
parent
7e8517df61
commit
7cafefec4a
@ -1286,14 +1286,13 @@ pub(super) fn maybe_recover_from_bad_type_plus(
|
|||||||
}
|
}
|
||||||
|
|
||||||
self.bump(); // `+`
|
self.bump(); // `+`
|
||||||
|
let bounds = self.parse_generic_bounds(None)?;
|
||||||
let sum_span = ty.span.to(self.prev_token.span);
|
let sum_span = ty.span.to(self.prev_token.span);
|
||||||
|
|
||||||
let sum_with_parens: String;
|
let sum_with_parens: String;
|
||||||
|
|
||||||
let sub = match ty.kind {
|
let sub = match ty.kind {
|
||||||
TyKind::Rptr(ref lifetime, ref mut_ty) => {
|
TyKind::Rptr(ref lifetime, ref mut_ty) => {
|
||||||
let bounds = self.parse_generic_bounds(None)?;
|
|
||||||
|
|
||||||
sum_with_parens = pprust::to_string(|s| {
|
sum_with_parens = pprust::to_string(|s| {
|
||||||
s.s.word("&");
|
s.s.word("&");
|
||||||
s.print_opt_lifetime(lifetime);
|
s.print_opt_lifetime(lifetime);
|
||||||
|
Loading…
Reference in New Issue
Block a user