summary refs log tree commit diff
path: root/src/librustc_borrowck/graphviz.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustc_borrowck/graphviz.rs')
-rw-r--r--src/librustc_borrowck/graphviz.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_borrowck/graphviz.rs b/src/librustc_borrowck/graphviz.rs
index 56bf3ae7fd5..39c9d9ba6ad 100644
--- a/src/librustc_borrowck/graphviz.rs
+++ b/src/librustc_borrowck/graphviz.rs
@@ -89,7 +89,7 @@ impl<'a, 'tcx> DataflowLabeller<'a, 'tcx> {
                 set.push_str(", ");
             }
             let loan_str = self.borrowck_ctxt.loan_path_to_string(&*lp);
-            set.push_str(&loan_str[]);
+            set.push_str(&loan_str[..]);
             saw_some = true;
             true
         });