diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-04-23 15:18:16 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-04-28 06:56:13 +1000 |
| commit | bc8df506f643d16fa4cd76f0e03e50a1a84fd2e1 (patch) | |
| tree | 9551a1e6427559b1450eebd4ce58539863bca6a2 /tests/pretty | |
| parent | cb31a009e3e735ab08613cec2d8a5a754e65596f (diff) | |
| download | rust-bc8df506f643d16fa4cd76f0e03e50a1a84fd2e1.tar.gz rust-bc8df506f643d16fa4cd76f0e03e50a1a84fd2e1.zip | |
Streamline the `format` macro.
Removing the unnecessary local variable speeds up compilation a little.
Diffstat (limited to 'tests/pretty')
| -rw-r--r-- | tests/pretty/issue-4264.pp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/tests/pretty/issue-4264.pp b/tests/pretty/issue-4264.pp index fa958d9f1e8..3cff6ca33da 100644 --- a/tests/pretty/issue-4264.pp +++ b/tests/pretty/issue-4264.pp @@ -31,14 +31,12 @@ fn bar() ({ ((::alloc::__export::must_use as fn(String) -> String {must_use::<String>})(({ - let res = - ((::alloc::fmt::format as - for<'a> fn(Arguments<'a>) -> String {format})(((format_arguments::new_const - as - fn(&[&'static str; 1]) -> Arguments<'_> {Arguments::<'_>::new_const::<1>})((&([("test" - as &str)] as [&str; 1]) as &[&str; 1])) as Arguments<'_>)) - as String); - (res as String) + ((::alloc::fmt::format as + for<'a> fn(Arguments<'a>) -> String {format})(((format_arguments::new_const + as + fn(&[&'static str; 1]) -> Arguments<'_> {Arguments::<'_>::new_const::<1>})((&([("test" + as &str)] as [&str; 1]) as &[&str; 1])) as Arguments<'_>)) + as String) } as String)) as String); } as ()) type Foo = [i32; (3 as usize)]; |
