diff options
| author | Do Nhat Minh <mrordinaire@gmail.com> | 2013-07-28 11:21:39 +0800 |
|---|---|---|
| committer | Do Nhat Minh <mrordinaire@gmail.com> | 2013-07-29 20:34:01 +0800 |
| commit | 79f1052b19cb43aad5f47a4e1110206a7c0143f6 (patch) | |
| tree | 74cf1b991dda2d769f996d2232104911e71ccc93 /src/libsyntax | |
| parent | 5c4cd30f80273ba573df048b6295ea6e543df599 (diff) | |
Added %p directive to fmt!, which expects *T as argument
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ext/fmt.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsyntax/ext/fmt.rs b/src/libsyntax/ext/fmt.rs index 737127fcae7..855cf47111a 100644 --- a/src/libsyntax/ext/fmt.rs +++ b/src/libsyntax/ext/fmt.rs @@ -191,6 +191,7 @@ fn pieces_to_expr(cx: @ExtCtxt, sp: span, TyChar => ("char", arg), TyBits | TyOctal | TyHex(_) | TyInt(Unsigned) => ("uint", arg), TyFloat => ("float", arg), + TyPointer => ("pointer", arg), TyPoly => ("poly", cx.expr_addr_of(sp, arg)) }; return make_conv_call(cx, arg.span, name, cnv, actual_arg, @@ -242,6 +243,7 @@ fn pieces_to_expr(cx: @ExtCtxt, sp: span, }, TyOctal => debug!("type: octal"), TyFloat => debug!("type: float"), + TyPointer => debug!("type: pointer"), TyPoly => debug!("type: poly") } } |
