about summary refs log tree commit diff
path: root/src/test/ui/macros
diff options
context:
space:
mode:
authorKonrad Borowski <konrad.borowski@kontomatik.com>2017-11-09 12:36:38 +0100
committerKonrad Borowski <konrad.borowski@kontomatik.com>2017-11-09 14:14:49 +0100
commit6a92c0fdbddbda6fcb0c6215f64240d228e4b2f5 (patch)
treeba101debdd23491088c8f90d355aa36d2dcb2483 /src/test/ui/macros
parentfd9ecfdfd01c0954172a002cc806174a077b9e3d (diff)
downloadrust-6a92c0fdbddbda6fcb0c6215f64240d228e4b2f5.tar.gz
rust-6a92c0fdbddbda6fcb0c6215f64240d228e4b2f5.zip
Allow a trailing comma in assert_eq/ne macro
Diffstat (limited to 'src/test/ui/macros')
-rw-r--r--src/test/ui/macros/assert_eq_trailing_comma.rs13
-rw-r--r--src/test/ui/macros/assert_eq_trailing_comma.stderr8
-rw-r--r--src/test/ui/macros/assert_ne_trailing_comma.rs13
-rw-r--r--src/test/ui/macros/assert_ne_trailing_comma.stderr8
4 files changed, 0 insertions, 42 deletions
diff --git a/src/test/ui/macros/assert_eq_trailing_comma.rs b/src/test/ui/macros/assert_eq_trailing_comma.rs
deleted file mode 100644
index d98baf640a8..00000000000
--- a/src/test/ui/macros/assert_eq_trailing_comma.rs
+++ /dev/null
@@ -1,13 +0,0 @@
-// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
-fn main() {
-    assert_eq!(1, 1,);
-}
diff --git a/src/test/ui/macros/assert_eq_trailing_comma.stderr b/src/test/ui/macros/assert_eq_trailing_comma.stderr
deleted file mode 100644
index 1b46e94584e..00000000000
--- a/src/test/ui/macros/assert_eq_trailing_comma.stderr
+++ /dev/null
@@ -1,8 +0,0 @@
-error: unexpected end of macro invocation
-  --> $DIR/assert_eq_trailing_comma.rs:12:20
-   |
-12 |     assert_eq!(1, 1,);
-   |                    ^
-
-error: aborting due to previous error
-
diff --git a/src/test/ui/macros/assert_ne_trailing_comma.rs b/src/test/ui/macros/assert_ne_trailing_comma.rs
deleted file mode 100644
index 4d3c29da8b2..00000000000
--- a/src/test/ui/macros/assert_ne_trailing_comma.rs
+++ /dev/null
@@ -1,13 +0,0 @@
-// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
-fn main() {
-    assert_ne!(1, 2,);
-}
diff --git a/src/test/ui/macros/assert_ne_trailing_comma.stderr b/src/test/ui/macros/assert_ne_trailing_comma.stderr
deleted file mode 100644
index 33d2cb0ed82..00000000000
--- a/src/test/ui/macros/assert_ne_trailing_comma.stderr
+++ /dev/null
@@ -1,8 +0,0 @@
-error: unexpected end of macro invocation
-  --> $DIR/assert_ne_trailing_comma.rs:12:20
-   |
-12 |     assert_ne!(1, 2,);
-   |                    ^
-
-error: aborting due to previous error
-