Re-bless tests/pretty
This commit is contained in:
parent
6e48b96692
commit
cd25009469
15 changed files with 38 additions and 38 deletions
|
@ -4,9 +4,9 @@
|
||||||
use ::std::prelude::rust_2015::*;
|
use ::std::prelude::rust_2015::*;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate std;
|
extern crate std;
|
||||||
// pretty-mode:expanded
|
//@ pretty-mode:expanded
|
||||||
// pp-exact:asm.pp
|
//@ pp-exact:asm.pp
|
||||||
// only-x86_64
|
//@ only-x86_64
|
||||||
|
|
||||||
use std::arch::asm;
|
use std::arch::asm;
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
// Test via: rustc -Zunpretty normal tests/pretty/block-comment-wchar.rs
|
// Test via: rustc -Zunpretty normal tests/pretty/block-comment-wchar.rs
|
||||||
// ignore-tidy-cr
|
// ignore-tidy-cr
|
||||||
// ignore-tidy-tab
|
// ignore-tidy-tab
|
||||||
// pp-exact:block-comment-wchar.pp
|
//@ pp-exact:block-comment-wchar.pp
|
||||||
fn f() {
|
fn f() {
|
||||||
fn nested() {
|
fn nested() {
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
use ::std::prelude::rust_2015::*;
|
use ::std::prelude::rust_2015::*;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate std;
|
extern crate std;
|
||||||
// pretty-compare-only
|
//@ pretty-compare-only
|
||||||
// pretty-mode:expanded
|
//@ pretty-mode:expanded
|
||||||
// pp-exact:cast-lt.pp
|
//@ pp-exact:cast-lt.pp
|
||||||
|
|
||||||
macro_rules! negative { ($e:expr) => { $e < 0 } }
|
macro_rules! negative { ($e:expr) => { $e < 0 } }
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
use ::std::prelude::rust_2015::*;
|
use ::std::prelude::rust_2015::*;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate std;
|
extern crate std;
|
||||||
// pretty-compare-only
|
//@ pretty-compare-only
|
||||||
// pretty-mode:expanded
|
//@ pretty-mode:expanded
|
||||||
// pp-exact:dollar-crate.pp
|
//@ pp-exact:dollar-crate.pp
|
||||||
|
|
||||||
fn main() { { ::std::io::_print(format_args!("rust\n")); }; }
|
fn main() { { ::std::io::_print(format_args!("rust\n")); }; }
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
// pp-exact:example2.pp
|
//@ pp-exact:example2.pp
|
||||||
|
|
||||||
fn main() {}
|
fn main() {}
|
||||||
|
|
|
@ -6,8 +6,8 @@ use ::std::prelude::rust_2015::*;
|
||||||
extern crate std;
|
extern crate std;
|
||||||
// Test for issue 80832
|
// Test for issue 80832
|
||||||
//
|
//
|
||||||
// pretty-mode:expanded
|
//@ pretty-mode:expanded
|
||||||
// pp-exact:expanded-and-path-remap-80832.pp
|
//@ pp-exact:expanded-and-path-remap-80832.pp
|
||||||
// compile-flags: --remap-path-prefix {{src-base}}=the/src
|
//@ compile-flags: --remap-path-prefix {{src-base}}=the/src
|
||||||
|
|
||||||
fn main() {}
|
fn main() {}
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
use ::std::prelude::rust_2015::*;
|
use ::std::prelude::rust_2015::*;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate std;
|
extern crate std;
|
||||||
// pretty-compare-only
|
//@ pretty-compare-only
|
||||||
// pretty-mode:expanded
|
//@ pretty-mode:expanded
|
||||||
// pp-exact:format-args-str-escape.pp
|
//@ pp-exact:format-args-str-escape.pp
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
{ ::std::io::_print(format_args!("\u{1b}[1mHello, world!\u{1b}[0m\n")); };
|
{ ::std::io::_print(format_args!("\u{1b}[1mHello, world!\u{1b}[0m\n")); };
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// pretty-compare-only
|
//@ pretty-compare-only
|
||||||
// pretty-mode:hir
|
//@ pretty-mode:hir
|
||||||
// pp-exact:hir-fn-variadic.pp
|
//@ pp-exact:hir-fn-variadic.pp
|
||||||
|
|
||||||
#![feature(c_variadic)]
|
#![feature(c_variadic)]
|
||||||
#[prelude_import]
|
#[prelude_import]
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
use ::std::prelude::rust_2015::*;
|
use ::std::prelude::rust_2015::*;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate std;
|
extern crate std;
|
||||||
// pretty-compare-only
|
//@ pretty-compare-only
|
||||||
// pretty-mode:hir
|
//@ pretty-mode:hir
|
||||||
// pp-exact:hir-pretty-loop.pp
|
//@ pp-exact:hir-pretty-loop.pp
|
||||||
|
|
||||||
fn foo() { loop { break; } }
|
fn foo() { loop { break; } }
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
use ::std::prelude::rust_2015::*;
|
use ::std::prelude::rust_2015::*;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate std;
|
extern crate std;
|
||||||
// pretty-compare-only
|
//@ pretty-compare-only
|
||||||
// pretty-mode:expanded
|
//@ pretty-mode:expanded
|
||||||
// pp-exact:issue-12590-c.pp
|
//@ pp-exact:issue-12590-c.pp
|
||||||
|
|
||||||
// The next line should be expanded
|
// The next line should be expanded
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// pp-exact:issue-31073.pp
|
//@ pp-exact:issue-31073.pp
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
fn f1(x: i32, y: i32) -> i32 { y }
|
fn f1(x: i32, y: i32) -> i32 { y }
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
use ::std::prelude::rust_2015::*;
|
use ::std::prelude::rust_2015::*;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate std;
|
extern crate std;
|
||||||
// pretty-compare-only
|
//@ pretty-compare-only
|
||||||
// pretty-mode:hir,typed
|
//@ pretty-mode:hir,typed
|
||||||
// pp-exact:issue-4264.pp
|
//@ pp-exact:issue-4264.pp
|
||||||
|
|
||||||
// #4264 fixed-length vector types
|
// #4264 fixed-length vector types
|
||||||
|
|
||||||
|
|
|
@ -4,9 +4,9 @@ use ::std::prelude::rust_2015::*;
|
||||||
extern crate std;
|
extern crate std;
|
||||||
// Test to print lifetimes on HIR pretty-printing.
|
// Test to print lifetimes on HIR pretty-printing.
|
||||||
|
|
||||||
// pretty-compare-only
|
//@ pretty-compare-only
|
||||||
// pretty-mode:hir
|
//@ pretty-mode:hir
|
||||||
// pp-exact:issue-85089.pp
|
//@ pp-exact:issue-85089.pp
|
||||||
|
|
||||||
trait A<'x> { }
|
trait A<'x> { }
|
||||||
trait B<'x> { }
|
trait B<'x> { }
|
||||||
|
|
|
@ -4,10 +4,10 @@
|
||||||
use ::std::prelude::rust_2015::*;
|
use ::std::prelude::rust_2015::*;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate std;
|
extern crate std;
|
||||||
// compile-flags: --crate-type=lib --test --remap-path-prefix={{src-base}}/=/the/src/ --remap-path-prefix={{src-base}}\=/the/src/
|
//@ compile-flags: --crate-type=lib --test --remap-path-prefix={{src-base}}/=/the/src/ --remap-path-prefix={{src-base}}\=/the/src/
|
||||||
// pretty-compare-only
|
//@ pretty-compare-only
|
||||||
// pretty-mode:expanded
|
//@ pretty-mode:expanded
|
||||||
// pp-exact:tests-are-sorted.pp
|
//@ pp-exact:tests-are-sorted.pp
|
||||||
|
|
||||||
extern crate test;
|
extern crate test;
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// Issue #679
|
// Issue #679
|
||||||
// Testing that comments are correctly interleaved
|
// Testing that comments are correctly interleaved
|
||||||
// pp-exact:vec-comments.pp
|
//@ pp-exact:vec-comments.pp
|
||||||
fn main() {
|
fn main() {
|
||||||
let _v1 =
|
let _v1 =
|
||||||
[
|
[
|
||||||
|
|
Loading…
Add table
Reference in a new issue