File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 5d07a70fb3227793cbb582f54ec98a7837cbc780
2
+ refs/heads/master: 9788c41ce775c74613fe244d529da56285a3e6b9
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
5
5
refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650
Original file line number Diff line number Diff line change @@ -286,7 +286,13 @@ impl ReprVisitor : TyVisitor {
286
286
fn visit_f32 ( ) -> bool { self . write :: < f32 > ( ) }
287
287
fn visit_f64 ( ) -> bool { self . write :: < f64 > ( ) }
288
288
289
- fn visit_char ( ) -> bool { self . write :: < u32 > ( ) }
289
+ fn visit_char ( ) -> bool {
290
+ do self . get :: < char > |& ch| {
291
+ self . writer . write_char ( '\'' ) ;
292
+ self . writer . write_escaped_char ( ch) ;
293
+ self . writer . write_char ( '\'' ) ;
294
+ }
295
+ }
290
296
291
297
// Type no longer exists, vestigial function.
292
298
fn visit_str ( ) -> bool { fail; }
You can’t perform that action at this time.
0 commit comments