summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-10-21 15:46:23 -0700
committerbors <bors@rust-lang.org>2013-10-21 15:46:23 -0700
commit7e4404b6fbbf28bbe115ab8837f929e51c831a31 (patch)
treee30286528b9b873604d6c012998d61249e322c74 /src/libsyntax
parent6dd6623b71ccee5b24117fa14df2bf3e5533e0c7 (diff)
parent3675e42334e9e58ae16446f52b2c6c951e8e1628 (diff)
downloadrust-7e4404b6fbbf28bbe115ab8837f929e51c831a31.tar.gz
rust-7e4404b6fbbf28bbe115ab8837f929e51c831a31.zip
auto merge of #9937 : brson/rust/log_str, r=alexcrichton
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/ext/deriving/to_str.rs7
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");