diff options
| author | bors <bors@rust-lang.org> | 2022-08-05 20:06:44 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-08-05 20:06:44 +0000 |
| commit | 6f955bfdfe093edccd6936603d4a8a548293dcf5 (patch) | |
| tree | 93222bb89d489e168c61a6cdf19fb08ead0abedf /src/test/ui/macros/format-args-temporaries.rs | |
| parent | 7410ebb8f69516d0034cc99793bc3dcbc84d4a9b (diff) | |
| parent | 8482bac7be42cbb44a48ed85b018c490de3b4493 (diff) | |
| download | rust-6f955bfdfe093edccd6936603d4a8a548293dcf5.tar.gz rust-6f955bfdfe093edccd6936603d4a8a548293dcf5.zip | |
Auto merge of #100171 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
[beta] Rollup of beta backports Includes the following PRs: * rustc-docs: Be less specific about the representation of +bundle #100074 * Fix backwards-compatibility check for tests with +whole-archive #100068 * Revert write! and writeln! to late drop temporaries #99689 * Upgrade indexmap and thorin-dwp to use hashbrown 0.12 #99251 * rustdoc: avoid inlining modules with duplicate names #99738 r? `@ghost`
Diffstat (limited to 'src/test/ui/macros/format-args-temporaries.rs')
| -rw-r--r-- | src/test/ui/macros/format-args-temporaries.rs | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/test/ui/macros/format-args-temporaries.rs b/src/test/ui/macros/format-args-temporaries.rs index ddd4c9754bf..59323828bc3 100644 --- a/src/test/ui/macros/format-args-temporaries.rs +++ b/src/test/ui/macros/format-args-temporaries.rs @@ -20,10 +20,6 @@ impl<'a> Drop for MutexGuard<'a> { } } -impl<'a> MutexGuard<'a> { - fn write_fmt(&self, _args: fmt::Arguments) {} -} - impl<'a> Display for MutexGuard<'a> { fn fmt(&self, _formatter: &mut fmt::Formatter) -> fmt::Result { Ok(()) @@ -31,18 +27,6 @@ impl<'a> Display for MutexGuard<'a> { } fn main() { - let _write = { - let out = Mutex; - let mutex = Mutex; - write!(out.lock(), "{}", mutex.lock()) /* no semicolon */ - }; - - let _writeln = { - let out = Mutex; - let mutex = Mutex; - writeln!(out.lock(), "{}", mutex.lock()) /* no semicolon */ - }; - let _print = { let mutex = Mutex; print!("{}", mutex.lock()) /* no semicolon */ |
