about summary refs log tree commit diff
path: root/src/librustc_parse/parser/diagnostics.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-11-25 01:20:38 +0000
committerbors <bors@rust-lang.org>2019-11-25 01:20:38 +0000
commitc9bacb70f0b19d324a548bd7942692ab18d159a4 (patch)
tree66f7ee078e270f46163da47516b38139204476bb /src/librustc_parse/parser/diagnostics.rs
parent388ffd9df83cfac20b3fbf7128eb44d5b1526f8c (diff)
parentf4efc5de8a91c8322f83fe07ced5ab119a457ade (diff)
downloadrust-c9bacb70f0b19d324a548bd7942692ab18d159a4.tar.gz
rust-c9bacb70f0b19d324a548bd7942692ab18d159a4.zip
Auto merge of #66671 - matthewjasper:ast-address-of, r=Centril
Ast address-of

This is the parts of #64588 that don't affect MIR. If an address-of expression makes it to MIR lowering we error and lower to the best currently expressible approximation to limit further errors.

r? @Centril
Diffstat (limited to 'src/librustc_parse/parser/diagnostics.rs')
-rw-r--r--src/librustc_parse/parser/diagnostics.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_parse/parser/diagnostics.rs b/src/librustc_parse/parser/diagnostics.rs
index 1b2760cf457..fc334a558f5 100644
--- a/src/librustc_parse/parser/diagnostics.rs
+++ b/src/librustc_parse/parser/diagnostics.rs
@@ -739,7 +739,7 @@ impl<'a> Parser<'a> {
                 let sum_with_parens = pprust::to_string(|s| {
                     s.s.word("&");
                     s.print_opt_lifetime(lifetime);
-                    s.print_mutability(mut_ty.mutbl);
+                    s.print_mutability(mut_ty.mutbl, false);
                     s.popen();
                     s.print_type(&mut_ty.ty);
                     s.print_type_bounds(" +", &bounds);