about summary refs log tree commit diff
path: root/src/libsyntax/ext/deriving/iter_bytes.rs
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2013-05-17 18:41:14 +1000
committerHuon Wilson <dbau.pp+github@gmail.com>2013-05-21 23:33:58 +1000
commit8e9eba8013490e7b6ba059397bbe73b7128c04b3 (patch)
tree7c631e1c918d4cab90c734be56acb065d847a8b8 /src/libsyntax/ext/deriving/iter_bytes.rs
parentdc7b83d18659503f47ae622918c3576d430a926e (diff)
downloadrust-8e9eba8013490e7b6ba059397bbe73b7128c04b3.tar.gz
rust-8e9eba8013490e7b6ba059397bbe73b7128c04b3.zip
syntax/ext: remove the ~str dependence of the deriving code.
Diffstat (limited to 'src/libsyntax/ext/deriving/iter_bytes.rs')
-rw-r--r--src/libsyntax/ext/deriving/iter_bytes.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libsyntax/ext/deriving/iter_bytes.rs b/src/libsyntax/ext/deriving/iter_bytes.rs
index 1c9ec6ece2e..9b8f127d42a 100644
--- a/src/libsyntax/ext/deriving/iter_bytes.rs
+++ b/src/libsyntax/ext/deriving/iter_bytes.rs
@@ -19,19 +19,19 @@ pub fn expand_deriving_iter_bytes(cx: @ext_ctxt,
                                   mitem: @meta_item,
                                   in_items: ~[@item]) -> ~[@item] {
     let trait_def = TraitDef {
-        path: Path::new(~[~"core", ~"to_bytes", ~"IterBytes"]),
+        path: Path::new(~["core", "to_bytes", "IterBytes"]),
         additional_bounds: ~[],
         generics: LifetimeBounds::empty(),
         methods: ~[
             MethodDef {
-                name: ~"iter_bytes",
+                name: "iter_bytes",
                 generics: LifetimeBounds::empty(),
                 explicit_self: borrowed_explicit_self(),
                 args: ~[
-                    Literal(Path::new(~[~"bool"])),
-                    Literal(Path::new(~[~"core", ~"to_bytes", ~"Cb"]))
+                    Literal(Path::new(~["bool"])),
+                    Literal(Path::new(~["core", "to_bytes", "Cb"]))
                 ],
-                ret_ty: Literal(Path::new(~[~"bool"])),
+                ret_ty: Literal(Path::new(~["bool"])),
                 const_nonmatching: false,
                 combine_substructure: iter_bytes_substructure
             }