mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
keep bounds where they were
This commit is contained in:
parent
7e8517df61
commit
7cafefec4a
@ -1286,14 +1286,13 @@ impl<'a> Parser<'a> {
|
||||
}
|
||||
|
||||
self.bump(); // `+`
|
||||
let bounds = self.parse_generic_bounds(None)?;
|
||||
let sum_span = ty.span.to(self.prev_token.span);
|
||||
|
||||
let sum_with_parens: String;
|
||||
|
||||
let sub = match ty.kind {
|
||||
TyKind::Rptr(ref lifetime, ref mut_ty) => {
|
||||
let bounds = self.parse_generic_bounds(None)?;
|
||||
|
||||
sum_with_parens = pprust::to_string(|s| {
|
||||
s.s.word("&");
|
||||
s.print_opt_lifetime(lifetime);
|
||||
|
Loading…
Reference in New Issue
Block a user