summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2014-01-07 18:49:13 -0800
committerBrian Anderson <banderson@mozilla.com>2014-01-07 18:49:13 -0800
commitd32363266968c0259c3ec2065c5dd7b6fc85b152 (patch)
tree4415980f8b6384ca7532a5b4c259e4b8d2515e7e /src/libsyntax
parentb65b4d63841d09395db18eaed6e8007086592188 (diff)
downloadrust-d32363266968c0259c3ec2065c5dd7b6fc85b152.tar.gz
rust-d32363266968c0259c3ec2065c5dd7b6fc85b152.zip
'borrowed pointer' -> 'reference'
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/ast.rs2
-rw-r--r--src/libsyntax/ext/deriving/generic.rs2
-rw-r--r--src/libsyntax/util/interner.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs
index 3523d63ef60..8864c678b95 100644
--- a/src/libsyntax/ast.rs
+++ b/src/libsyntax/ast.rs
@@ -371,7 +371,7 @@ pub enum Pat_ {
     PatTup(~[@Pat]),
     PatBox(@Pat),
     PatUniq(@Pat),
-    PatRegion(@Pat), // borrowed pointer pattern
+    PatRegion(@Pat), // reference pattern
     PatLit(@Expr),
     PatRange(@Expr, @Expr),
     // [a, b, ..i, y, z] is represented as
diff --git a/src/libsyntax/ext/deriving/generic.rs b/src/libsyntax/ext/deriving/generic.rs
index 2eb0fe30b4b..234551ccb01 100644
--- a/src/libsyntax/ext/deriving/generic.rs
+++ b/src/libsyntax/ext/deriving/generic.rs
@@ -26,7 +26,7 @@ Supported features (fairly exhaustive):
   requires an explicit `Eq` bound at the
   moment. (`TraitDef.additional_bounds`)
 
-Unsupported: FIXME #6257: calling methods on borrowed pointer fields,
+Unsupported: FIXME #6257: calling methods on reference fields,
 e.g. deriving TotalEq/TotalOrd/Clone don't work on `struct A(&int)`,
 because of how the auto-dereferencing happens.
 
diff --git a/src/libsyntax/util/interner.rs b/src/libsyntax/util/interner.rs
index b694e1f702b..fdc54f1f140 100644
--- a/src/libsyntax/util/interner.rs
+++ b/src/libsyntax/util/interner.rs
@@ -83,7 +83,7 @@ impl<T:Eq + IterBytes + Hash + Freeze + Clone + 'static> Interner<T> {
 }
 
 // A StrInterner differs from Interner<String> in that it accepts
-// borrowed pointers rather than @ ones, resulting in less allocation.
+// references rather than @ ones, resulting in less allocation.
 pub struct StrInterner {
     priv map: @RefCell<HashMap<@str, Name>>,
     priv vect: @RefCell<~[@str]>,