Skip to content

Commit

Permalink
Re-bless tests/pretty
Browse files Browse the repository at this point in the history
  • Loading branch information
jieyouxu committed Feb 22, 2024
1 parent 6e48b96 commit cd25009
Show file tree
Hide file tree
Showing 15 changed files with 38 additions and 38 deletions.
6 changes: 3 additions & 3 deletions tests/pretty/asm.pp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
use ::std::prelude::rust_2015::*;
#[macro_use]
extern crate std;
// pretty-mode:expanded
// pp-exact:asm.pp
// only-x86_64
//@ pretty-mode:expanded
//@ pp-exact:asm.pp
//@ only-x86_64

use std::arch::asm;

Expand Down
2 changes: 1 addition & 1 deletion tests/pretty/block-comment-wchar.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Test via: rustc -Zunpretty normal tests/pretty/block-comment-wchar.rs
// ignore-tidy-cr
// ignore-tidy-tab
// pp-exact:block-comment-wchar.pp
//@ pp-exact:block-comment-wchar.pp
fn f() {
fn nested() {
/*
Expand Down
6 changes: 3 additions & 3 deletions tests/pretty/cast-lt.pp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
use ::std::prelude::rust_2015::*;
#[macro_use]
extern crate std;
// pretty-compare-only
// pretty-mode:expanded
// pp-exact:cast-lt.pp
//@ pretty-compare-only
//@ pretty-mode:expanded
//@ pp-exact:cast-lt.pp

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

Expand Down
6 changes: 3 additions & 3 deletions tests/pretty/dollar-crate.pp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
use ::std::prelude::rust_2015::*;
#[macro_use]
extern crate std;
// pretty-compare-only
// pretty-mode:expanded
// pp-exact:dollar-crate.pp
//@ pretty-compare-only
//@ pretty-mode:expanded
//@ pp-exact:dollar-crate.pp

fn main() { { ::std::io::_print(format_args!("rust\n")); }; }
2 changes: 1 addition & 1 deletion tests/pretty/example2.pp
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// pp-exact:example2.pp
//@ pp-exact:example2.pp

fn main() {}
6 changes: 3 additions & 3 deletions tests/pretty/expanded-and-path-remap-80832.pp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
extern crate std;
// Test for issue 80832
//
// pretty-mode:expanded
// pp-exact:expanded-and-path-remap-80832.pp
// compile-flags: --remap-path-prefix {{src-base}}=the/src
//@ pretty-mode:expanded
//@ pp-exact:expanded-and-path-remap-80832.pp
//@ compile-flags: --remap-path-prefix {{src-base}}=the/src

fn main() {}
6 changes: 3 additions & 3 deletions tests/pretty/format-args-str-escape.pp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
use ::std::prelude::rust_2015::*;
#[macro_use]
extern crate std;
// pretty-compare-only
// pretty-mode:expanded
// pp-exact:format-args-str-escape.pp
//@ pretty-compare-only
//@ pretty-mode:expanded
//@ pp-exact:format-args-str-escape.pp

fn main() {
{ ::std::io::_print(format_args!("\u{1b}[1mHello, world!\u{1b}[0m\n")); };
Expand Down
6 changes: 3 additions & 3 deletions tests/pretty/hir-fn-variadic.pp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// pretty-compare-only
// pretty-mode:hir
// pp-exact:hir-fn-variadic.pp
//@ pretty-compare-only
//@ pretty-mode:hir
//@ pp-exact:hir-fn-variadic.pp

#![feature(c_variadic)]
#[prelude_import]
Expand Down
6 changes: 3 additions & 3 deletions tests/pretty/hir-pretty-loop.pp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
use ::std::prelude::rust_2015::*;
#[macro_use]
extern crate std;
// pretty-compare-only
// pretty-mode:hir
// pp-exact:hir-pretty-loop.pp
//@ pretty-compare-only
//@ pretty-mode:hir
//@ pp-exact:hir-pretty-loop.pp

fn foo() { loop { break; } }
6 changes: 3 additions & 3 deletions tests/pretty/issue-12590-c.pp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
use ::std::prelude::rust_2015::*;
#[macro_use]
extern crate std;
// pretty-compare-only
// pretty-mode:expanded
// pp-exact:issue-12590-c.pp
//@ pretty-compare-only
//@ pretty-mode:expanded
//@ pp-exact:issue-12590-c.pp

// The next line should be expanded

Expand Down
2 changes: 1 addition & 1 deletion tests/pretty/issue-31073.pp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// pp-exact:issue-31073.pp
//@ pp-exact:issue-31073.pp

fn main() {
fn f1(x: i32, y: i32) -> i32 { y }
Expand Down
6 changes: 3 additions & 3 deletions tests/pretty/issue-4264.pp
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
use ::std::prelude::rust_2015::*;
#[macro_use]
extern crate std;
// pretty-compare-only
// pretty-mode:hir,typed
// pp-exact:issue-4264.pp
//@ pretty-compare-only
//@ pretty-mode:hir,typed
//@ pp-exact:issue-4264.pp

// #4264 fixed-length vector types

Expand Down
6 changes: 3 additions & 3 deletions tests/pretty/issue-85089.pp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
extern crate std;
// Test to print lifetimes on HIR pretty-printing.

// pretty-compare-only
// pretty-mode:hir
// pp-exact:issue-85089.pp
//@ pretty-compare-only
//@ pretty-mode:hir
//@ pp-exact:issue-85089.pp

trait A<'x> { }
trait B<'x> { }
Expand Down
8 changes: 4 additions & 4 deletions tests/pretty/tests-are-sorted.pp
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
use ::std::prelude::rust_2015::*;
#[macro_use]
extern crate std;
// 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
//@ 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

extern crate test;
#[cfg(test)]
Expand Down
2 changes: 1 addition & 1 deletion tests/pretty/vec-comments.pp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Issue #679
// Testing that comments are correctly interleaved
// pp-exact:vec-comments.pp
//@ pp-exact:vec-comments.pp
fn main() {
let _v1 =
[
Expand Down

0 comments on commit cd25009

Please sign in to comment.