about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorkud1ing <github@kudling.de>2014-02-17 21:48:53 +0100
committerkud1ing <github@kudling.de>2014-02-17 21:48:53 +0100
commite22d18dcd0bfb520ca0581cf6102cbb924ae3a74 (patch)
treedde3c06ac6966db91f7bdd715ec166f0b920e896 /src
parenta7aa4c477e7ccc51f19805c42b74cf22dfe22c39 (diff)
downloadrust-e22d18dcd0bfb520ca0581cf6102cbb924ae3a74.tar.gz
rust-e22d18dcd0bfb520ca0581cf6102cbb924ae3a74.zip
backticks for syntax elements
Diffstat (limited to 'src')
-rw-r--r--src/librustc/middle/typeck/check/_match.rs4
-rw-r--r--src/test/compile-fail/issue-4972.rs2
-rw-r--r--src/test/compile-fail/issue-5100.rs4
3 files changed, 5 insertions, 5 deletions
diff --git a/src/librustc/middle/typeck/check/_match.rs b/src/librustc/middle/typeck/check/_match.rs
index 8117e816493..d33afd8fd03 100644
--- a/src/librustc/middle/typeck/check/_match.rs
+++ b/src/librustc/middle/typeck/check/_match.rs
@@ -687,8 +687,8 @@ pub fn check_pointer_pat(pcx: &pat_ctxt,
                              e, actual)})},
                 Some(expected),
                 format!("{} pattern", match pointer_kind {
-                    Send => "a ~-box",
-                    Borrowed => "an &-pointer"
+                    Send => "a `~`-box",
+                    Borrowed => "an `&`-pointer"
                 }),
                 None);
             fcx.write_error(pat_id);
diff --git a/src/test/compile-fail/issue-4972.rs b/src/test/compile-fail/issue-4972.rs
index fcd15a21219..8d281a0b174 100644
--- a/src/test/compile-fail/issue-4972.rs
+++ b/src/test/compile-fail/issue-4972.rs
@@ -16,7 +16,7 @@ pub enum TraitWrapper {
 
 fn get_tw_map<'lt>(tw: &'lt TraitWrapper) -> &'lt MyTrait {
     match *tw {
-        A(~ref map) => map, //~ ERROR found a ~-box pattern
+        A(~ref map) => map, //~ ERROR found a `~`-box pattern
     }
 }
 
diff --git a/src/test/compile-fail/issue-5100.rs b/src/test/compile-fail/issue-5100.rs
index ae523e1a9c4..b7c440d30b3 100644
--- a/src/test/compile-fail/issue-5100.rs
+++ b/src/test/compile-fail/issue-5100.rs
@@ -24,12 +24,12 @@ fn main() {
 
     match (true, false) {
         ~(true, false) => ()
-        //~^ ERROR mismatched types: expected `(bool,bool)` but found a ~-box pattern
+        //~^ ERROR mismatched types: expected `(bool,bool)` but found a `~`-box pattern
     }
 
     match (true, false) {
         &(true, false) => ()
-        //~^ ERROR mismatched types: expected `(bool,bool)` but found an &-pointer pattern
+        //~^ ERROR mismatched types: expected `(bool,bool)` but found an `&`-pointer pattern
     }