summaryrefslogtreecommitdiffstats
path: root/tests/pretty
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pretty')
-rw-r--r--tests/pretty/ast-stmt-expr-attr.rs1
-rw-r--r--tests/pretty/issue-4264.pp10
-rw-r--r--tests/pretty/stmt_expr_attributes.rs2
-rw-r--r--tests/pretty/tests-are-sorted.pp22
-rw-r--r--tests/pretty/tests-are-sorted.rs3
5 files changed, 25 insertions, 13 deletions
diff --git a/tests/pretty/ast-stmt-expr-attr.rs b/tests/pretty/ast-stmt-expr-attr.rs
index 27c86ec22..a958666e3 100644
--- a/tests/pretty/ast-stmt-expr-attr.rs
+++ b/tests/pretty/ast-stmt-expr-attr.rs
@@ -4,7 +4,6 @@ fn main() {}
#[cfg(FALSE)]
fn syntax() {
- let _ = #[attr] box 0;
let _ = #[attr] [];
let _ = #[attr] [0];
let _ = #[attr] [0; 0];
diff --git a/tests/pretty/issue-4264.pp b/tests/pretty/issue-4264.pp
index e0fa1fe28..4020a433d 100644
--- a/tests/pretty/issue-4264.pp
+++ b/tests/pretty/issue-4264.pp
@@ -32,13 +32,11 @@ fn bar() ({
({
let res =
((::alloc::fmt::format as
- for<'a> fn(Arguments<'a>) -> String {format})(((<#[lang = "format_arguments"]>::new_v1
+ for<'a> fn(Arguments<'a>) -> String {format})(((<#[lang = "format_arguments"]>::new_const
as
- fn(&[&'static str], &[core::fmt::ArgumentV1<'_>]) -> Arguments<'_> {Arguments::<'_>::new_v1})((&([("test"
- as &str)] as [&str; 1]) as &[&str; 1]),
- (&([] as [core::fmt::ArgumentV1<'_>; 0]) as
- &[core::fmt::ArgumentV1<'_>; 0])) as Arguments<'_>)) as
- String);
+ fn(&[&'static str]) -> Arguments<'_> {Arguments::<'_>::new_const})((&([("test"
+ as &str)] as [&str; 1]) as &[&str; 1])) as Arguments<'_>))
+ as String);
(res as String)
} as String);
} as ())
diff --git a/tests/pretty/stmt_expr_attributes.rs b/tests/pretty/stmt_expr_attributes.rs
index c01379065..052c45f2c 100644
--- a/tests/pretty/stmt_expr_attributes.rs
+++ b/tests/pretty/stmt_expr_attributes.rs
@@ -1,6 +1,5 @@
// pp-exact
-#![feature(box_syntax)]
#![feature(inline_const)]
#![feature(inline_const_pat)]
#![feature(rustc_attrs)]
@@ -140,7 +139,6 @@ fn _10() {
}
fn _11() {
- let _ = #[rustc_dummy] box 0;
let _: [(); 0] = #[rustc_dummy] [];
let _ = #[rustc_dummy] [0, 0];
let _ = #[rustc_dummy] [0; 0];
diff --git a/tests/pretty/tests-are-sorted.pp b/tests/pretty/tests-are-sorted.pp
index 15dcd4ed9..58f746f2e 100644
--- a/tests/pretty/tests-are-sorted.pp
+++ b/tests/pretty/tests-are-sorted.pp
@@ -4,7 +4,7 @@
use ::std::prelude::rust_2015::*;
#[macro_use]
extern crate std;
-// compile-flags: --crate-type=lib --test
+// compile-flags: --crate-type=lib --test --remap-path-prefix={{src-base}}/=/the/src/ --remap-path-prefix={{src-base}}\=/the/src/
// pretty-compare-only
// pretty-mode:expanded
// pp-exact:tests-are-sorted.pp
@@ -18,6 +18,11 @@ pub const m_test: test::TestDescAndFn =
name: test::StaticTestName("m_test"),
ignore: false,
ignore_message: ::core::option::Option::None,
+ source_file: "/the/src/tests-are-sorted.rs",
+ start_line: 7usize,
+ start_col: 4usize,
+ end_line: 7usize,
+ end_col: 10usize,
compile_fail: false,
no_run: false,
should_panic: test::ShouldPanic::No,
@@ -34,8 +39,13 @@ pub const z_test: test::TestDescAndFn =
test::TestDescAndFn {
desc: test::TestDesc {
name: test::StaticTestName("z_test"),
- ignore: false,
- ignore_message: ::core::option::Option::None,
+ ignore: true,
+ ignore_message: ::core::option::Option::Some("not yet implemented"),
+ source_file: "/the/src/tests-are-sorted.rs",
+ start_line: 11usize,
+ start_col: 4usize,
+ end_line: 11usize,
+ end_col: 10usize,
compile_fail: false,
no_run: false,
should_panic: test::ShouldPanic::No,
@@ -43,6 +53,7 @@ pub const z_test: test::TestDescAndFn =
},
testfn: test::StaticTestFn(|| test::assert_test_result(z_test())),
};
+#[ignore = "not yet implemented"]
fn z_test() {}
extern crate test;
@@ -54,6 +65,11 @@ pub const a_test: test::TestDescAndFn =
name: test::StaticTestName("a_test"),
ignore: false,
ignore_message: ::core::option::Option::None,
+ source_file: "/the/src/tests-are-sorted.rs",
+ start_line: 14usize,
+ start_col: 4usize,
+ end_line: 14usize,
+ end_col: 10usize,
compile_fail: false,
no_run: false,
should_panic: test::ShouldPanic::No,
diff --git a/tests/pretty/tests-are-sorted.rs b/tests/pretty/tests-are-sorted.rs
index 1f737d547..39e092225 100644
--- a/tests/pretty/tests-are-sorted.rs
+++ b/tests/pretty/tests-are-sorted.rs
@@ -1,4 +1,4 @@
-// compile-flags: --crate-type=lib --test
+// compile-flags: --crate-type=lib --test --remap-path-prefix={{src-base}}/=/the/src/ --remap-path-prefix={{src-base}}\=/the/src/
// pretty-compare-only
// pretty-mode:expanded
// pp-exact:tests-are-sorted.pp
@@ -7,6 +7,7 @@
fn m_test() {}
#[test]
+#[ignore = "not yet implemented"]
fn z_test() {}
#[test]