Skip to content

Commit df2a56a

Browse files
committed
Bless pretty tests.
1 parent ee7d038 commit df2a56a

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/test/pretty/dollar-crate.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
// pp-exact:dollar-crate.pp
1010

1111
fn main() {
12-
{ ::std::io::_print(::core::fmt::Arguments::new_v1(&["rust\n"], &[])); };
12+
{ ::std::io::_print(::core::fmt::Arguments::from_static_str("rust\n")); };
1313
}

src/test/pretty/issue-4264.pp

+3-5
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,10 @@
3232
({
3333
let res =
3434
((::alloc::fmt::format as
35-
for<'r> fn(Arguments<'r>) -> String {format})(((::core::fmt::Arguments::new_v1
35+
for<'r> fn(Arguments<'r>) -> String {format})(((::core::fmt::Arguments::from_static_str
3636
as
37-
fn(&[&'static str], &[ArgumentV1]) -> Arguments {Arguments::new_v1})((&([("test"
38-
as &str)] as [&str; 1]) as &[&str; 1]),
39-
(&([] as [ArgumentV1; 0]) as &[ArgumentV1; 0])) as
40-
Arguments)) as String);
37+
fn(&'static str) -> Arguments {Arguments::from_static_str})(("test"
38+
as &str)) as Arguments)) as String);
4139
(res as String)
4240
} as String);
4341
} as ())

0 commit comments

Comments
 (0)