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 2
2
refs/heads/master: 19dfec2aaf746535de1521f68421f9980dbf25de
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
5
- refs/heads/try: 5d07a70fb3227793cbb582f54ec98a7837cbc780
5
+ refs/heads/try: 9788c41ce775c74613fe244d529da56285a3e6b9
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: a810c03263670238bccd64cabb12a23a46e3a278
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