about summary refs log tree commit diff
path: root/src/libsyntax/ast_map
diff options
context:
space:
mode:
authorNick Cameron <ncameron@mozilla.com>2014-09-24 23:41:09 +1200
committerNick Cameron <ncameron@mozilla.com>2014-10-07 15:49:53 +1300
commit59976942eacd26c0cc37247c3ac0c78b97edc6ea (patch)
tree81df79265eb8601f2965303b9626b80ee728208f /src/libsyntax/ast_map
parentb5ba2f5517b1f90d07969ca3facdf5132e42436c (diff)
downloadrust-59976942eacd26c0cc37247c3ac0c78b97edc6ea.tar.gz
rust-59976942eacd26c0cc37247c3ac0c78b97edc6ea.zip
Use slice syntax instead of slice_to, etc.
Diffstat (limited to 'src/libsyntax/ast_map')
-rw-r--r--src/libsyntax/ast_map/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/ast_map/mod.rs b/src/libsyntax/ast_map/mod.rs
index a5458461a8b..257bfc632d8 100644
--- a/src/libsyntax/ast_map/mod.rs
+++ b/src/libsyntax/ast_map/mod.rs
@@ -496,7 +496,7 @@ impl<'ast> Map<'ast> {
         NodesMatchingSuffix {
             map: self,
             item_name: parts.last().unwrap(),
-            in_which: parts.slice_to(parts.len() - 1),
+            in_which: parts[..parts.len() - 1],
             idx: 0,
         }
     }