]> git.lizzy.rs Git - rust.git/commitdiff
backticks for syntax elements
authorkud1ing <github@kudling.de>
Mon, 17 Feb 2014 20:48:53 +0000 (21:48 +0100)
committerkud1ing <github@kudling.de>
Mon, 17 Feb 2014 20:48:53 +0000 (21:48 +0100)
src/librustc/middle/typeck/check/_match.rs
src/test/compile-fail/issue-4972.rs
src/test/compile-fail/issue-5100.rs

index 8117e816493853e41d412dc874cfb0882a50fb9f..d33afd8fd035c4ffc40959d18de4e584d4846252 100644 (file)
@@ -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);
index fcd15a2121931c37534dec8ff7ad85b56d89f0dc..8d281a0b174acc0fd54d0854569d51a00058a2aa 100644 (file)
@@ -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
     }
 }
 
index ae523e1a9c4742590c789a6152dbed9b523927d2..b7c440d30b3aee61527604bfc5e56060e71fa924 100644 (file)
@@ -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
     }