Fix pretty print tests with #[prelude_import]
This commit is contained in:
parent
8526aa5361
commit
dd8a98a9bc
28 changed files with 29 additions and 29 deletions
|
|
@ -7,7 +7,7 @@
|
||||||
#![allow(incomplete_features)]
|
#![allow(incomplete_features)]
|
||||||
#![feature(fn_delegation)]
|
#![feature(fn_delegation)]
|
||||||
extern crate std;
|
extern crate std;
|
||||||
#[prelude_import]
|
#[attr = PreludeImport]
|
||||||
use std::prelude::rust_2021::*;
|
use std::prelude::rust_2021::*;
|
||||||
|
|
||||||
extern crate to_reuse_functions;
|
extern crate to_reuse_functions;
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
#![allow(incomplete_features)]
|
#![allow(incomplete_features)]
|
||||||
#![feature(fn_delegation)]
|
#![feature(fn_delegation)]
|
||||||
extern crate std;
|
extern crate std;
|
||||||
#[prelude_import]
|
#[attr = PreludeImport]
|
||||||
use ::std::prelude::rust_2015::*;
|
use ::std::prelude::rust_2015::*;
|
||||||
|
|
||||||
mod to_reuse {
|
mod to_reuse {
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
#![allow(incomplete_features)]
|
#![allow(incomplete_features)]
|
||||||
#![feature(fn_delegation)]
|
#![feature(fn_delegation)]
|
||||||
extern crate std;
|
extern crate std;
|
||||||
#[prelude_import]
|
#[attr = PreludeImport]
|
||||||
use ::std::prelude::rust_2015::*;
|
use ::std::prelude::rust_2015::*;
|
||||||
|
|
||||||
fn b<C>(e: C) { }
|
fn b<C>(e: C) { }
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
extern crate std;
|
extern crate std;
|
||||||
#[prelude_import]
|
#[attr = PreludeImport]
|
||||||
use ::std::prelude::rust_2015::*;
|
use ::std::prelude::rust_2015::*;
|
||||||
//@ pretty-compare-only
|
//@ pretty-compare-only
|
||||||
//@ pretty-mode:hir
|
//@ pretty-mode:hir
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
#![feature(c_variadic)]
|
#![feature(c_variadic)]
|
||||||
extern crate std;
|
extern crate std;
|
||||||
#[prelude_import]
|
#[attr = PreludeImport]
|
||||||
use ::std::prelude::rust_2015::*;
|
use ::std::prelude::rust_2015::*;
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
extern crate std;
|
extern crate std;
|
||||||
#[prelude_import]
|
#[attr = PreludeImport]
|
||||||
use ::std::prelude::rust_2015::*;
|
use ::std::prelude::rust_2015::*;
|
||||||
//@ pretty-compare-only
|
//@ pretty-compare-only
|
||||||
//@ pretty-mode:hir
|
//@ pretty-mode:hir
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
#![allow(unused)]
|
#![allow(unused)]
|
||||||
extern crate std;
|
extern crate std;
|
||||||
#[prelude_import]
|
#[attr = PreludeImport]
|
||||||
use ::std::prelude::rust_2015::*;
|
use ::std::prelude::rust_2015::*;
|
||||||
|
|
||||||
struct Foo<'a> {
|
struct Foo<'a> {
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
extern crate std;
|
extern crate std;
|
||||||
#[prelude_import]
|
#[attr = PreludeImport]
|
||||||
use ::std::prelude::rust_2015::*;
|
use ::std::prelude::rust_2015::*;
|
||||||
//@ pretty-compare-only
|
//@ pretty-compare-only
|
||||||
//@ pretty-mode:hir
|
//@ pretty-mode:hir
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
extern crate std;
|
extern crate std;
|
||||||
#[prelude_import]
|
#[attr = PreludeImport]
|
||||||
use ::std::prelude::rust_2015::*;
|
use ::std::prelude::rust_2015::*;
|
||||||
//@ pretty-compare-only
|
//@ pretty-compare-only
|
||||||
//@ pretty-mode:hir
|
//@ pretty-mode:hir
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
extern crate std;
|
extern crate std;
|
||||||
#[prelude_import]
|
#[attr = PreludeImport]
|
||||||
use ::std::prelude::rust_2015::*;
|
use ::std::prelude::rust_2015::*;
|
||||||
//@ pretty-compare-only
|
//@ pretty-compare-only
|
||||||
//@ pretty-mode:hir
|
//@ pretty-mode:hir
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
extern crate std;
|
extern crate std;
|
||||||
#[prelude_import]
|
#[attr = PreludeImport]
|
||||||
use ::std::prelude::rust_2015::*;
|
use ::std::prelude::rust_2015::*;
|
||||||
//@ pretty-compare-only
|
//@ pretty-compare-only
|
||||||
//@ pretty-mode:hir,typed
|
//@ pretty-mode:hir,typed
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
extern crate std;
|
extern crate std;
|
||||||
#[prelude_import]
|
#[attr = PreludeImport]
|
||||||
use ::std::prelude::rust_2015::*;
|
use ::std::prelude::rust_2015::*;
|
||||||
// Test to print lifetimes on HIR pretty-printing.
|
// Test to print lifetimes on HIR pretty-printing.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
#![feature(pin_ergonomics)]
|
#![feature(pin_ergonomics)]
|
||||||
#![allow(dead_code, incomplete_features)]
|
#![allow(dead_code, incomplete_features)]
|
||||||
extern crate std;
|
extern crate std;
|
||||||
#[prelude_import]
|
#[attr = PreludeImport]
|
||||||
use ::std::prelude::rust_2015::*;
|
use ::std::prelude::rust_2015::*;
|
||||||
|
|
||||||
use std::pin::Pin;
|
use std::pin::Pin;
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
#![feature(const_block_items)]
|
#![feature(const_block_items)]
|
||||||
extern crate std;
|
extern crate std;
|
||||||
#[prelude_import]
|
#[attr = PreludeImport]
|
||||||
use ::std::prelude::rust_2015::*;
|
use ::std::prelude::rust_2015::*;
|
||||||
|
|
||||||
const _: () =
|
const _: () =
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
extern crate std;
|
extern crate std;
|
||||||
#[prelude_import]
|
#[attr = PreludeImport]
|
||||||
use ::std::prelude::rust_2015::*;
|
use ::std::prelude::rust_2015::*;
|
||||||
//@ compile-flags: -Zunpretty=hir
|
//@ compile-flags: -Zunpretty=hir
|
||||||
//@ edition: 2015
|
//@ edition: 2015
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
extern crate std;
|
extern crate std;
|
||||||
#[prelude_import]
|
#[attr = PreludeImport]
|
||||||
use ::std::prelude::rust_2015::*;
|
use ::std::prelude::rust_2015::*;
|
||||||
// https://github.com/rust-lang/rust/issues/82329
|
// https://github.com/rust-lang/rust/issues/82329
|
||||||
//@ compile-flags: -Zunpretty=hir,typed
|
//@ compile-flags: -Zunpretty=hir,typed
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
#![feature(type_alias_impl_trait)]
|
#![feature(type_alias_impl_trait)]
|
||||||
extern crate std;
|
extern crate std;
|
||||||
#[prelude_import]
|
#[attr = PreludeImport]
|
||||||
use ::std::prelude::rust_2015::*;
|
use ::std::prelude::rust_2015::*;
|
||||||
|
|
||||||
trait Animal { }
|
trait Animal { }
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
extern crate std;
|
extern crate std;
|
||||||
#[prelude_import]
|
#[attr = PreludeImport]
|
||||||
use ::std::prelude::rust_2015::*;
|
use ::std::prelude::rust_2015::*;
|
||||||
//@ compile-flags: -Zunpretty=hir
|
//@ compile-flags: -Zunpretty=hir
|
||||||
//@ check-fail
|
//@ check-fail
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
extern crate std;
|
extern crate std;
|
||||||
#[prelude_import]
|
#[attr = PreludeImport]
|
||||||
use ::std::prelude::rust_2015::*;
|
use ::std::prelude::rust_2015::*;
|
||||||
//@ compile-flags: -Zunpretty=hir
|
//@ compile-flags: -Zunpretty=hir
|
||||||
//@ check-pass
|
//@ check-pass
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
extern crate std;
|
extern crate std;
|
||||||
#[prelude_import]
|
#[attr = PreludeImport]
|
||||||
use ::std::prelude::rust_2015::*;
|
use ::std::prelude::rust_2015::*;
|
||||||
//@ compile-flags: -Zunpretty=hir
|
//@ compile-flags: -Zunpretty=hir
|
||||||
//@ check-pass
|
//@ check-pass
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
extern crate std;
|
extern crate std;
|
||||||
#[prelude_import]
|
#[attr = PreludeImport]
|
||||||
use ::std::prelude::rust_2015::*;
|
use ::std::prelude::rust_2015::*;
|
||||||
//@ compile-flags: -Zunpretty=hir
|
//@ compile-flags: -Zunpretty=hir
|
||||||
//@ check-pass
|
//@ check-pass
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
extern crate std;
|
extern crate std;
|
||||||
#[prelude_import]
|
#[attr = PreludeImport]
|
||||||
use std::prelude::rust_2024::*;
|
use std::prelude::rust_2024::*;
|
||||||
//@ revisions: expanded hir
|
//@ revisions: expanded hir
|
||||||
//@[expanded]compile-flags: -Zunpretty=expanded
|
//@[expanded]compile-flags: -Zunpretty=expanded
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@
|
||||||
#![feature(yeet_expr)]
|
#![feature(yeet_expr)]
|
||||||
#![allow(incomplete_features)]
|
#![allow(incomplete_features)]
|
||||||
extern crate std;
|
extern crate std;
|
||||||
#[prelude_import]
|
#[attr = PreludeImport]
|
||||||
use std::prelude::rust_2024::*;
|
use std::prelude::rust_2024::*;
|
||||||
|
|
||||||
mod prelude {
|
mod prelude {
|
||||||
|
|
@ -46,7 +46,7 @@ mod prelude {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[prelude_import]
|
#[attr = PreludeImport]
|
||||||
use self::prelude::*;
|
use self::prelude::*;
|
||||||
|
|
||||||
/// inner single-line doc comment
|
/// inner single-line doc comment
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
extern crate std;
|
extern crate std;
|
||||||
#[prelude_import]
|
#[attr = PreludeImport]
|
||||||
use ::std::prelude::rust_2015::*;
|
use ::std::prelude::rust_2015::*;
|
||||||
//@ compile-flags: -Zunpretty=hir -Zflatten-format-args=yes
|
//@ compile-flags: -Zunpretty=hir -Zflatten-format-args=yes
|
||||||
//@ check-pass
|
//@ check-pass
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
extern crate std;
|
extern crate std;
|
||||||
#[prelude_import]
|
#[attr = PreludeImport]
|
||||||
use ::std::prelude::rust_2015::*;
|
use ::std::prelude::rust_2015::*;
|
||||||
//@ compile-flags: -Zunpretty=hir
|
//@ compile-flags: -Zunpretty=hir
|
||||||
//@ check-pass
|
//@ check-pass
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
extern crate std;
|
extern crate std;
|
||||||
#[prelude_import]
|
#[attr = PreludeImport]
|
||||||
use ::std::prelude::rust_2015::*;
|
use ::std::prelude::rust_2015::*;
|
||||||
//@ compile-flags: -Zunpretty=hir
|
//@ compile-flags: -Zunpretty=hir
|
||||||
//@ check-pass
|
//@ check-pass
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
#![expect(incomplete_features)]
|
#![expect(incomplete_features)]
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
extern crate std;
|
extern crate std;
|
||||||
#[prelude_import]
|
#[attr = PreludeImport]
|
||||||
use ::std::prelude::rust_2015::*;
|
use ::std::prelude::rust_2015::*;
|
||||||
|
|
||||||
use std::marker::ConstParamTy;
|
use std::marker::ConstParamTy;
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
//@ edition: 2015
|
//@ edition: 2015
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
extern crate std;
|
extern crate std;
|
||||||
#[prelude_import]
|
#[attr = PreludeImport]
|
||||||
use ::std::prelude::rust_2015::*;
|
use ::std::prelude::rust_2015::*;
|
||||||
|
|
||||||
fn main() ({ } as ())
|
fn main() ({ } as ())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue