diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-06-24 14:15:11 -0400 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-06-29 09:10:17 -0400 |
| commit | da5c835c8bc7c283a97dd9c7f183755473ecf810 (patch) | |
| tree | 7565b095d08f4e6f3b7db20b921715ed28bf3a59 /src/libsyntax/parse/diagnostics.rs | |
| parent | 1aff8af213d76d746a4a86bf1b1c44af9d3d5691 (diff) | |
| download | rust-da5c835c8bc7c283a97dd9c7f183755473ecf810.tar.gz rust-da5c835c8bc7c283a97dd9c7f183755473ecf810.zip | |
Remove io::Result from syntax::print
Since we're now writing directly to the vector, there's no need to thread results through the whole printing infrastructure
Diffstat (limited to 'src/libsyntax/parse/diagnostics.rs')
| -rw-r--r-- | src/libsyntax/parse/diagnostics.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libsyntax/parse/diagnostics.rs b/src/libsyntax/parse/diagnostics.rs index 0ea0b2a694d..edcdb18a037 100644 --- a/src/libsyntax/parse/diagnostics.rs +++ b/src/libsyntax/parse/diagnostics.rs @@ -613,12 +613,12 @@ impl<'a> Parser<'a> { let sum_with_parens = pprust::to_string(|s| { use crate::print::pprust::PrintState; - s.s.word("&")?; - s.print_opt_lifetime(lifetime)?; - s.print_mutability(mut_ty.mutbl)?; - s.popen()?; - s.print_type(&mut_ty.ty)?; - s.print_type_bounds(" +", &bounds)?; + s.s.word("&"); + s.print_opt_lifetime(lifetime); + s.print_mutability(mut_ty.mutbl); + s.popen(); + s.print_type(&mut_ty.ty); + s.print_type_bounds(" +", &bounds); s.pclose() }); err.span_suggestion( |
