about summary refs log tree commit diff
path: root/src/rustc/middle/region.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/rustc/middle/region.rs')
-rw-r--r--src/rustc/middle/region.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rustc/middle/region.rs b/src/rustc/middle/region.rs
index e17343a0b9e..6b79b3c6aa8 100644
--- a/src/rustc/middle/region.rs
+++ b/src/rustc/middle/region.rs
@@ -214,14 +214,14 @@ fn nearest_common_ancestor(region_map: region_map, scope_a: ast::node_id,
                            scope_b: ast::node_id) -> option<ast::node_id> {
 
     fn ancestors_of(region_map: region_map, scope: ast::node_id)
-                    -> [ast::node_id] {
-        let mut result = [scope];
+                    -> [ast::node_id]/~ {
+        let mut result = [scope]/~;
         let mut scope = scope;
         loop {
             alt region_map.find(scope) {
                 none { ret result; }
                 some(superscope) {
-                    result += [superscope];
+                    result += [superscope]/~;
                     scope = superscope;
                 }
             }
@@ -235,7 +235,7 @@ fn nearest_common_ancestor(region_map: region_map, scope_a: ast::node_id,
     let mut a_index = vec::len(a_ancestors) - 1u;
     let mut b_index = vec::len(b_ancestors) - 1u;
 
-    // Here, [ab]_ancestors is a vector going from narrow to broad.
+    // Here, [ab]/~_ancestors is a vector going from narrow to broad.
     // The end of each vector will be the item where the scope is
     // defined; if there are any common ancestors, then the tails of
     // the vector will be the same.  So basically we want to walk