diff options
| author | Brian Anderson <banderson@mozilla.com> | 2013-10-18 15:16:18 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2013-10-21 11:59:23 -0700 |
| commit | 3675e42334e9e58ae16446f52b2c6c951e8e1628 (patch) | |
| tree | 326bfd074994ac7fe42f59473a9824882df4f9dc /src/libsyntax/ext | |
| parent | cf7b9eb51f10fc0b27164c27a30600f80927a1d3 (diff) | |
| download | rust-3675e42334e9e58ae16446f52b2c6c951e8e1628.tar.gz rust-3675e42334e9e58ae16446f52b2c6c951e8e1628.zip | |
std: Move sys::log_str to repr::repr_to_str. Further work on #2240.
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/deriving/to_str.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libsyntax/ext/deriving/to_str.rs b/src/libsyntax/ext/deriving/to_str.rs index fa13f78d0f9..77dbafa5ad7 100644 --- a/src/libsyntax/ext/deriving/to_str.rs +++ b/src/libsyntax/ext/deriving/to_str.rs @@ -40,9 +40,10 @@ pub fn expand_deriving_to_str(cx: @ExtCtxt, } // It used to be the case that this deriving implementation invoked -// std::sys::log_str, but this isn't sufficient because it doesn't invoke the -// to_str() method on each field. Hence we mirror the logic of the log_str() -// method, but with tweaks to call to_str() on sub-fields. +// std::repr::repr_to_str, but this isn't sufficient because it +// doesn't invoke the to_str() method on each field. Hence we mirror +// the logic of the repr_to_str() method, but with tweaks to call to_str() +// on sub-fields. fn to_str_substructure(cx: @ExtCtxt, span: Span, substr: &Substructure) -> @Expr { let to_str = cx.ident_of("to_str"); |
