D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 Installing /home/pterjan/rpmbuild/SRPMS/rust-futures01-0.1.19-1.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.8bcE57 + umask 022 + cd /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build + test -d /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build + /usr/bin/rm -rf /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/SPECPARTS + RPM_EC=0 ++ jobs -p + exit 0 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.YUkP80 + umask 022 + cd /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build + rm -rf futures-0.1.19 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/futures-0.1.19.crate + STATUS=0 + '[' 0 -ne 0 ']' + cd futures-0.1.19 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + set -euo pipefail + /usr/bin/mkdir -p target/rpm + /usr/bin/ln -s rpm target/release + /usr/bin/rm -rf .cargo/ + /usr/bin/mkdir -p .cargo + cat + cat + /usr/bin/rm -f Cargo.lock + /usr/bin/rm -f Cargo.toml.orig + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.AfwoVZ + umask 022 + cd /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build + cd futures-0.1.19 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + /usr/bin/env CARGO_HOME=.cargo RUSTC_BOOTSTRAP=1 'RUSTFLAGS=-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' /usr/bin/cargo build -j16 -Z avoid-dev-deps --profile rpm warning: no edition set: defaulting to the 2015 edition while the latest is 2021 Compiling futures v0.1.19 (/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19) Running `/usr/bin/rustc --crate-name futures --edition=2015 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="use_std"' --cfg 'feature="with-deprecated"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "use_std", "with-deprecated"))' -C metadata=45f9346f67cfec8c -C extra-filename=-45f9346f67cfec8c --out-dir /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` warning: anonymous parameters are deprecated and will be removed in the next edition --> src/future/mod.rs:1083:20 | 1083 | fn future_from(T) -> Self::Future; | ^ help: try naming the parameter or explicitly ignoring it: `_: T` | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! = note: for more information, see issue #41686 = note: `#[warn(anonymous_parameters)]` on by default warning: use of deprecated constant `core::sync::atomic::ATOMIC_USIZE_INIT`: the `new` function is now preferred --> src/task_impl/mod.rs:27:53 | 27 | use core::sync::atomic::{AtomicUsize, Ordering, ATOMIC_USIZE_INIT}; | ^^^^^^^^^^^^^^^^^ | = note: `#[warn(deprecated)]` on by default warning: use of deprecated constant `core::sync::atomic::ATOMIC_USIZE_INIT`: the `new` function is now preferred --> src/task_impl/mod.rs:34:35 | 34 | static NEXT_ID: AtomicUsize = ATOMIC_USIZE_INIT; | ^^^^^^^^^^^^^^^^^ | help: replace the use of the deprecated constant | 34 | static NEXT_ID: AtomicUsize = AtomicUsize::new(0); | ~~~~~~~~~~~~~~~~~~~ warning: use of deprecated constant `core::sync::atomic::ATOMIC_USIZE_INIT`: the `new` function is now preferred --> src/task_impl/core.rs:5:39 | 5 | use core::sync::atomic::{AtomicUsize, ATOMIC_USIZE_INIT}; | ^^^^^^^^^^^^^^^^^ warning: use of deprecated constant `core::sync::atomic::ATOMIC_USIZE_INIT`: the `new` function is now preferred --> src/task_impl/core.rs:87:27 | 87 | static GET: AtomicUsize = ATOMIC_USIZE_INIT; | ^^^^^^^^^^^^^^^^^ | help: replace the use of the deprecated constant | 87 | static GET: AtomicUsize = AtomicUsize::new(0); | ~~~~~~~~~~~~~~~~~~~ warning: use of deprecated constant `core::sync::atomic::ATOMIC_USIZE_INIT`: the `new` function is now preferred --> src/task_impl/core.rs:88:27 | 88 | static SET: AtomicUsize = ATOMIC_USIZE_INIT; | ^^^^^^^^^^^^^^^^^ | help: replace the use of the deprecated constant | 88 | static SET: AtomicUsize = AtomicUsize::new(0); | ~~~~~~~~~~~~~~~~~~~ warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred --> src/task_impl/std/mod.rs:8:44 | 8 | use std::sync::{Arc, Mutex, Condvar, Once, ONCE_INIT}; | ^^^^^^^^^ warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred --> src/task_impl/std/mod.rs:30:21 | 30 | static INIT: Once = ONCE_INIT; | ^^^^^^^^^ | help: replace the use of the deprecated constant | 30 | static INIT: Once = Once::new(); | ~~~~~~~~~~~ warning: trait objects without an explicit `dyn` are deprecated --> src/task_impl/core.rs:19:12 | 19 | f: &'a Fn() -> NotifyHandle, | ^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see = note: `#[warn(bare_trait_objects)]` on by default help: if this is an object-safe trait, use `dyn` | 19 | f: &'a dyn Fn() -> NotifyHandle, | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/task_impl/std/mod.rs:88:17 | 88 | Old(&'a Arc), | ^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 88 | Old(&'a Arc), | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/task_impl/std/mod.rs:102:13 | 102 | Old(Arc), | ^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 102 | Old(Arc), | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/task_impl/std/mod.rs:429:22 | 429 | spawn: Spawn + Send>>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 429 | spawn: Spawn + Send>>, | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/task_impl/std/mod.rs:435:15 | 435 | exec: Arc, | ^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 435 | exec: Arc, | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/task_impl/std/mod.rs:621:14 | 621 | set: Arc, | ^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 621 | set: Arc, | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/task_impl/std/data.rs:35:41 | 35 | ... Box, | ^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 35 | Box, | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/task_impl/mod.rs:598:17 | 598 | inner: *mut UnsafeNotify, | ^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 598 | inner: *mut dyn UnsafeNotify, | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/stream/futures_unordered.rs:596:50 | 596 | unsafe fn hide_lt(p: *mut ArcNode) -> *mut UnsafeNotify { | ^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 596 | unsafe fn hide_lt(p: *mut ArcNode) -> *mut dyn UnsafeNotify { | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/future/mod.rs:106:50 | 106 | pub type BoxFuture = ::std::boxed::Box + Send>; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 106 | pub type BoxFuture = ::std::boxed::Box + Send>; | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/stream/mod.rs:132:50 | 132 | pub type BoxStream = ::std::boxed::Box + Send>; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 132 | pub type BoxStream = ::std::boxed::Box + Send>; | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/future/shared.rs:297:32 | 297 | fn cause(&self) -> Option<&error::Error> { | ^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 297 | fn cause(&self) -> Option<&dyn error::Error> { | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/task_impl/core.rs:43:23 | 43 | pub fn new(f: &'a Fn() -> NotifyHandle, id: usize) -> BorrowedUnpark<'a> { | ^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 43 | pub fn new(f: &'a dyn Fn() -> NotifyHandle, id: usize) -> BorrowedUnpark<'a> { | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/task_impl/std/mod.rs:116:23 | 116 | pub fn new(f: &'a Fn() -> NotifyHandle, id: usize) -> BorrowedUnpark<'a> { | ^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 116 | pub fn new(f: &'a dyn Fn() -> NotifyHandle, id: usize) -> BorrowedUnpark<'a> { | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/task_impl/std/mod.rs:229:47 | 229 | pub fn poll_future(&mut self, unpark: Arc) -> Poll { | ^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 229 | pub fn poll_future(&mut self, unpark: Arc) -> Poll { | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/task_impl/std/mod.rs:270:36 | 270 | pub fn execute(self, exec: Arc) | ^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 270 | pub fn execute(self, exec: Arc) | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/task_impl/std/mod.rs:291:47 | 291 | pub fn poll_stream(&mut self, unpark: Arc) | ^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 291 | pub fn poll_stream(&mut self, unpark: Arc) | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/task_impl/std/mod.rs:321:67 | 321 | pub fn start_send(&mut self, value: S::SinkItem, unpark: &Arc) | ^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 321 | pub fn start_send(&mut self, value: S::SinkItem, unpark: &Arc) | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/task_impl/std/mod.rs:333:47 | 333 | pub fn poll_flush(&mut self, unpark: &Arc) | ^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 333 | pub fn poll_flush(&mut self, unpark: &Arc) | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/future/catch_unwind.rs:28:22 | 28 | type Error = Box; | ^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 28 | type Error = Box; | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/stream/catch_unwind.rs:37:22 | 37 | type Error = Box; | ^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 37 | type Error = Box; | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/sink/mod.rs:55:48 | 55 | pub type BoxSink = ::std::boxed::Box + | ________________________________________________^ 56 | | ::core::marker::Send>; | |___________________________________________________________________^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 55 | pub type BoxSink = ::std::boxed::Box + | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/task_impl/mod.rs:615:35 | 615 | pub unsafe fn new(inner: *mut UnsafeNotify) -> NotifyHandle { | ^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 615 | pub unsafe fn new(inner: *mut dyn UnsafeNotify) -> NotifyHandle { | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/task_impl/std/mod.rs:630:25 | 630 | pub fn new(set: Arc, id: usize) -> UnparkEvent { | ^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 630 | pub fn new(set: Arc, id: usize) -> UnparkEvent { | +++ warning: use of deprecated method `core::sync::atomic::AtomicUsize::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead --> src/future/shared.rs:132:41 | 132 | match self.inner.notifier.state.compare_and_swap(IDLE, POLLING, SeqCst) { | ^^^^^^^^^^^^^^^^ warning: use of deprecated method `core::sync::atomic::AtomicUsize::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead --> src/future/shared.rs:172:53 | 172 | match self.inner.notifier.state.compare_and_swap(POLLING, IDLE, SeqCst) { | ^^^^^^^^^^^^^^^^ warning: use of deprecated method `core::sync::atomic::AtomicUsize::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead --> src/future/shared.rs:228:20 | 228 | self.state.compare_and_swap(POLLING, REPOLL, SeqCst); | ^^^^^^^^^^^^^^^^ warning: use of deprecated method `core::error::Error::description`: use the Display impl or to_string() --> src/future/shared.rs:294:20 | 294 | self.error.description() | ^^^^^^^^^^^ warning: use of deprecated method `core::error::Error::cause`: replaced by Error::source, which can support downcasting --> src/future/shared.rs:298:20 | 298 | self.error.cause() | ^^^^^ warning: trait objects without an explicit `dyn` are deprecated --> src/stream/select.rs:37:40 | 37 | (&mut self.stream2 as &mut Stream, | ^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 37 | (&mut self.stream2 as &mut dyn Stream, | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/stream/select.rs:38:40 | 38 | &mut self.stream1 as &mut Stream) | ^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 38 | &mut self.stream1 as &mut dyn Stream) | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/stream/select.rs:40:40 | 40 | (&mut self.stream1 as &mut Stream, | ^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 40 | (&mut self.stream1 as &mut dyn Stream, | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/stream/select.rs:41:40 | 41 | &mut self.stream2 as &mut Stream) | ^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 41 | &mut self.stream2 as &mut dyn Stream) | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/stream/futures_unordered.rs:597:30 | 597 | mem::transmute(p as *mut UnsafeNotify) | ^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 597 | mem::transmute(p as *mut dyn UnsafeNotify) | +++ warning: use of deprecated method `core::sync::atomic::AtomicUsize::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead --> src/task_impl/atomic_task.rs:173:26 | 173 | match self.state.compare_and_swap(WAITING, REGISTERING, Acquire) { | ^^^^^^^^^^^^^^^^ warning: trait objects without an explicit `dyn` are deprecated --> src/task_impl/std/data.rs:124:36 | 124 | &**entry as *const Opaque as *const T | ^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 124 | &**entry as *const dyn Opaque as *const T | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/task_impl/std/mod.rs:203:35 | 203 | &**old1 as *const Unpark == &**old2 as *const Unpark | ^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 203 | &**old1 as *const dyn Unpark == &**old2 as *const Unpark | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/task_impl/std/mod.rs:203:63 | 203 | &**old1 as *const Unpark == &**old2 as *const Unpark | ^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 203 | &**old1 as *const Unpark == &**old2 as *const dyn Unpark | +++ warning: use of deprecated method `core::sync::atomic::AtomicUsize::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead --> src/task_impl/std/mod.rs:512:26 | 512 | match self.state.compare_and_swap(NOTIFY, IDLE, Ordering::SeqCst) { | ^^^^^^^^^^^^^^^^ warning: use of deprecated method `core::sync::atomic::AtomicUsize::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead --> src/task_impl/std/mod.rs:523:26 | 523 | match self.state.compare_and_swap(IDLE, SLEEP, Ordering::SeqCst) { | ^^^^^^^^^^^^^^^^ warning: use of deprecated method `core::sync::atomic::AtomicUsize::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead --> src/task_impl/std/mod.rs:539:37 | 539 | if NOTIFY == self.state.compare_and_swap(NOTIFY, IDLE, Ordering::SeqCst) { | ^^^^^^^^^^^^^^^^ warning: use of deprecated method `core::sync::atomic::AtomicUsize::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead --> src/task_impl/std/mod.rs:550:26 | 550 | match self.state.compare_and_swap(IDLE, NOTIFY, Ordering::SeqCst) { | ^^^^^^^^^^^^^^^^ warning: use of deprecated method `core::sync::atomic::AtomicUsize::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead --> src/task_impl/std/mod.rs:560:26 | 560 | match self.state.compare_and_swap(SLEEP, NOTIFY, Ordering::SeqCst) { | ^^^^^^^^^^^^^^^^ warning: use of deprecated method `core::sync::atomic::AtomicUsize::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead --> src/sync/mpsc/mod.rs:740:49 | 740 | let actual = self.inner.num_senders.compare_and_swap(curr, next, SeqCst); | ^^^^^^^^^^^^^^^^ warning: trait `AssertSend` is never used --> src/task_impl/mod.rs:64:7 | 64 | trait AssertSend: Send {} | ^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default warning: trait `AssertSync` is never used --> src/task_impl/atomic_task.rs:141:15 | 141 | trait AssertSync: Sync {} | ^^^^^^^^^^ warning: trait `AssertKinds` is never used --> src/sync/mpsc/mod.rs:113:7 | 113 | trait AssertKinds: Send + Sync + Clone {} | ^^^^^^^^^^^ warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing --> src/task_impl/mod.rs:442:9 | 442 | drop(id); | ^^^^^--^ | | | argument has type `usize` | = note: `#[warn(dropping_copy_types)]` on by default help: use `let _ = ...` to ignore the expression or result | 442 - drop(id); 442 + let _ = id; | warning: ambiguous wide pointer comparison, the comparison includes metadata which may not be expected --> src/task_impl/core.rs:69:32 | 69 | self.id == other.id && self.handle.inner == (other.f)().inner | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(ambiguous_wide_pointer_comparisons)]` on by default help: use `std::ptr::addr_eq` or untyped pointers to only compare their addresses | 69 | self.id == other.id && std::ptr::addr_eq(self.handle.inner, (other.f)().inner) | ++++++++++++++++++ ~ + warning: ambiguous wide pointer comparison, the comparison includes metadata which may not be expected --> src/task_impl/std/mod.rs:203:17 | 203 | &**old1 as *const Unpark == &**old2 as *const Unpark | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | help: use `std::ptr::addr_eq` or untyped pointers to only compare their addresses | 203 | std::ptr::addr_eq(&**old1 as *const Unpark, &**old2 as *const Unpark) | ++++++++++++++++++ ~ + warning: `futures` (lib) generated 58 warnings (run `cargo fix --lib -p futures` to apply 37 suggestions) Finished `rpm` profile [optimized + debuginfo] target(s) in 1.74s + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.Ag2mAx + umask 022 + cd /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build + '[' 1 -eq 1 ']' + '[' /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/BUILDROOT '!=' / ']' + rm -rf /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/BUILDROOT ++ dirname /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/BUILDROOT + mkdir -p /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build + mkdir /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/BUILDROOT + cd futures-0.1.19 + '[' 1 -eq 1 ']' + set -euo pipefail ++ /usr/bin/cargo2rpm --path Cargo.toml is-lib + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' ++ /usr/bin/cargo2rpm --path Cargo.toml name + CRATE_NAME=futures ++ /usr/bin/cargo2rpm --path Cargo.toml version + CRATE_VERSION=0.1.19 + REG_DIR=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/BUILDROOT/usr/share/cargo/registry/futures-0.1.19 + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/BUILDROOT/usr/share/cargo/registry/futures-0.1.19 + /usr/bin/awk -i inplace -v INPLACE_SUFFIX=.deps '/^\[((.+\.)?((dev|build)-)?dependencies|features)/{f=1;next} /^\[/{f=0}; !f' Cargo.toml + /usr/bin/env CARGO_HOME=.cargo RUSTC_BOOTSTRAP=1 'RUSTFLAGS=-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' /usr/bin/cargo package -l + grep -w -E -v 'Cargo.(lock|toml.orig)' + xargs -d '\n' /usr/bin/cp --parents -a -t /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/BUILDROOT/usr/share/cargo/registry/futures-0.1.19 warning: no (git) VCS found for `/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19` + /usr/bin/mv Cargo.toml.deps Cargo.toml + /usr/bin/cp -a Cargo.toml /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/BUILDROOT/usr/share/cargo/registry/futures-0.1.19/Cargo.toml + /usr/bin/rm -f /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/BUILDROOT/usr/share/cargo/registry/futures-0.1.19/Cargo.toml.deps + echo '{"files":{},"package":""}' ++ /usr/bin/cargo2rpm --path Cargo.toml is-bin + '[' 0 -eq 1 ']' + /usr/lib/rpm/check-buildroot + '[' -n '' ']' + /usr/share/spec-helper/clean_files + '[' -n '' ']' + /usr/share/spec-helper/compress_files .xz + '[' -n '' ']' + /usr/share/spec-helper/relink_symlinks + '[' -n '' ']' + /usr/share/spec-helper/clean_perl + '[' -n '' ']' + /usr/share/spec-helper/lib_symlinks + '[' -n '' ']' + /usr/share/spec-helper/gprintify + '[' -n '' ']' + /usr/share/spec-helper/fix_mo + '[' -n '' ']' + /usr/share/spec-helper/fix_pamd + '[' -n '' ']' + /usr/share/spec-helper/remove_info_dir + '[' -n '' ']' + /usr/share/spec-helper/fix_eol + '[' -n '' ']' + /usr/share/spec-helper/check_desktop_files + '[' -n '' ']' + /usr/share/spec-helper/check_elf_files + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/brp-remove-la-files + /usr/lib/rpm/redhat/brp-mangle-shebangs + env -u SOURCE_DATE_EPOCH /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j16 + /usr/lib/rpm/redhat/brp-python-hardlink Reading /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/SPECPARTS/rpm-debuginfo.specpart Executing(%check): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.qVPxWx + umask 022 + cd /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build + cd futures-0.1.19 + '[' 1 -eq 1 ']' + /usr/bin/env CARGO_HOME=.cargo RUSTC_BOOTSTRAP=1 'RUSTFLAGS=-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' /usr/bin/cargo test -j16 -Z avoid-dev-deps --profile rpm --no-fail-fast warning: no edition set: defaulting to the 2015 edition while the latest is 2021 warning: anonymous parameters are deprecated and will be removed in the next edition --> src/future/mod.rs:1083:20 | 1083 | fn future_from(T) -> Self::Future; | ^ help: try naming the parameter or explicitly ignoring it: `_: T` | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! = note: for more information, see issue #41686 = note: `#[warn(anonymous_parameters)]` on by default warning: use of deprecated constant `core::sync::atomic::ATOMIC_USIZE_INIT`: the `new` function is now preferred --> src/task_impl/mod.rs:27:53 | 27 | use core::sync::atomic::{AtomicUsize, Ordering, ATOMIC_USIZE_INIT}; | ^^^^^^^^^^^^^^^^^ | = note: `#[warn(deprecated)]` on by default warning: use of deprecated constant `core::sync::atomic::ATOMIC_USIZE_INIT`: the `new` function is now preferred --> src/task_impl/mod.rs:34:35 | 34 | static NEXT_ID: AtomicUsize = ATOMIC_USIZE_INIT; | ^^^^^^^^^^^^^^^^^ | help: replace the use of the deprecated constant | 34 | static NEXT_ID: AtomicUsize = AtomicUsize::new(0); | ~~~~~~~~~~~~~~~~~~~ warning: use of deprecated constant `core::sync::atomic::ATOMIC_USIZE_INIT`: the `new` function is now preferred --> src/task_impl/core.rs:5:39 | 5 | use core::sync::atomic::{AtomicUsize, ATOMIC_USIZE_INIT}; | ^^^^^^^^^^^^^^^^^ warning: use of deprecated constant `core::sync::atomic::ATOMIC_USIZE_INIT`: the `new` function is now preferred --> src/task_impl/core.rs:87:27 | 87 | static GET: AtomicUsize = ATOMIC_USIZE_INIT; | ^^^^^^^^^^^^^^^^^ | help: replace the use of the deprecated constant | 87 | static GET: AtomicUsize = AtomicUsize::new(0); | ~~~~~~~~~~~~~~~~~~~ warning: use of deprecated constant `core::sync::atomic::ATOMIC_USIZE_INIT`: the `new` function is now preferred --> src/task_impl/core.rs:88:27 | 88 | static SET: AtomicUsize = ATOMIC_USIZE_INIT; | ^^^^^^^^^^^^^^^^^ | help: replace the use of the deprecated constant | 88 | static SET: AtomicUsize = AtomicUsize::new(0); | ~~~~~~~~~~~~~~~~~~~ warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred --> src/task_impl/std/mod.rs:8:44 | 8 | use std::sync::{Arc, Mutex, Condvar, Once, ONCE_INIT}; | ^^^^^^^^^ warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred --> src/task_impl/std/mod.rs:30:21 | 30 | static INIT: Once = ONCE_INIT; | ^^^^^^^^^ | help: replace the use of the deprecated constant | 30 | static INIT: Once = Once::new(); | ~~~~~~~~~~~ warning: trait objects without an explicit `dyn` are deprecated --> src/task_impl/core.rs:19:12 | 19 | f: &'a Fn() -> NotifyHandle, | ^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see = note: `#[warn(bare_trait_objects)]` on by default help: if this is an object-safe trait, use `dyn` | 19 | f: &'a dyn Fn() -> NotifyHandle, | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/task_impl/std/mod.rs:88:17 | 88 | Old(&'a Arc), | ^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 88 | Old(&'a Arc), | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/task_impl/std/mod.rs:102:13 | 102 | Old(Arc), | ^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 102 | Old(Arc), | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/task_impl/std/mod.rs:429:22 | 429 | spawn: Spawn + Send>>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 429 | spawn: Spawn + Send>>, | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/task_impl/std/mod.rs:435:15 | 435 | exec: Arc, | ^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 435 | exec: Arc, | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/task_impl/std/mod.rs:621:14 | 621 | set: Arc, | ^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 621 | set: Arc, | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/task_impl/std/data.rs:35:41 | 35 | ... Box, | ^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 35 | Box, | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/task_impl/mod.rs:598:17 | 598 | inner: *mut UnsafeNotify, | ^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 598 | inner: *mut dyn UnsafeNotify, | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/stream/futures_unordered.rs:596:50 | 596 | unsafe fn hide_lt(p: *mut ArcNode) -> *mut UnsafeNotify { | ^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 596 | unsafe fn hide_lt(p: *mut ArcNode) -> *mut dyn UnsafeNotify { | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/future/mod.rs:106:50 | 106 | pub type BoxFuture = ::std::boxed::Box + Send>; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 106 | pub type BoxFuture = ::std::boxed::Box + Send>; | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/stream/mod.rs:132:50 | 132 | pub type BoxStream = ::std::boxed::Box + Send>; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 132 | pub type BoxStream = ::std::boxed::Box + Send>; | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/future/shared.rs:297:32 | 297 | fn cause(&self) -> Option<&error::Error> { | ^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 297 | fn cause(&self) -> Option<&dyn error::Error> { | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/task_impl/core.rs:43:23 | 43 | pub fn new(f: &'a Fn() -> NotifyHandle, id: usize) -> BorrowedUnpark<'a> { | ^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 43 | pub fn new(f: &'a dyn Fn() -> NotifyHandle, id: usize) -> BorrowedUnpark<'a> { | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/task_impl/std/mod.rs:116:23 | 116 | pub fn new(f: &'a Fn() -> NotifyHandle, id: usize) -> BorrowedUnpark<'a> { | ^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 116 | pub fn new(f: &'a dyn Fn() -> NotifyHandle, id: usize) -> BorrowedUnpark<'a> { | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/task_impl/std/mod.rs:229:47 | 229 | pub fn poll_future(&mut self, unpark: Arc) -> Poll { | ^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 229 | pub fn poll_future(&mut self, unpark: Arc) -> Poll { | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/task_impl/std/mod.rs:270:36 | 270 | pub fn execute(self, exec: Arc) | ^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 270 | pub fn execute(self, exec: Arc) | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/task_impl/std/mod.rs:291:47 | 291 | pub fn poll_stream(&mut self, unpark: Arc) | ^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 291 | pub fn poll_stream(&mut self, unpark: Arc) | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/task_impl/std/mod.rs:321:67 | 321 | pub fn start_send(&mut self, value: S::SinkItem, unpark: &Arc) | ^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 321 | pub fn start_send(&mut self, value: S::SinkItem, unpark: &Arc) | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/task_impl/std/mod.rs:333:47 | 333 | pub fn poll_flush(&mut self, unpark: &Arc) | ^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 333 | pub fn poll_flush(&mut self, unpark: &Arc) | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/future/catch_unwind.rs:28:22 | 28 | type Error = Box; | ^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 28 | type Error = Box; | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/stream/catch_unwind.rs:37:22 | 37 | type Error = Box; | ^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 37 | type Error = Box; | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/sink/mod.rs:55:48 | 55 | pub type BoxSink = ::std::boxed::Box + | ________________________________________________^ 56 | | ::core::marker::Send>; | |___________________________________________________________________^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 55 | pub type BoxSink = ::std::boxed::Box + | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/task_impl/mod.rs:615:35 | 615 | pub unsafe fn new(inner: *mut UnsafeNotify) -> NotifyHandle { | ^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 615 | pub unsafe fn new(inner: *mut dyn UnsafeNotify) -> NotifyHandle { | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/task_impl/std/mod.rs:630:25 | 630 | pub fn new(set: Arc, id: usize) -> UnparkEvent { | ^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 630 | pub fn new(set: Arc, id: usize) -> UnparkEvent { | +++ warning: use of deprecated method `core::sync::atomic::AtomicUsize::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead --> src/future/shared.rs:132:41 | 132 | match self.inner.notifier.state.compare_and_swap(IDLE, POLLING, SeqCst) { | ^^^^^^^^^^^^^^^^ warning: use of deprecated method `core::sync::atomic::AtomicUsize::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead --> src/future/shared.rs:172:53 | 172 | match self.inner.notifier.state.compare_and_swap(POLLING, IDLE, SeqCst) { | ^^^^^^^^^^^^^^^^ warning: use of deprecated method `core::sync::atomic::AtomicUsize::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead --> src/future/shared.rs:228:20 | 228 | self.state.compare_and_swap(POLLING, REPOLL, SeqCst); | ^^^^^^^^^^^^^^^^ warning: use of deprecated method `core::error::Error::description`: use the Display impl or to_string() --> src/future/shared.rs:294:20 | 294 | self.error.description() | ^^^^^^^^^^^ warning: use of deprecated method `core::error::Error::cause`: replaced by Error::source, which can support downcasting --> src/future/shared.rs:298:20 | 298 | self.error.cause() | ^^^^^ warning: trait objects without an explicit `dyn` are deprecated --> src/stream/select.rs:37:40 | 37 | (&mut self.stream2 as &mut Stream, | ^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 37 | (&mut self.stream2 as &mut dyn Stream, | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/stream/select.rs:38:40 | 38 | &mut self.stream1 as &mut Stream) | ^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 38 | &mut self.stream1 as &mut dyn Stream) | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/stream/select.rs:40:40 | 40 | (&mut self.stream1 as &mut Stream, | ^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 40 | (&mut self.stream1 as &mut dyn Stream, | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/stream/select.rs:41:40 | 41 | &mut self.stream2 as &mut Stream) | ^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 41 | &mut self.stream2 as &mut dyn Stream) | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/stream/futures_unordered.rs:597:30 | 597 | mem::transmute(p as *mut UnsafeNotify) | ^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 597 | mem::transmute(p as *mut dyn UnsafeNotify) | +++ warning: use of deprecated method `core::sync::atomic::AtomicUsize::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead --> src/task_impl/atomic_task.rs:173:26 | 173 | match self.state.compare_and_swap(WAITING, REGISTERING, Acquire) { | ^^^^^^^^^^^^^^^^ warning: trait objects without an explicit `dyn` are deprecated --> src/task_impl/std/data.rs:124:36 | 124 | &**entry as *const Opaque as *const T | ^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 124 | &**entry as *const dyn Opaque as *const T | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/task_impl/std/mod.rs:203:35 | 203 | &**old1 as *const Unpark == &**old2 as *const Unpark | ^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 203 | &**old1 as *const dyn Unpark == &**old2 as *const Unpark | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/task_impl/std/mod.rs:203:63 | 203 | &**old1 as *const Unpark == &**old2 as *const Unpark | ^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 203 | &**old1 as *const Unpark == &**old2 as *const dyn Unpark | +++ warning: use of deprecated method `core::sync::atomic::AtomicUsize::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead --> src/task_impl/std/mod.rs:512:26 | 512 | match self.state.compare_and_swap(NOTIFY, IDLE, Ordering::SeqCst) { | ^^^^^^^^^^^^^^^^ warning: use of deprecated method `core::sync::atomic::AtomicUsize::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead --> src/task_impl/std/mod.rs:523:26 | 523 | match self.state.compare_and_swap(IDLE, SLEEP, Ordering::SeqCst) { | ^^^^^^^^^^^^^^^^ warning: use of deprecated method `core::sync::atomic::AtomicUsize::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead --> src/task_impl/std/mod.rs:539:37 | 539 | if NOTIFY == self.state.compare_and_swap(NOTIFY, IDLE, Ordering::SeqCst) { | ^^^^^^^^^^^^^^^^ warning: use of deprecated method `core::sync::atomic::AtomicUsize::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead --> src/task_impl/std/mod.rs:550:26 | 550 | match self.state.compare_and_swap(IDLE, NOTIFY, Ordering::SeqCst) { | ^^^^^^^^^^^^^^^^ warning: use of deprecated method `core::sync::atomic::AtomicUsize::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead --> src/task_impl/std/mod.rs:560:26 | 560 | match self.state.compare_and_swap(SLEEP, NOTIFY, Ordering::SeqCst) { | ^^^^^^^^^^^^^^^^ warning: use of deprecated method `core::sync::atomic::AtomicUsize::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead --> src/sync/mpsc/mod.rs:740:49 | 740 | let actual = self.inner.num_senders.compare_and_swap(curr, next, SeqCst); | ^^^^^^^^^^^^^^^^ warning: trait `AssertSend` is never used --> src/task_impl/mod.rs:64:7 | 64 | trait AssertSend: Send {} | ^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default warning: trait `AssertSync` is never used --> src/task_impl/atomic_task.rs:141:15 | 141 | trait AssertSync: Sync {} | ^^^^^^^^^^ warning: trait `AssertKinds` is never used --> src/sync/mpsc/mod.rs:113:7 | 113 | trait AssertKinds: Send + Sync + Clone {} | ^^^^^^^^^^^ warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing --> src/task_impl/mod.rs:442:9 | 442 | drop(id); | ^^^^^--^ | | | argument has type `usize` | = note: `#[warn(dropping_copy_types)]` on by default help: use `let _ = ...` to ignore the expression or result | 442 - drop(id); 442 + let _ = id; | warning: ambiguous wide pointer comparison, the comparison includes metadata which may not be expected --> src/task_impl/core.rs:69:32 | 69 | self.id == other.id && self.handle.inner == (other.f)().inner | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(ambiguous_wide_pointer_comparisons)]` on by default help: use `std::ptr::addr_eq` or untyped pointers to only compare their addresses | 69 | self.id == other.id && std::ptr::addr_eq(self.handle.inner, (other.f)().inner) | ++++++++++++++++++ ~ + warning: ambiguous wide pointer comparison, the comparison includes metadata which may not be expected --> src/task_impl/std/mod.rs:203:17 | 203 | &**old1 as *const Unpark == &**old2 as *const Unpark | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | help: use `std::ptr::addr_eq` or untyped pointers to only compare their addresses | 203 | std::ptr::addr_eq(&**old1 as *const Unpark, &**old2 as *const Unpark) | ++++++++++++++++++ ~ + warning: `futures` (lib) generated 58 warnings (run `cargo fix --lib -p futures` to apply 37 suggestions) Compiling futures v0.1.19 (/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19) Running `/usr/bin/rustc --crate-name select_ok --edition=2015 tests/select_ok.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --test --cfg 'feature="default"' --cfg 'feature="use_std"' --cfg 'feature="with-deprecated"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "use_std", "with-deprecated"))' -C metadata=897065cd6143da78 -C extra-filename=-897065cd6143da78 --out-dir /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/libfutures-45f9346f67cfec8c.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` Running `/usr/bin/rustc --crate-name futures_unordered --edition=2015 tests/futures_unordered.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --test --cfg 'feature="default"' --cfg 'feature="use_std"' --cfg 'feature="with-deprecated"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "use_std", "with-deprecated"))' -C metadata=493f816ca9fc53af -C extra-filename=-493f816ca9fc53af --out-dir /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/libfutures-45f9346f67cfec8c.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` Running `/usr/bin/rustc --crate-name bilock --edition=2015 tests/bilock.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --test --cfg 'feature="default"' --cfg 'feature="use_std"' --cfg 'feature="with-deprecated"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "use_std", "with-deprecated"))' -C metadata=7f27821326b6b365 -C extra-filename=-7f27821326b6b365 --out-dir /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/libfutures-45f9346f67cfec8c.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` Running `/usr/bin/rustc --crate-name fuse --edition=2015 tests/fuse.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --test --cfg 'feature="default"' --cfg 'feature="use_std"' --cfg 'feature="with-deprecated"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "use_std", "with-deprecated"))' -C metadata=a5c7f285f79138c0 -C extra-filename=-a5c7f285f79138c0 --out-dir /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/libfutures-45f9346f67cfec8c.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` Running `/usr/bin/rustc --crate-name eager_drop --edition=2015 tests/eager_drop.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --test --cfg 'feature="default"' --cfg 'feature="use_std"' --cfg 'feature="with-deprecated"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "use_std", "with-deprecated"))' -C metadata=0161ca12b95f72b5 -C extra-filename=-0161ca12b95f72b5 --out-dir /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/libfutures-45f9346f67cfec8c.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` Running `/usr/bin/rustc --crate-name future_flatten_stream --edition=2015 tests/future_flatten_stream.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --test --cfg 'feature="default"' --cfg 'feature="use_std"' --cfg 'feature="with-deprecated"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "use_std", "with-deprecated"))' -C metadata=72189005cdfda646 -C extra-filename=-72189005cdfda646 --out-dir /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/libfutures-45f9346f67cfec8c.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` Running `/usr/bin/rustc --crate-name futures_ordered --edition=2015 tests/futures_ordered.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --test --cfg 'feature="default"' --cfg 'feature="use_std"' --cfg 'feature="with-deprecated"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "use_std", "with-deprecated"))' -C metadata=ab4b77624ec02ea7 -C extra-filename=-ab4b77624ec02ea7 --out-dir /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/libfutures-45f9346f67cfec8c.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` Running `/usr/bin/rustc --crate-name recurse --edition=2015 tests/recurse.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --test --cfg 'feature="default"' --cfg 'feature="use_std"' --cfg 'feature="with-deprecated"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "use_std", "with-deprecated"))' -C metadata=e8162ce3bab74641 -C extra-filename=-e8162ce3bab74641 --out-dir /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/libfutures-45f9346f67cfec8c.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` Running `/usr/bin/rustc --crate-name all --edition=2015 tests/all.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --test --cfg 'feature="default"' --cfg 'feature="use_std"' --cfg 'feature="with-deprecated"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "use_std", "with-deprecated"))' -C metadata=27d1b8f7f574ed6a -C extra-filename=-27d1b8f7f574ed6a --out-dir /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/libfutures-45f9346f67cfec8c.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` Running `/usr/bin/rustc --crate-name channel --edition=2015 tests/channel.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --test --cfg 'feature="default"' --cfg 'feature="use_std"' --cfg 'feature="with-deprecated"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "use_std", "with-deprecated"))' -C metadata=bd2e0e4ab1397e40 -C extra-filename=-bd2e0e4ab1397e40 --out-dir /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/libfutures-45f9346f67cfec8c.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` Running `/usr/bin/rustc --crate-name mpsc --edition=2015 tests/mpsc.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --test --cfg 'feature="default"' --cfg 'feature="use_std"' --cfg 'feature="with-deprecated"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "use_std", "with-deprecated"))' -C metadata=883abf758ca070f5 -C extra-filename=-883abf758ca070f5 --out-dir /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/libfutures-45f9346f67cfec8c.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` Running `/usr/bin/rustc --crate-name stream_catch_unwind --edition=2015 tests/stream_catch_unwind.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --test --cfg 'feature="default"' --cfg 'feature="use_std"' --cfg 'feature="with-deprecated"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "use_std", "with-deprecated"))' -C metadata=61e88099de99391c -C extra-filename=-61e88099de99391c --out-dir /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/libfutures-45f9346f67cfec8c.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` Running `/usr/bin/rustc --crate-name oneshot --edition=2015 tests/oneshot.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --test --cfg 'feature="default"' --cfg 'feature="use_std"' --cfg 'feature="with-deprecated"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "use_std", "with-deprecated"))' -C metadata=36100822f0504baf -C extra-filename=-36100822f0504baf --out-dir /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/libfutures-45f9346f67cfec8c.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` Running `/usr/bin/rustc --crate-name mpsc_close --edition=2015 tests/mpsc-close.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --test --cfg 'feature="default"' --cfg 'feature="use_std"' --cfg 'feature="with-deprecated"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "use_std", "with-deprecated"))' -C metadata=944be6f0070852fa -C extra-filename=-944be6f0070852fa --out-dir /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/libfutures-45f9346f67cfec8c.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` Running `/usr/bin/rustc --crate-name select_all --edition=2015 tests/select_all.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --test --cfg 'feature="default"' --cfg 'feature="use_std"' --cfg 'feature="with-deprecated"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "use_std", "with-deprecated"))' -C metadata=00c330ae8d4b666f -C extra-filename=-00c330ae8d4b666f --out-dir /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/libfutures-45f9346f67cfec8c.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` Running `/usr/bin/rustc --crate-name split --edition=2015 tests/split.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --test --cfg 'feature="default"' --cfg 'feature="use_std"' --cfg 'feature="with-deprecated"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "use_std", "with-deprecated"))' -C metadata=700766cd51a7f0b6 -C extra-filename=-700766cd51a7f0b6 --out-dir /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/libfutures-45f9346f67cfec8c.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` warning: trait objects without an explicit `dyn` are deprecated --> tests/recurse.rs:10:30 | 10 | fn doit(n: usize) -> Box + Send> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see = note: `#[warn(bare_trait_objects)]` on by default help: if this is an object-safe trait, use `dyn` | 10 | fn doit(n: usize) -> Box + Send> { | +++ warning: trait objects without an explicit `dyn` are deprecated --> tests/support/local_executor.rs:29:30 | 29 | Running(Option>>>), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see = note: `#[warn(bare_trait_objects)]` on by default help: if this is an object-safe trait, use `dyn` | 29 | Running(Option>>>), | +++ warning: unnecessary parentheses around function argument --> tests/bilock.rs:62:38 | 62 | let b = stream::iter_ok::<_, ()>((0..N)).fold(b, |b, _n| { | ^ ^ | = note: `#[warn(unused_parens)]` on by default help: remove these parentheses | 62 - let b = stream::iter_ok::<_, ()>((0..N)).fold(b, |b, _n| { 62 + let b = stream::iter_ok::<_, ()>(0..N).fold(b, |b, _n| { | warning: use of deprecated constant `std::sync::atomic::ATOMIC_USIZE_INIT`: the `new` function is now preferred --> tests/channel.rs:55:33 | 55 | static DROPS: AtomicUsize = ATOMIC_USIZE_INIT; | ^^^^^^^^^^^^^^^^^ | = note: `#[warn(deprecated)]` on by default help: replace the use of the deprecated constant | 55 | static DROPS: AtomicUsize = AtomicUsize::new(0); | ~~~~~~~~~~~~~~~~~~~ warning: trait objects without an explicit `dyn` are deprecated --> tests/channel.rs:28:20 | 28 | -> Box + Send> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see = note: `#[warn(bare_trait_objects)]` on by default help: if this is an object-safe trait, use `dyn` | 28 | -> Box + Send> { | +++ warning: trait objects without an explicit `dyn` are deprecated --> tests/support/local_executor.rs:29:30 | 29 | Running(Option>>>), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 29 | Running(Option>>>), | +++ warning: trait objects without an explicit `dyn` are deprecated --> tests/futures_unordered.rs:37:31 | 37 | Box::new(a_rx) as Box>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 37 | Box::new(a_rx) as Box>, | +++ warning: trait objects without an explicit `dyn` are deprecated --> tests/futures_unordered.rs:65:48 | 65 | let (_a_tx, a_rx) = oneshot::channel::>(); | ^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 65 | let (_a_tx, a_rx) = oneshot::channel::>(); | +++ warning: trait objects without an explicit `dyn` are deprecated --> tests/futures_unordered.rs:66:47 | 66 | let (b_tx, b_rx) = oneshot::channel::>(); | ^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 66 | let (b_tx, b_rx) = oneshot::channel::>(); | +++ warning: trait objects without an explicit `dyn` are deprecated --> tests/futures_ordered.rs:38:31 | 38 | Box::new(a_rx) as Box>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 38 | Box::new(a_rx) as Box>, | +++ warning: trait objects without an explicit `dyn` are deprecated --> tests/futures_unordered.rs:67:47 | 67 | let (c_tx, c_rx) = oneshot::channel::>(); | ^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 67 | let (c_tx, c_rx) = oneshot::channel::>(); | +++ warning: trait objects without an explicit `dyn` are deprecated --> tests/futures_unordered.rs:70:31 | 70 | Box::new(a_rx) as Box>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 70 | Box::new(a_rx) as Box>, | +++ warning: trait objects without an explicit `dyn` are deprecated --> tests/futures_unordered.rs:71:71 | 71 | Box::new(b_rx.select(c_rx).then(|res| Ok(Box::new(res) as Box))), | ^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 71 | Box::new(b_rx.select(c_rx).then(|res| Ok(Box::new(res) as Box))), | +++ warning: trait objects without an explicit `dyn` are deprecated --> tests/mpsc.rs:361:22 | 361 | fn list() -> Box> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 361 | fn list() -> Box> { | +++ warning: trait objects without an explicit `dyn` are deprecated --> tests/futures_ordered.rs:67:48 | 67 | let (_a_tx, a_rx) = oneshot::channel::>(); | ^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 67 | let (_a_tx, a_rx) = oneshot::channel::>(); | +++ warning: trait objects without an explicit `dyn` are deprecated --> tests/futures_ordered.rs:68:47 | 68 | let (b_tx, b_rx) = oneshot::channel::>(); | ^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 68 | let (b_tx, b_rx) = oneshot::channel::>(); | +++ warning: trait objects without an explicit `dyn` are deprecated --> tests/futures_ordered.rs:69:47 | 69 | let (c_tx, c_rx) = oneshot::channel::>(); | ^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 69 | let (c_tx, c_rx) = oneshot::channel::>(); | +++ warning: trait objects without an explicit `dyn` are deprecated --> tests/futures_ordered.rs:72:31 | 72 | Box::new(a_rx) as Box>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 72 | Box::new(a_rx) as Box>, | +++ warning: trait objects without an explicit `dyn` are deprecated --> tests/futures_ordered.rs:73:71 | 73 | Box::new(b_rx.select(c_rx).then(|res| Ok(Box::new(res) as Box))), | ^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 73 | Box::new(b_rx.select(c_rx).then(|res| Ok(Box::new(res) as Box))), | +++ warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing --> tests/support/local_executor.rs:160:9 | 160 | drop(self.tx.lock().unwrap().send(id)); | ^^^^^--------------------------------^ | | | argument has type `Result<(), std::sync::mpsc::SendError>` | = note: `#[warn(dropping_copy_types)]` on by default help: use `let _ = ...` to ignore the expression or result | 160 - drop(self.tx.lock().unwrap().send(id)); 160 + let _ = self.tx.lock().unwrap().send(id); | warning: field `done` is never read --> tests/oneshot.rs:147:9 | 144 | struct Dead { | ---- field in this struct ... 147 | done: oneshot::Sender<()>, | ^^^^ | = note: `Dead` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis = note: `#[warn(dead_code)]` on by default warning: field `done` is never read --> tests/oneshot.rs:209:9 | 206 | struct Dead { | ---- field in this struct ... 209 | done: oneshot::Sender<()>, | ^^^^ | = note: `Dead` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis warning: trait objects without an explicit `dyn` are deprecated --> tests/all.rs:373:44 | 373 | let mut spawn_box: Box>> = Box::new(spawn); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 373 | let mut spawn_box: Box>> = Box::new(spawn); | +++ warning: trait `AssertSend` is never used --> tests/mpsc.rs:20:7 | 20 | trait AssertSend: Send {} | ^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default warning: field `done` is never read --> tests/mpsc.rs:168:9 | 165 | struct Dead { | ---- field in this struct ... 168 | done: oneshot::Sender<()>, | ^^^^ | = note: `Dead` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis warning: unused `SinkMapErr` in tuple element 1 that must be used --> tests/mpsc.rs:103:9 | 103 | a.send(2).join(b.send(())).wait().unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: sinks do nothing unless polled = note: `#[warn(unused_must_use)]` on by default warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing --> tests/mpsc.rs:106:5 | 106 | drop(readyrx.next().unwrap()); | ^^^^^-----------------------^ | | | argument has type `Result<(), ()>` | = note: `#[warn(dropping_copy_types)]` on by default help: use `let _ = ...` to ignore the expression or result | 106 - drop(readyrx.next().unwrap()); 106 + let _ = readyrx.next().unwrap(); | warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing --> tests/mpsc.rs:108:5 | 108 | drop(readyrx.next().unwrap()); | ^^^^^-----------------------^ | | | argument has type `Result<(), ()>` | help: use `let _ = ...` to ignore the expression or result | 108 - drop(readyrx.next().unwrap()); 108 + let _ = readyrx.next().unwrap(); | warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing --> tests/mpsc.rs:525:5 | 525 | drop(readyrx.wait()); | ^^^^^--------------^ | | | argument has type `Result<(), Canceled>` | help: use `let _ = ...` to ignore the expression or result | 525 - drop(readyrx.wait()); 525 + let _ = readyrx.wait(); | warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing --> tests/support/local_executor.rs:160:9 | 160 | drop(self.tx.lock().unwrap().send(id)); | ^^^^^--------------------------------^ | | | argument has type `Result<(), std::sync::mpsc::SendError>` | help: use `let _ = ...` to ignore the expression or result | 160 - drop(self.tx.lock().unwrap().send(id)); 160 + let _ = self.tx.lock().unwrap().send(id); | warning: `futures` (test "fuse") generated 2 warnings (2 duplicates) Running `/usr/bin/rustc --crate-name buffer_unordered --edition=2015 tests/buffer_unordered.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --test --cfg 'feature="default"' --cfg 'feature="use_std"' --cfg 'feature="with-deprecated"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "use_std", "with-deprecated"))' -C metadata=61e91af97e4afb69 -C extra-filename=-61e91af97e4afb69 --out-dir /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/libfutures-45f9346f67cfec8c.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` Running `/usr/bin/rustc --crate-name shared --edition=2015 tests/shared.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --test --cfg 'feature="default"' --cfg 'feature="use_std"' --cfg 'feature="with-deprecated"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "use_std", "with-deprecated"))' -C metadata=fe944f34f801fe83 -C extra-filename=-fe944f34f801fe83 --out-dir /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/libfutures-45f9346f67cfec8c.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` Running `/usr/bin/rustc --crate-name stream --edition=2015 tests/stream.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --test --cfg 'feature="default"' --cfg 'feature="use_std"' --cfg 'feature="with-deprecated"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "use_std", "with-deprecated"))' -C metadata=4d88d9485dbe5bbd -C extra-filename=-4d88d9485dbe5bbd --out-dir /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/libfutures-45f9346f67cfec8c.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` warning: trait objects without an explicit `dyn` are deprecated --> tests/shared.rs:80:51 | 80 | let future2 = Box::new(future.clone()) as Box>; | ^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 80 | let future2 = Box::new(future.clone()) as Box>; | +++ warning: trait objects without an explicit `dyn` are deprecated --> tests/shared.rs:150:44 | 150 | let (tx0, rx0) = mpsc::unbounded::>>(); | ^^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 150 | let (tx0, rx0) = mpsc::unbounded::>>(); | +++ warning: trait objects without an explicit `dyn` are deprecated --> tests/stream.rs:290:29 | 290 | inner: Peekable + Send>> | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 290 | inner: Peekable + Send>> | +++ warning: trait objects without an explicit `dyn` are deprecated --> tests/stream.rs:41:18 | 41 | fn list() -> Box + Send> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 41 | fn list() -> Box + Send> { | +++ warning: trait objects without an explicit `dyn` are deprecated --> tests/stream.rs:50:22 | 50 | fn err_list() -> Box + Send> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 50 | fn err_list() -> Box + Send> { | +++ warning: trait objects without an explicit `dyn` are deprecated --> tests/shared.rs:180:44 | 180 | let (tx0, rx0) = mpsc::unbounded::>>(); | ^^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 180 | let (tx0, rx0) = mpsc::unbounded::>>(); | +++ Running `/usr/bin/rustc --crate-name inspect --edition=2015 tests/inspect.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --test --cfg 'feature="default"' --cfg 'feature="use_std"' --cfg 'feature="with-deprecated"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "use_std", "with-deprecated"))' -C metadata=9f744d2be3a15751 -C extra-filename=-9f744d2be3a15751 --out-dir /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/libfutures-45f9346f67cfec8c.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` Running `/usr/bin/rustc --crate-name sink --edition=2015 tests/sink.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --test --cfg 'feature="default"' --cfg 'feature="use_std"' --cfg 'feature="with-deprecated"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "use_std", "with-deprecated"))' -C metadata=5c43998e944f6005 -C extra-filename=-5c43998e944f6005 --out-dir /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/libfutures-45f9346f67cfec8c.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` warning: trait objects without an explicit `dyn` are deprecated --> tests/stream.rs:202:48 | 202 | tx.send(Box::new(b.map_err(|_| ())) as Box + Send>) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 202 | tx.send(Box::new(b.map_err(|_| ())) as Box + Send>) | +++ warning: trait objects without an explicit `dyn` are deprecated --> tests/stream.rs:220:48 | 220 | tx.send(Box::new(b.map_err(|_| ())) as Box + Send>) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 220 | tx.send(Box::new(b.map_err(|_| ())) as Box + Send>) | +++ warning: trait objects without an explicit `dyn` are deprecated --> tests/stream.rs:241:48 | 241 | tx.send(Box::new(b.map_err(|_| ())) as Box + Send>) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 241 | tx.send(Box::new(b.map_err(|_| ())) as Box + Send>) | +++ warning: trait objects without an explicit `dyn` are deprecated --> tests/stream.rs:258:48 | 258 | tx.send(Box::new(b.map_err(|_| ())) as Box + Send>) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 258 | tx.send(Box::new(b.map_err(|_| ())) as Box + Send>) | +++ Running `/usr/bin/rustc --crate-name unsync --edition=2015 tests/unsync.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --test --cfg 'feature="default"' --cfg 'feature="use_std"' --cfg 'feature="with-deprecated"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "use_std", "with-deprecated"))' -C metadata=449993bc3af62066 -C extra-filename=-449993bc3af62066 --out-dir /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/libfutures-45f9346f67cfec8c.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` warning: trait objects without an explicit `dyn` are deprecated --> tests/sink.rs:136:41 | 136 | let mut block = Box::new(rx) as Box>; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 136 | let mut block = Box::new(rx) as Box>; | +++ warning: trait objects without an explicit `dyn` are deprecated --> tests/unsync.rs:214:23 | 214 | type FUTURE = Box>; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 214 | type FUTURE = Box>; | +++ warning: trait objects without an explicit `dyn` are deprecated --> tests/unsync.rs:237:45 | 237 | let make_test_future = |reverse| -> Box, Error=()>> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is an object-safe trait, use `dyn` | 237 | let make_test_future = |reverse| -> Box, Error=()>> { | +++ warning: field `done` is never read --> tests/unsync.rs:161:9 | 158 | struct Dead { | ---- field in this struct ... 161 | done: oneshot::Sender<()>, | ^^^^ | = note: `Dead` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis = note: `#[warn(dead_code)]` on by default warning: unused `IterOk` in tuple element 0 that must be used --> tests/unsync.rs:91:5 | 91 | / lazy(move || { 92 | | iter_ok(vec![1, 2, 3]) 93 | | .forward(tx) 94 | | .map_err(|e: SendError| panic!("{}", e)) ... | 97 | | })) 98 | | }).wait().unwrap(); | |______________________^ | = note: streams do nothing unless polled = note: `#[warn(unused_must_use)]` on by default warning: unused `IterOk` in tuple element 0 that must be used --> tests/unsync.rs:104:5 | 104 | / lazy(move || { 105 | | iter_ok(vec![1, 2, 3]) 106 | | .forward(tx) 107 | | .map_err(|e: SendError| panic!("{}", e)) ... | 110 | | })) 111 | | }).wait().unwrap(); | |______________________^ | = note: streams do nothing unless polled Running `/usr/bin/rustc --crate-name eventual --edition=2015 tests/eventual.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --test --cfg 'feature="default"' --cfg 'feature="use_std"' --cfg 'feature="with-deprecated"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "use_std", "with-deprecated"))' -C metadata=9273a60d9bac06ec -C extra-filename=-9273a60d9bac06ec --out-dir /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/libfutures-45f9346f67cfec8c.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` warning: `futures` (test "bilock") generated 3 warnings (2 duplicates) (run `cargo fix --test "bilock"` to apply 1 suggestion) Running `/usr/bin/rustc --crate-name unsync_oneshot --edition=2015 tests/unsync-oneshot.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --test --cfg 'feature="default"' --cfg 'feature="use_std"' --cfg 'feature="with-deprecated"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "use_std", "with-deprecated"))' -C metadata=b8118546f4cffdc7 -C extra-filename=-b8118546f4cffdc7 --out-dir /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/libfutures-45f9346f67cfec8c.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` warning: field `done` is never read --> tests/unsync-oneshot.rs:83:9 | 80 | struct Dead { | ---- field in this struct ... 83 | done: oneshot::Sender<()>, | ^^^^ | = note: `Dead` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis = note: `#[warn(dead_code)]` on by default warning: field `done` is never read --> tests/unsync-oneshot.rs:145:9 | 142 | struct Dead { | ---- field in this struct ... 145 | done: oneshot::Sender<()>, | ^^^^ | = note: `Dead` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis Running `/usr/bin/rustc --crate-name ready_queue --edition=2015 tests/ready_queue.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --test --cfg 'feature="default"' --cfg 'feature="use_std"' --cfg 'feature="with-deprecated"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "use_std", "with-deprecated"))' -C metadata=9c2a6d78566d9775 -C extra-filename=-9c2a6d78566d9775 --out-dir /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/libfutures-45f9346f67cfec8c.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` warning: trait `AssertSendSync` is never used --> tests/ready_queue.rs:11:7 | 11 | trait AssertSendSync: Send + Sync {} | ^^^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default warning: `futures` (test "channel") generated 4 warnings (1 duplicate) (run `cargo fix --test "channel"` to apply 3 suggestions) Running `/usr/bin/rustc --crate-name unfold --edition=2015 tests/unfold.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --test --cfg 'feature="default"' --cfg 'feature="use_std"' --cfg 'feature="with-deprecated"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "use_std", "with-deprecated"))' -C metadata=5345c2ecb8011be5 -C extra-filename=-5345c2ecb8011be5 --out-dir /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/libfutures-45f9346f67cfec8c.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` warning: `futures` (test "recurse") generated 1 warning (run `cargo fix --test "recurse"` to apply 1 suggestion) Running `/usr/bin/rustc --crate-name futures --edition=2015 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --test --cfg 'feature="default"' --cfg 'feature="use_std"' --cfg 'feature="with-deprecated"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "use_std", "with-deprecated"))' -C metadata=db76c702beb403d0 -C extra-filename=-db76c702beb403d0 --out-dir /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` warning: `futures` (test "unfold") generated 2 warnings (2 duplicates) warning: `futures` (test "futures_unordered") generated 8 warnings (2 duplicates) (run `cargo fix --test "futures_unordered"` to apply 6 suggestions) warning: `futures` (test "eager_drop") generated 2 warnings (run `cargo fix --test "eager_drop"` to apply 1 suggestion) warning: `futures` (test "futures_ordered") generated 8 warnings (2 duplicates) (run `cargo fix --test "futures_ordered"` to apply 6 suggestions) warning: `futures` (lib test) generated 58 warnings (58 duplicates) warning: `futures` (test "ready_queue") generated 1 warning warning: `futures` (test "sink") generated 3 warnings (2 duplicates) (run `cargo fix --test "sink"` to apply 1 suggestion) warning: `futures` (test "unsync-oneshot") generated 4 warnings (2 duplicates) warning: `futures` (test "shared") generated 5 warnings (2 duplicates) (run `cargo fix --test "shared"` to apply 3 suggestions) warning: `futures` (test "unsync") generated 7 warnings (2 duplicates) (run `cargo fix --test "unsync"` to apply 2 suggestions) warning: `futures` (test "oneshot") generated 4 warnings (2 duplicates) warning: `futures` (test "mpsc") generated 9 warnings (1 duplicate) (run `cargo fix --test "mpsc"` to apply 1 suggestion) warning: `futures` (test "stream") generated 9 warnings (2 duplicates) (run `cargo fix --test "stream"` to apply 7 suggestions) warning: `futures` (test "all") generated 3 warnings (2 duplicates) (run `cargo fix --test "all"` to apply 1 suggestion) warning: `futures` (test "eventual") generated 2 warnings (2 duplicates) Finished `rpm` profile [optimized + debuginfo] target(s) in 12.49s Running `/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/futures-db76c702beb403d0` running 1 test test lock::tests::smoke ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running `/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/all-27d1b8f7f574ed6a` running 12 tests test collect_collects ... ok test option ... ok test flatten ... ok test result_smoke ... ok test join_incomplete ... ok test join_cancels ... ok test select_cancels ... ok test smoke_oneshot ... ok test spawn_does_unsize ... ok test test_empty ... ok test test_ok ... ok test select2 ... ok test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running `/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/bilock-7f27821326b6b365` running 2 tests test smoke ... ok test concurrent ... ok test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running `/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/buffer_unordered-61e91af97e4afb69` running 1 test test works ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running `/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/channel-bd2e0e4ab1397e40` running 4 tests test drop_order ... ok test drop_rx ... ok test drop_sender ... ok test sequence ... ok test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running `/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/eager_drop-0161ca12b95f72b5` running 3 tests test and_then_drops_eagerly ... ok test map_err ... ok test map ... ok test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running `/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/eventual-9273a60d9bac06ec` running 23 tests test cancel1 ... ok test join3 ... ok test and_then2 ... ok test and_then1 ... ok test join2 ... ok test map_err2 ... ok test map_err1 ... ok test join1 ... ok test map_err3 ... ok test oneshot2 ... ok test oneshot1 ... ok test join4 ... ok test join5 ... ok test oneshot4 ... ok test oneshot3 ... ok test oneshot6 ... ok test oneshot5 ... ok test select2 ... ok test select1 ... ok test or_else2 ... ok test or_else1 ... ok test select3 ... ok test select4 ... ok test result: ok. 23 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.58s Running `/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/fuse-a5c7f285f79138c0` running 2 tests test fuse ... ok test fuse_is_done ... ok test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running `/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/future_flatten_stream-72189005cdfda646` running 2 tests test failed_future ... ok test successful_future ... ok test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running `/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/futures_ordered-ab4b77624ec02ea7` running 4 tests test queue_never_unblocked ... ok test from_iterator ... ok test works_2 ... ok test works_1 ... ok test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running `/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/futures_unordered-493f816ca9fc53af` running 6 tests test finished_future_ok ... ok test works_1 ... ok test from_iterator ... ok test iter_mut_len ... ok test works_2 ... ok test iter_mut_cancel ... ok test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running `/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/inspect-9f744d2be3a15751` running 1 test test smoke ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running `/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/mpsc-883abf758ca070f5` running 18 tests test recv_close_gets_none ... ok test send_recv ... ok test send_recv_no_buffer ... ok test send_shared_recv ... ok test send_recv_threads ... ok test spawn_sends_items ... ok test spawn_kill_dead_stream ... ok test send_recv_threads_no_capacity ... ok test try_send_fail ... ok test tx_close_gets_none ... ok test try_send_2 ... ok test stress_shared_unbounded ... ok test try_send_1 ... ok test stress_receiver_multi_task_bounded_hard ... ok test stress_poll_ready ... ok test stress_shared_bounded_hard ... ok test stress_close_receiver ... ok test stress_drop_sender ... ok test result: ok. 18 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.97s Running `/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/mpsc_close-944be6f0070852fa` running 1 test test smoke ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running `/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/oneshot-36100822f0504baf` running 10 tests test close ... ok test is_canceled ... ok test cancel_notifies ... ok test smoke_poll ... ok test spawn_kill_dead_stream ... ok test spawn_sends_items ... ok test close_wakes ... ok test cancel_sends ... ok test spawn_dont_kill_forgot_dead_stream ... ok test cancel_lots ... ok test result: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.24s Running `/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/ready_queue-9c2a6d78566d9775` running 5 tests test basic_usage ... ok test dropping_ready_queue ... ok test resolving_errors ... ok test panicking_future_dropped ... ok test stress ... ok test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.41s Running `/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/recurse-e8162ce3bab74641` running 1 test test lots ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running `/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/select_all-00c330ae8d4b666f` running 1 test test smoke ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running `/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/select_ok-897065cd6143da78` running 2 tests test ignore_err ... ok test last_err ... ok test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running `/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/shared-fe944f34f801fe83` running 9 tests test drop_in_poll ... ok test peek ... ok test recursive_poll ... ok test polled_then_ignored ... ok test recursive_poll_with_unpark ... ok test one_thread ... ok test two_threads ... ok test drop_on_one_task_ok ... ok test many_threads ... ok test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.08s Running `/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/sink-5c43998e944f6005` running 14 tests test buffer ... ok test fanout_smoke ... ok test map_err ... ok test from_err ... ok test buffer_noop ... ok test fanout_backpressure ... ok test mpsc_blocking_start_send ... ok test send ... ok test vec_sink ... ok test send_all ... ok test with_as_map ... ok test with_flat_map ... ok test with_flush ... ok test with_flush_propagate ... ok test result: ok. 14 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running `/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/split-700766cd51a7f0b6` running 1 test test test_split ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running `/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/stream-4d88d9485dbe5bbd` running 32 tests test concat2 ... ok test concat ... ok test filter_map ... ok test and_then ... ok test buffered ... ok test forward ... ok test chunks_panic_on_cap_zero - should panic ... ok test fuse ... ok test filter ... ok test flatten ... ok test from_err ... ok test fold ... ok test chunks ... ok test inspect_err ... ok test select ... ok test or_else ... ok test map_err ... ok test peek ... ok test peekable ... ok test skip_passes_errors_through ... ok test skip ... ok test inspect ... ok test stream_poll_fn ... ok test skip_while ... ok test take_passes_errors_through ... ok test map ... ok test take_while ... ok test then ... ok test take ... ok test unordered ... ok test wait ... ok test zip ... ok test result: ok. 32 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s Running `/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/stream_catch_unwind-61e88099de99391c` running 2 tests test no_panic ... ok test panic_in_the_middle_of_the_stream ... ok test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running `/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/unfold-5345c2ecb8011be5` running 2 tests test unfold1 ... ok test unfold_err1 ... ok test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s Running `/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/unsync-449993bc3af62066` running 13 tests test mpsc_backpressure ... ok test mpsc_recv_unpark ... ok test mpsc_rx_end ... ok test mpsc_rx_notready ... ok test dropped_sender_of_unused_channel_notifies_receiver ... ok test mpsc_send_recv ... ok test mpsc_tx_clone_weak_rc ... ok test mpsc_send_unpark ... ok test mpsc_tx_err ... ok test mpsc_tx_notready ... ok test mpsc_unbounded ... ok test spawn_sends_items ... ok test spawn_kill_dead_stream ... ok test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s Running `/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/unsync_oneshot-b8118546f4cffdc7` running 9 tests test canceled ... ok test smoke ... ok test is_canceled ... ok test poll_cancel ... ok test spawn_sends_items ... ok test spawn_kill_dead_stream ... ok test tx_dropped_rx_unparked ... ok test tx_complete_rx_unparked ... ok test spawn_dont_kill_forgot_dead_stream ... ok test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.00s Doc-tests futures Running `/usr/bin/rustdoc --edition=2015 --crate-type lib --color auto --crate-name futures --test src/lib.rs --test-run-directory /home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19 -L dependency=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/rust-futures01-0.1.19-build/futures-0.1.19/target/rpm/deps/libfutures-45f9346f67cfec8c.rlib -C embed-bitcode=no --cfg 'feature="default"' --cfg 'feature="use_std"' --cfg 'feature="with-deprecated"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "use_std", "with-deprecated"))' --error-format human` running 58 tests test src/future/mod.rs - future::Future::select (line 586) - compile ... ok test src/stream/mod.rs - stream::Stream::filter_map (line 395) ... FAILED test src/future/result.rs - future::result_::err (line 59) ... ok test src/future/mod.rs - future::Future::select (line 609) ... ok test src/future/mod.rs - future::Future::select2 (line 649) ... ok test src/future/mod.rs - future::Future::and_then (line 511) ... ok test src/future/result.rs - future::result_::ok (line 43) ... ok test src/lib.rs - prelude (line 253) ... ok test src/future/mod.rs - future::Future::into_stream (line 763) ... ok test src/future/loop_fn.rs - future::loop_fn::loop_fn (line 39) ... ok test src/task_impl/mod.rs - task_impl::UnsafeNotify::drop_raw (line 553) ... ignored test src/future/mod.rs - future::Future::boxed (line 316) ... ok test src/future/mod.rs - future::Future::fuse (line 884) ... ok test src/future/mod.rs - future::Future::from_err (line 433) ... ok test src/future/result.rs - future::result_::result (line 25) ... ok test src/future/poll_fn.rs - future::poll_fn::poll_fn (line 20) ... ok test src/future/mod.rs - future::Future::flatten (line 811) ... ok test src/future/mod.rs - future::Future::join (line 691) ... ok test src/future/mod.rs - future::Future::inspect (line 914) ... ok test src/future/mod.rs - future::Future::map (line 362) ... ok test src/stream/mod.rs - stream::Stream::filter (line 365) ... ok test src/future/mod.rs - future::Future::or_else (line 552) ... ok test src/future/mod.rs - future::Future::map_err (line 403) ... ok test src/future/mod.rs - future::Future::flatten (line 799) ... ok test src/future/join_all.rs - future::join_all::join_all (line 54) ... ok test src/future/mod.rs - future::Future::map (line 351) ... ok test src/stream/iter_ok.rs - stream::iter_ok::iter_ok (line 22) ... ok test src/lib.rs - (line 35) ... ok test src/future/lazy.rs - future::lazy::lazy (line 34) ... ok test src/stream/mod.rs - stream::Stream::by_ref (line 843) ... ok test src/future/mod.rs - future::Future::flatten_stream (line 843) ... ok test src/future/mod.rs - future::Future::join (line 705) ... ok test src/stream/iter.rs - stream::iter::iter (line 20) ... ok test src/future/mod.rs - future::Future::then (line 467) ... ok test src/stream/mod.rs - stream::Stream::and_then (line 480) ... ok test src/stream/mod.rs - stream::Stream::boxed (line 263) ... ok test src/future/mod.rs - future::Future::catch_unwind (line 947) ... ok test src/stream/mod.rs - stream::Stream::fold (line 659) ... ok test src/future/mod.rs - future::Future::map_err (line 393) ... ok test src/stream/mod.rs - stream::Stream::catch_unwind (line 883) ... ok test src/stream/mod.rs - stream::Stream::map (line 309) ... ok test src/stream/mod.rs - stream::Stream::map_err (line 335) ... ok test src/stream/iter_result.rs - stream::iter_result::iter_result (line 19) ... ok test src/future/mod.rs - future::Future::shared (line 984) ... ok test src/sink/mod.rs - sink::Sink::with_flat_map (line 339) ... ok test src/stream/mod.rs - stream::Stream::concat2 (line 581) ... ok test src/stream/mod.rs - stream::Stream::flatten (line 684) ... ok test src/future/mod.rs - future::Future::shared (line 995) ... ok test src/stream/mod.rs - stream::Stream::collect (line 544) ... ok test src/stream/poll_fn.rs - stream::poll_fn::poll_fn (line 20) ... ok test src/future/shared.rs - future::shared (line 6) ... ok test src/stream/mod.rs - stream::Stream::chain (line 976) ... ok test src/stream/once.rs - stream::once::once (line 13) ... ok test src/stream/mod.rs - stream::Stream::then (line 434) ... ok test src/stream/repeat.rs - stream::repeat::repeat (line 27) ... ok test src/stream/mod.rs - stream::Stream::concat (line 614) ... ok test src/stream/unfold.rs - stream::unfold::unfold (line 31) ... ok test src/sync/oneshot.rs - sync::oneshot::channel (line 82) ... ok failures: ---- src/stream/mod.rs - stream::Stream::filter_map (line 395) stdout ---- error: this operation will panic at runtime --> src/stream/mod.rs:402:8 | 10 | if x % 0 == 2 { | ^^^^^ attempt to calculate the remainder of `_` with a divisor of zero | = note: `#[deny(unconditional_panic)]` on by default error: aborting due to 1 previous error Couldn't compile the test. failures: src/stream/mod.rs - stream::Stream::filter_map (line 395) test result: FAILED. 56 passed; 1 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.65s error: doctest failed, to rerun pass `--doc` error: 1 target failed: `--doc` error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.qVPxWx (%check) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.qVPxWx (%check) I: [iurt_root_command] ERROR: chroot