diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2022-02-13 10:19:42 -0500 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2022-02-13 10:23:16 -0500 |
| commit | 398cccd42e82cf2c929e811db56303d184dbf928 (patch) | |
| tree | 2a0234071440a987df34492b066248ed846f17b3 /library/std/src/io/stdio | |
| parent | 9c3a3e3d5bd65fd534336101a06f7b11396c3208 (diff) | |
| download | rust-398cccd42e82cf2c929e811db56303d184dbf928.tar.gz rust-398cccd42e82cf2c929e811db56303d184dbf928.zip | |
Make default stdio lock() return 'static handles
This also deletes the unstable API surface area previously added to expose this functionality on new methods rather than built into the current set.
Diffstat (limited to 'library/std/src/io/stdio')
| -rw-r--r-- | library/std/src/io/stdio/tests.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/std/src/io/stdio/tests.rs b/library/std/src/io/stdio/tests.rs index b1df6b7131c..f89fd27ce6c 100644 --- a/library/std/src/io/stdio/tests.rs +++ b/library/std/src/io/stdio/tests.rs @@ -50,17 +50,17 @@ fn panic_doesnt_poison() { #[test] #[cfg_attr(target_os = "emscripten", ignore)] fn test_lock_stderr() { - test_lock(stderr, stderr_locked); + test_lock(stderr, || stderr().lock()); } #[test] #[cfg_attr(target_os = "emscripten", ignore)] fn test_lock_stdin() { - test_lock(stdin, stdin_locked); + test_lock(stdin, || stdin().lock()); } #[test] #[cfg_attr(target_os = "emscripten", ignore)] fn test_lock_stdout() { - test_lock(stdout, stdout_locked); + test_lock(stdout, || stdout().lock()); } // Helper trait to make lock testing function generic. |
