]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_trans/save/mod.rs
Fallout from stabilization.
[rust.git] / src / librustc_trans / save / mod.rs
index b12903c814cbf83db5e50deac0fda6bc6e189175..c765698fc0cdbbe2a795a745dc2e4d3905979e9c 100644 (file)
@@ -157,7 +157,7 @@ fn write_sub_paths_truncated(&mut self, path: &ast::Path) {
             return;
         }
 
-        let sub_paths = sub_paths.slice(0, len-1);
+        let sub_paths = &sub_paths[.. (len-1)];
         for &(ref span, ref qualname) in sub_paths.iter() {
             self.fmt.sub_mod_ref_str(path.span,
                                      *span,
@@ -174,7 +174,7 @@ fn write_sub_path_trait_truncated(&mut self, path: &ast::Path) {
         if len <= 1 {
             return;
         }
-        let sub_paths = sub_paths.slice_to(len-1);
+        let sub_paths = &sub_paths[.. (len-1)];
 
         // write the trait part of the sub-path
         let (ref span, ref qualname) = sub_paths[len-2];