Skip to content

Commit 8990f7d

Browse files
committed
Update pretty-print test with new format! impl
1 parent c7f6df0 commit 8990f7d

File tree

1 file changed

+30
-26
lines changed

1 file changed

+30
-26
lines changed

src/test/pretty/issue-4264.pp

+30-26
Original file line numberDiff line numberDiff line change
@@ -29,33 +29,37 @@
2929

3030

3131

32-
((::alloc::fmt::format as
33-
for<'r> fn(std::fmt::Arguments<'r>) -> std::string::String {std::fmt::format})(((<::core::fmt::Arguments>::new_v1
34-
as
35-
fn(&[&str], &[std::fmt::ArgumentV1<'_>]) -> std::fmt::Arguments<'_> {std::fmt::Arguments::<'_>::new_v1})((&([("test"
36-
as
37-
&'static str)]
38-
as
39-
[&str; 1])
40-
as
41-
&[&str; 1]),
42-
(&(match (()
32+
({
33+
let res =
34+
((::alloc::fmt::format as
35+
for<'r> fn(std::fmt::Arguments<'r>) -> std::string::String {std::fmt::format})(((<::core::fmt::Arguments>::new_v1
36+
as
37+
fn(&[&str], &[std::fmt::ArgumentV1<'_>]) -> std::fmt::Arguments<'_> {std::fmt::Arguments::<'_>::new_v1})((&([("test"
38+
as
39+
&'static str)]
40+
as
41+
[&str; 1])
4342
as
44-
())
45-
{
46-
()
47-
=>
48-
([]
49-
as
50-
[std::fmt::ArgumentV1<'_>; 0]),
51-
}
52-
as
53-
[std::fmt::ArgumentV1<'_>; 0])
54-
as
55-
&[std::fmt::ArgumentV1<'_>; 0]))
56-
as
57-
std::fmt::Arguments<'_>))
58-
as std::string::String);
43+
&[&str; 1]),
44+
(&(match (()
45+
as
46+
())
47+
{
48+
()
49+
=>
50+
([]
51+
as
52+
[std::fmt::ArgumentV1<'_>; 0]),
53+
}
54+
as
55+
[std::fmt::ArgumentV1<'_>; 0])
56+
as
57+
&[std::fmt::ArgumentV1<'_>; 0]))
58+
as
59+
std::fmt::Arguments<'_>))
60+
as std::string::String);
61+
(res as std::string::String)
62+
} as std::string::String);
5963
} as ())
6064
pub type Foo = [i32; (3 as usize)];
6165
pub struct Bar {

0 commit comments

Comments
 (0)