Skip to content

Commit cd25009

Browse files
committed
Re-bless tests/pretty
1 parent 6e48b96 commit cd25009

15 files changed

+38
-38
lines changed

tests/pretty/asm.pp

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
use ::std::prelude::rust_2015::*;
55
#[macro_use]
66
extern crate std;
7-
// pretty-mode:expanded
8-
// pp-exact:asm.pp
9-
// only-x86_64
7+
//@ pretty-mode:expanded
8+
//@ pp-exact:asm.pp
9+
//@ only-x86_64
1010

1111
use std::arch::asm;
1212

tests/pretty/block-comment-wchar.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// Test via: rustc -Zunpretty normal tests/pretty/block-comment-wchar.rs
44
// ignore-tidy-cr
55
// ignore-tidy-tab
6-
// pp-exact:block-comment-wchar.pp
6+
//@ pp-exact:block-comment-wchar.pp
77
fn f() {
88
fn nested() {
99
/*

tests/pretty/cast-lt.pp

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
use ::std::prelude::rust_2015::*;
55
#[macro_use]
66
extern crate std;
7-
// pretty-compare-only
8-
// pretty-mode:expanded
9-
// pp-exact:cast-lt.pp
7+
//@ pretty-compare-only
8+
//@ pretty-mode:expanded
9+
//@ pp-exact:cast-lt.pp
1010

1111
macro_rules! negative { ($e:expr) => { $e < 0 } }
1212

tests/pretty/dollar-crate.pp

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
use ::std::prelude::rust_2015::*;
55
#[macro_use]
66
extern crate std;
7-
// pretty-compare-only
8-
// pretty-mode:expanded
9-
// pp-exact:dollar-crate.pp
7+
//@ pretty-compare-only
8+
//@ pretty-mode:expanded
9+
//@ pp-exact:dollar-crate.pp
1010

1111
fn main() { { ::std::io::_print(format_args!("rust\n")); }; }

tests/pretty/example2.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
// pp-exact:example2.pp
1+
//@ pp-exact:example2.pp
22

33
fn main() {}

tests/pretty/expanded-and-path-remap-80832.pp

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
extern crate std;
77
// Test for issue 80832
88
//
9-
// pretty-mode:expanded
10-
// pp-exact:expanded-and-path-remap-80832.pp
11-
// compile-flags: --remap-path-prefix {{src-base}}=the/src
9+
//@ pretty-mode:expanded
10+
//@ pp-exact:expanded-and-path-remap-80832.pp
11+
//@ compile-flags: --remap-path-prefix {{src-base}}=the/src
1212

1313
fn main() {}

tests/pretty/format-args-str-escape.pp

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
use ::std::prelude::rust_2015::*;
55
#[macro_use]
66
extern crate std;
7-
// pretty-compare-only
8-
// pretty-mode:expanded
9-
// pp-exact:format-args-str-escape.pp
7+
//@ pretty-compare-only
8+
//@ pretty-mode:expanded
9+
//@ pp-exact:format-args-str-escape.pp
1010

1111
fn main() {
1212
{ ::std::io::_print(format_args!("\u{1b}[1mHello, world!\u{1b}[0m\n")); };

tests/pretty/hir-fn-variadic.pp

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// pretty-compare-only
2-
// pretty-mode:hir
3-
// pp-exact:hir-fn-variadic.pp
1+
//@ pretty-compare-only
2+
//@ pretty-mode:hir
3+
//@ pp-exact:hir-fn-variadic.pp
44

55
#![feature(c_variadic)]
66
#[prelude_import]

tests/pretty/hir-pretty-loop.pp

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
use ::std::prelude::rust_2015::*;
33
#[macro_use]
44
extern crate std;
5-
// pretty-compare-only
6-
// pretty-mode:hir
7-
// pp-exact:hir-pretty-loop.pp
5+
//@ pretty-compare-only
6+
//@ pretty-mode:hir
7+
//@ pp-exact:hir-pretty-loop.pp
88

99
fn foo() { loop { break; } }

tests/pretty/issue-12590-c.pp

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
use ::std::prelude::rust_2015::*;
55
#[macro_use]
66
extern crate std;
7-
// pretty-compare-only
8-
// pretty-mode:expanded
9-
// pp-exact:issue-12590-c.pp
7+
//@ pretty-compare-only
8+
//@ pretty-mode:expanded
9+
//@ pp-exact:issue-12590-c.pp
1010

1111
// The next line should be expanded
1212

tests/pretty/issue-31073.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// pp-exact:issue-31073.pp
1+
//@ pp-exact:issue-31073.pp
22

33
fn main() {
44
fn f1(x: i32, y: i32) -> i32 { y }

tests/pretty/issue-4264.pp

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
use ::std::prelude::rust_2015::*;
33
#[macro_use]
44
extern crate std;
5-
// pretty-compare-only
6-
// pretty-mode:hir,typed
7-
// pp-exact:issue-4264.pp
5+
//@ pretty-compare-only
6+
//@ pretty-mode:hir,typed
7+
//@ pp-exact:issue-4264.pp
88

99
// #4264 fixed-length vector types
1010

tests/pretty/issue-85089.pp

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
extern crate std;
55
// Test to print lifetimes on HIR pretty-printing.
66

7-
// pretty-compare-only
8-
// pretty-mode:hir
9-
// pp-exact:issue-85089.pp
7+
//@ pretty-compare-only
8+
//@ pretty-mode:hir
9+
//@ pp-exact:issue-85089.pp
1010

1111
trait A<'x> { }
1212
trait B<'x> { }

tests/pretty/tests-are-sorted.pp

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
use ::std::prelude::rust_2015::*;
55
#[macro_use]
66
extern crate std;
7-
// compile-flags: --crate-type=lib --test --remap-path-prefix={{src-base}}/=/the/src/ --remap-path-prefix={{src-base}}\=/the/src/
8-
// pretty-compare-only
9-
// pretty-mode:expanded
10-
// pp-exact:tests-are-sorted.pp
7+
//@ compile-flags: --crate-type=lib --test --remap-path-prefix={{src-base}}/=/the/src/ --remap-path-prefix={{src-base}}\=/the/src/
8+
//@ pretty-compare-only
9+
//@ pretty-mode:expanded
10+
//@ pp-exact:tests-are-sorted.pp
1111

1212
extern crate test;
1313
#[cfg(test)]

tests/pretty/vec-comments.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Issue #679
22
// Testing that comments are correctly interleaved
3-
// pp-exact:vec-comments.pp
3+
//@ pp-exact:vec-comments.pp
44
fn main() {
55
let _v1 =
66
[

0 commit comments

Comments
 (0)