about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorSimonas Kazlauskas <git@kazlauskas.me>2015-07-27 03:49:38 +0300
committerSimonas Kazlauskas <git@kazlauskas.me>2015-07-29 01:59:31 +0300
commitcca0ea718d363acb85e075aee41223f4da009e82 (patch)
tree7c5686962bd85a27ff754f57a107b60086aac3b3 /src/libsyntax/parse/parser.rs
parentffcdf0881b37340c9c90bdfd8b96149090a62378 (diff)
downloadrust-cca0ea718d363acb85e075aee41223f4da009e82.tar.gz
rust-cca0ea718d363acb85e075aee41223f4da009e82.zip
Replace illegal with invalid in most diagnostics
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
-rw-r--r--src/libsyntax/parse/parser.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 2cae6a4be65..11611c9adb0 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -681,7 +681,7 @@ impl<'a> Parser<'a> {
                 if text.is_empty() {
                     self.span_bug(sp, "found empty literal suffix in Some")
                 }
-                self.span_err(sp, &*format!("{} with a suffix is illegal", kind));
+                self.span_err(sp, &*format!("{} with a suffix is invalid", kind));
             }
         }
     }
@@ -5286,7 +5286,7 @@ impl<'a> Parser<'a> {
                         let last_span = self.last_span;
                         self.span_err(
                             last_span,
-                            &format!("illegal ABI: expected one of [{}], \
+                            &format!("invalid ABI: expected one of [{}], \
                                      found `{}`",
                                     abi::all_names().join(", "),
                                     s));