From 3675e42334e9e58ae16446f52b2c6c951e8e1628 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Fri, 18 Oct 2013 15:16:18 -0700 Subject: std: Move sys::log_str to repr::repr_to_str. Further work on #2240. --- src/libsyntax/ext/deriving/to_str.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/libsyntax') 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"); -- cgit 1.4.1-3-g733a5