Skip to content

Commit dd8a98a

Browse files
committed
Fix pretty print tests with #[prelude_import]
1 parent 8526aa5 commit dd8a98a

28 files changed

Lines changed: 29 additions & 29 deletions

tests/pretty/delegation-inherit-attributes.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#![allow(incomplete_features)]
88
#![feature(fn_delegation)]
99
extern crate std;
10-
#[prelude_import]
10+
#[attr = PreludeImport]
1111
use std::prelude::rust_2021::*;
1212

1313
extern crate to_reuse_functions;

tests/pretty/delegation-inline-attribute.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#![allow(incomplete_features)]
66
#![feature(fn_delegation)]
77
extern crate std;
8-
#[prelude_import]
8+
#[attr = PreludeImport]
99
use ::std::prelude::rust_2015::*;
1010

1111
mod to_reuse {

tests/pretty/hir-delegation.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#![allow(incomplete_features)]
66
#![feature(fn_delegation)]
77
extern crate std;
8-
#[prelude_import]
8+
#[attr = PreludeImport]
99
use ::std::prelude::rust_2015::*;
1010

1111
fn b<C>(e: C) { }

tests/pretty/hir-fn-params.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
extern crate std;
2-
#[prelude_import]
2+
#[attr = PreludeImport]
33
use ::std::prelude::rust_2015::*;
44
//@ pretty-compare-only
55
//@ pretty-mode:hir

tests/pretty/hir-fn-variadic.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
#![feature(c_variadic)]
66
extern crate std;
7-
#[prelude_import]
7+
#[attr = PreludeImport]
88
use ::std::prelude::rust_2015::*;
99

1010
extern "C" {

tests/pretty/hir-if-else.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
extern crate std;
2-
#[prelude_import]
2+
#[attr = PreludeImport]
33
use ::std::prelude::rust_2015::*;
44
//@ pretty-compare-only
55
//@ pretty-mode:hir

tests/pretty/hir-lifetimes.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
#![allow(unused)]
88
extern crate std;
9-
#[prelude_import]
9+
#[attr = PreludeImport]
1010
use ::std::prelude::rust_2015::*;
1111

1212
struct Foo<'a> {

tests/pretty/hir-pretty-attr.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
extern crate std;
2-
#[prelude_import]
2+
#[attr = PreludeImport]
33
use ::std::prelude::rust_2015::*;
44
//@ pretty-compare-only
55
//@ pretty-mode:hir

tests/pretty/hir-pretty-loop.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
extern crate std;
2-
#[prelude_import]
2+
#[attr = PreludeImport]
33
use ::std::prelude::rust_2015::*;
44
//@ pretty-compare-only
55
//@ pretty-mode:hir

tests/pretty/hir-struct-expr.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
extern crate std;
2-
#[prelude_import]
2+
#[attr = PreludeImport]
33
use ::std::prelude::rust_2015::*;
44
//@ pretty-compare-only
55
//@ pretty-mode:hir

0 commit comments

Comments
 (0)