about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-02-20 08:21:45 -0800
committerbors <bors@rust-lang.org>2014-02-20 08:21:45 -0800
commit1366e04cf48a3274571a4ae88f9700834ffd58c5 (patch)
tree30866cada01f6c451b7a34b786b9fe915c536809
parent06e1281198da31219b89a7cdb32f3c05b76afc07 (diff)
parent4ad57513f4eac1158ad5051a586af16be52fb6c8 (diff)
downloadrust-1366e04cf48a3274571a4ae88f9700834ffd58c5.tar.gz
rust-1366e04cf48a3274571a4ae88f9700834ffd58c5.zip
auto merge of #12405 : kud1ing/rust/backticks, r=huonw
-rw-r--r--src/librustc/middle/mem_categorization.rs2
-rw-r--r--src/test/compile-fail/borrowck-move-in-irrefut-pat.rs6
-rw-r--r--src/test/compile-fail/borrowck-move-out-of-vec-tail.rs4
-rw-r--r--src/test/compile-fail/issue-2590.rs2
4 files changed, 7 insertions, 7 deletions
diff --git a/src/librustc/middle/mem_categorization.rs b/src/librustc/middle/mem_categorization.rs
index a893840f678..f423c37b9c7 100644
--- a/src/librustc/middle/mem_categorization.rs
+++ b/src/librustc/middle/mem_categorization.rs
@@ -1152,7 +1152,7 @@ impl<TYPER:Typer> MemCategorizationContext<TYPER> {
                       format!("captured outer variable")
                   }
                   _ => {
-                      format!("dereference of {} pointer", ptr_sigil(pk))
+                      format!("dereference of `{}`-pointer", ptr_sigil(pk))
                   }
               }
           }
diff --git a/src/test/compile-fail/borrowck-move-in-irrefut-pat.rs b/src/test/compile-fail/borrowck-move-in-irrefut-pat.rs
index 63f88347090..47bb75cd11b 100644
--- a/src/test/compile-fail/borrowck-move-in-irrefut-pat.rs
+++ b/src/test/compile-fail/borrowck-move-in-irrefut-pat.rs
@@ -11,16 +11,16 @@
 fn with(f: |&~str|) {}
 
 fn arg_item(&_x: &~str) {}
-    //~^ ERROR cannot move out of dereference of & pointer
+    //~^ ERROR cannot move out of dereference of `&`-pointer
 
 fn arg_closure() {
     with(|&_x| ())
-    //~^ ERROR cannot move out of dereference of & pointer
+    //~^ ERROR cannot move out of dereference of `&`-pointer
 }
 
 fn let_pat() {
     let &_x = &~"hi";
-    //~^ ERROR cannot move out of dereference of & pointer
+    //~^ ERROR cannot move out of dereference of `&`-pointer
 }
 
 pub fn main() {}
diff --git a/src/test/compile-fail/borrowck-move-out-of-vec-tail.rs b/src/test/compile-fail/borrowck-move-out-of-vec-tail.rs
index 9a99c66b9d6..67b83ee84e4 100644
--- a/src/test/compile-fail/borrowck-move-out-of-vec-tail.rs
+++ b/src/test/compile-fail/borrowck-move-out-of-vec-tail.rs
@@ -26,8 +26,8 @@ pub fn main() {
         [_, ..tail] => {
             match tail {
                 [Foo { string: a }, Foo { string: b }] => {
-                    //~^ ERROR cannot move out of dereference of & pointer
-                    //~^^ ERROR cannot move out of dereference of & pointer
+                    //~^ ERROR cannot move out of dereference of `&`-pointer
+                    //~^^ ERROR cannot move out of dereference of `&`-pointer
                 }
                 _ => {
                     unreachable!();
diff --git a/src/test/compile-fail/issue-2590.rs b/src/test/compile-fail/issue-2590.rs
index 92f2e5ea689..a2bb583a3d6 100644
--- a/src/test/compile-fail/issue-2590.rs
+++ b/src/test/compile-fail/issue-2590.rs
@@ -18,7 +18,7 @@ trait parse {
 
 impl parse for parser {
     fn parse(&self) -> ~[int] {
-        self.tokens //~ ERROR cannot move out of dereference of & pointer
+        self.tokens //~ ERROR cannot move out of dereference of `&`-pointer
     }
 }