about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorpetrochenkov <vadim.petrochenkov@gmail.com>2017-06-29 13:16:35 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2017-06-29 15:19:53 +0300
commitb33fd6d75966411c3934cd6bde07bb1a653b2d83 (patch)
tree99da762fe26f23fef6f73a6a2b6302b6569c52da /src/test
parente03948ef3e19ff90066ca366bf76c390d7a42bc5 (diff)
Change some terminology around keywords and reserved identifiers
Diffstat (limited to 'src/test')
-rw-r--r--src/test/compile-fail/dollar-crate-is-keyword.rs4
-rw-r--r--src/test/parse-fail/macro-keyword.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/test/compile-fail/dollar-crate-is-keyword.rs b/src/test/compile-fail/dollar-crate-is-keyword.rs
index 0bd47a0e11a..70597a230a8 100644
--- a/src/test/compile-fail/dollar-crate-is-keyword.rs
+++ b/src/test/compile-fail/dollar-crate-is-keyword.rs
@@ -10,11 +10,11 @@
 
 macro_rules! m {
     () => {
-        struct $crate {} //~ ERROR expected identifier, found keyword `$crate`
+        struct $crate {} //~ ERROR expected identifier, found reserved identifier `$crate`
 
         use $crate; // OK
                     //~^ WARN `$crate` may not be imported
-        use $crate as $crate; //~ ERROR expected identifier, found keyword `$crate`
+        use $crate as $crate; //~ ERROR expected identifier, found reserved identifier `$crate`
                               //~^ WARN `$crate` may not be imported
     }
 }
diff --git a/src/test/parse-fail/macro-keyword.rs b/src/test/parse-fail/macro-keyword.rs
index 6a7ccff1554..c7dcaf4137e 100644
--- a/src/test/parse-fail/macro-keyword.rs
+++ b/src/test/parse-fail/macro-keyword.rs
@@ -10,7 +10,7 @@
 
 // compile-flags: -Z parse-only
 
-fn macro() {  //~ ERROR `macro` is a reserved keyword
+fn macro() {  //~ ERROR expected identifier, found reserved keyword `macro`
 }
 
 pub fn main() {