diff options
| author | bors <bors@rust-lang.org> | 2014-12-08 09:02:33 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-12-08 09:02:33 +0000 |
| commit | cf0b4e068227dd33fa15f3ffe24f29e0535d197f (patch) | |
| tree | 4ed56f33eaaf211e3c0b4a21300898f47aa513c5 /src/test | |
| parent | 1e69dfa261ecdf8010ba93a07f2bfed538f9acd5 (diff) | |
| parent | 15ca63081b384bfcf43d5a065298bb6fbf2cbfe0 (diff) | |
| download | rust-cf0b4e068227dd33fa15f3ffe24f29e0535d197f.tar.gz rust-cf0b4e068227dd33fa15f3ffe24f29e0535d197f.zip | |
auto merge of #19506 : eddyb/rust/fmt-polish, r=alexcrichton
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/pretty/issue-4264.pp | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/src/test/pretty/issue-4264.pp b/src/test/pretty/issue-4264.pp index 94a168a74eb..8a2c2d35ef5 100644 --- a/src/test/pretty/issue-4264.pp +++ b/src/test/pretty/issue-4264.pp @@ -41,20 +41,6 @@ pub fn bar() { static __STATIC_FMTSTR: &'static [&'static str] = (&([("test" as &'static str)] as [&'static str, ..1]) as &'static [&'static str, ..1]); - let __args_vec = - (&([] as [core::fmt::Argument<'_>, ..0]) as - &[core::fmt::Argument<'_>, ..0]); - let __args = - (unsafe { - ((::std::fmt::Arguments::new as - unsafe fn(&'static [&'static str], &'a [core::fmt::Argument<'a>]) -> core::fmt::Arguments<'a>)((__STATIC_FMTSTR - as - &'static [&'static str]), - (__args_vec - as - &[core::fmt::Argument<'_>, ..0])) - as core::fmt::Arguments<'_>) - } as core::fmt::Arguments<'_>); @@ -64,7 +50,16 @@ pub fn bar() { ((::std::fmt::format as - fn(&core::fmt::Arguments<'_>) -> collections::string::String)((&(__args + fn(&core::fmt::Arguments<'_>) -> collections::string::String)((&((::std::fmt::Arguments::new + as + fn(&'a [&'a str], &'a [core::fmt::Argument<'a>]) -> core::fmt::Arguments<'a>)((__STATIC_FMTSTR + as + &'static [&'static str]), + (&([] + as + [core::fmt::Argument<'_>, ..0]) + as + &[core::fmt::Argument<'_>, ..0])) as core::fmt::Arguments<'_>) as |
