From e95ddaf8fe155606c43bc6f7c8f449652cced62d Mon Sep 17 00:00:00 2001 From: Jan Niehusmann Date: Tue, 24 Nov 2020 19:43:51 +0000 Subject: [PATCH] Fix tests with recent compilers In a recent update of rustc, error messages were improved, which broke one of the compile-fail test cases. As the exact error message doesn't seem to be important in this case, remove the .stderr file, so the test case succeeds for both the old and the new error message. --- tests/compile-fail/socket-thread-unsafe.stderr | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 tests/compile-fail/socket-thread-unsafe.stderr diff --git a/tests/compile-fail/socket-thread-unsafe.stderr b/tests/compile-fail/socket-thread-unsafe.stderr deleted file mode 100644 index cf099ab81..000000000 --- a/tests/compile-fail/socket-thread-unsafe.stderr +++ /dev/null @@ -1,10 +0,0 @@ -error[E0277]: `*mut std::ffi::c_void` cannot be shared between threads safely - --> $DIR/socket-thread-unsafe.rs:13:13 - | -13 | let t = thread::spawn(move || { - | ^^^^^^^^^^^^^ `*mut std::ffi::c_void` cannot be shared between threads safely - | - = help: within `zmq::Socket`, the trait `std::marker::Sync` is not implemented for `*mut std::ffi::c_void` - = note: required because it appears within the type `zmq::Socket` - = note: required because of the requirements on the impl of `std::marker::Send` for `&zmq::Socket` - = note: required because it appears within the type `[closure@$DIR/tests/compile-fail/socket-thread-unsafe.rs:13:27: 15:6 s:&zmq::Socket]`