D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/rust-futures01-0.1.19-1.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.gynarh + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/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 + rm -rf /home/pterjan/rpmbuild/BUILD/futures-0.1.19-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/futures-0.1.19-SPECPARTS + /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.3ifvLN + umask 022 + cd /home/pterjan/rpmbuild/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 Compiling futures v0.1.19 (/home/pterjan/rpmbuild/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"' -C metadata=05a0cc63e493ad01 -C extra-filename=-05a0cc63e493ad01 --out-dir /home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/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 `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 `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: use `let _ = ...` to ignore the expression or result = note: `#[warn(dropping_copy_types)]` on by default 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.76s + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.tIVtEh + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' /home/pterjan/rpmbuild/BUILDROOT/rust-futures01-0.1.19-1.mga10.x86_64 '!=' / ']' + rm -rf /home/pterjan/rpmbuild/BUILDROOT/rust-futures01-0.1.19-1.mga10.x86_64 ++ dirname /home/pterjan/rpmbuild/BUILDROOT/rust-futures01-0.1.19-1.mga10.x86_64 + mkdir -p /home/pterjan/rpmbuild/BUILDROOT + mkdir /home/pterjan/rpmbuild/BUILDROOT/rust-futures01-0.1.19-1.mga10.x86_64 + 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/BUILDROOT/rust-futures01-0.1.19-1.mga10.x86_64/usr/share/cargo/registry/futures-0.1.19 + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILDROOT/rust-futures01-0.1.19-1.mga10.x86_64/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/BUILDROOT/rust-futures01-0.1.19-1.mga10.x86_64/usr/share/cargo/registry/futures-0.1.19 warning: no (git) VCS found for `/home/pterjan/rpmbuild/BUILD/futures-0.1.19` + /usr/bin/mv Cargo.toml.deps Cargo.toml + /usr/bin/cp -a Cargo.toml /home/pterjan/rpmbuild/BUILDROOT/rust-futures01-0.1.19-1.mga10.x86_64/usr/share/cargo/registry/futures-0.1.19/Cargo.toml + /usr/bin/rm -f /home/pterjan/rpmbuild/BUILDROOT/rust-futures01-0.1.19-1.mga10.x86_64/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 Executing(%check): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.WAKCe7 + umask 022 + cd /home/pterjan/rpmbuild/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: 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 `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 `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: use `let _ = ...` to ignore the expression or result = note: `#[warn(dropping_copy_types)]` on by default 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/futures-0.1.19) 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"' -C metadata=1000914fb210ca0f -C extra-filename=-1000914fb210ca0f --out-dir /home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps/libfutures-05a0cc63e493ad01.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` 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"' -C metadata=10f3f31f014b2818 -C extra-filename=-10f3f31f014b2818 --out-dir /home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps/libfutures-05a0cc63e493ad01.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` 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"' -C metadata=f53d843a7585a00c -C extra-filename=-f53d843a7585a00c --out-dir /home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps/libfutures-05a0cc63e493ad01.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"' -C metadata=01394a9860d0a08e -C extra-filename=-01394a9860d0a08e --out-dir /home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps/libfutures-05a0cc63e493ad01.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"' -C metadata=bcb38cf412d860f9 -C extra-filename=-bcb38cf412d860f9 --out-dir /home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps/libfutures-05a0cc63e493ad01.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"' -C metadata=ed363ee4927df697 -C extra-filename=-ed363ee4927df697 --out-dir /home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps/libfutures-05a0cc63e493ad01.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` 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"' -C metadata=f0dde4fb809cfbf7 -C extra-filename=-f0dde4fb809cfbf7 --out-dir /home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps/libfutures-05a0cc63e493ad01.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"' -C metadata=f3d30e7780dd8bf2 -C extra-filename=-f3d30e7780dd8bf2 --out-dir /home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps/libfutures-05a0cc63e493ad01.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"' -C metadata=baca44efe0db4bbd -C extra-filename=-baca44efe0db4bbd --out-dir /home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps/libfutures-05a0cc63e493ad01.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"' -C metadata=238a8eec8f6cd76d -C extra-filename=-238a8eec8f6cd76d --out-dir /home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps/libfutures-05a0cc63e493ad01.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` 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"' -C metadata=ef84081a03c4396f -C extra-filename=-ef84081a03c4396f --out-dir /home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps/libfutures-05a0cc63e493ad01.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` 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"' -C metadata=c85b0468bda5244f -C extra-filename=-c85b0468bda5244f --out-dir /home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps/libfutures-05a0cc63e493ad01.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"' -C metadata=0f4634d2fee8a7c9 -C extra-filename=-0f4634d2fee8a7c9 --out-dir /home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps/libfutures-05a0cc63e493ad01.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` 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"' -C metadata=1d4b1a02b73ab945 -C extra-filename=-1d4b1a02b73ab945 --out-dir /home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps/libfutures-05a0cc63e493ad01.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"' -C metadata=69f10336cc5547bc -C extra-filename=-69f10336cc5547bc --out-dir /home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps/libfutures-05a0cc63e493ad01.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"' -C metadata=2aebd9673365ab5b -C extra-filename=-2aebd9673365ab5b --out-dir /home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps/libfutures-05a0cc63e493ad01.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` 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: 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: 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: 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/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/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/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_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/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/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 `AssertSendSync` is never used --> tests/ready_queue.rs:11:7 | 11 | trait AssertSendSync: Send + Sync {} | ^^^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default 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: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: 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: use `let _ = ...` to ignore the expression or result = note: `#[warn(dropping_copy_types)]` on by default 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/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>) | +++ 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 warning: `futures` (test "unfold") generated 2 warnings (2 duplicates) 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"' -C metadata=638a33214eaaa09a -C extra-filename=-638a33214eaaa09a --out-dir /home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps/libfutures-05a0cc63e493ad01.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"' -C metadata=84452d6ba09513ea -C extra-filename=-84452d6ba09513ea --out-dir /home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps/libfutures-05a0cc63e493ad01.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` 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_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: 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); | +++ 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"' -C metadata=bc3c3dda8b971903 -C extra-filename=-bc3c3dda8b971903 --out-dir /home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps/libfutures-05a0cc63e493ad01.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"' -C metadata=b520fad3b7860514 -C extra-filename=-b520fad3b7860514 --out-dir /home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps/libfutures-05a0cc63e493ad01.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` 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"' -C metadata=5c813fe18db69499 -C extra-filename=-5c813fe18db69499 --out-dir /home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps/libfutures-05a0cc63e493ad01.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/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::>>(); | +++ 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 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"' -C metadata=aa1a74adab1c794c -C extra-filename=-aa1a74adab1c794c --out-dir /home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps/libfutures-05a0cc63e493ad01.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 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"' -C metadata=819967f7dff835ae -C extra-filename=-819967f7dff835ae --out-dir /home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps/libfutures-05a0cc63e493ad01.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> { | +++ 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"' -C metadata=a6733116529aab61 -C extra-filename=-a6733116529aab61 --out-dir /home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps/libfutures-05a0cc63e493ad01.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` warning: `futures` (test "channel") generated 4 warnings (run `cargo fix --test "channel"` to apply 3 suggestions) 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"' -C metadata=82ea55b6954e4072 -C extra-filename=-82ea55b6954e4072 --out-dir /home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps/libfutures-05a0cc63e493ad01.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` 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 `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: use `let _ = ...` to ignore the expression or result = note: `#[warn(dropping_copy_types)]` on by default 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<(), ()>` | = note: use `let _ = ...` to ignore the expression or result 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>` | = note: use `let _ = ...` to ignore the expression or result 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: use `let _ = ...` to ignore the expression or result 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"' -C metadata=a8dfc8840545b72c -C extra-filename=-a8dfc8840545b72c --out-dir /home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps/libfutures-05a0cc63e493ad01.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` warning: `futures` (test "futures_unordered") generated 8 warnings (1 duplicate) (run `cargo fix --test "futures_unordered"` to apply 7 suggestions) 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"' -C metadata=e312989beabac8b7 -C extra-filename=-e312989beabac8b7 --out-dir /home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` warning: `futures` (test "eager_drop") generated 2 warnings (2 duplicates) warning: `futures` (test "ready_queue") generated 1 warning warning: `futures` (test "fuse") generated 2 warnings (2 duplicates) warning: `futures` (test "recurse") generated 1 warning (run `cargo fix --test "recurse"` 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 "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 "unsync") generated 7 warnings (2 duplicates) (run `cargo fix --test "unsync"` to apply 2 suggestions) warning: `futures` (test "shared") generated 5 warnings (2 duplicates) (run `cargo fix --test "shared"` to apply 3 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 17.18s Running `/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps/futures-e312989beabac8b7` 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/futures-0.1.19/target/rpm/deps/all-638a33214eaaa09a` running 12 tests test collect_collects ... ok test option ... ok test select_cancels ... ok test test_ok ... ok test spawn_does_unsize ... ok test result_smoke ... ok test flatten ... ok test test_empty ... ok test smoke_oneshot ... ok test join_cancels ... ok test join_incomplete ... 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/futures-0.1.19/target/rpm/deps/bilock-baca44efe0db4bbd` 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/futures-0.1.19/target/rpm/deps/buffer_unordered-10f3f31f014b2818` 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/futures-0.1.19/target/rpm/deps/channel-f3d30e7780dd8bf2` running 4 tests test drop_order ... ok test drop_sender ... ok test sequence ... ok test drop_rx ... ok test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s Running `/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps/eager_drop-2aebd9673365ab5b` running 3 tests test map ... ok test and_then_drops_eagerly ... ok test map_err ... ok test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.05s Running `/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps/eventual-82ea55b6954e4072` running 23 tests test cancel1 ... ok test join1 ... ok test and_then1 ... ok test join2 ... ok test join4 ... ok test and_then2 ... ok test map_err1 ... ok test join3 ... ok test or_else1 ... ok test oneshot6 ... ok test map_err2 ... ok test oneshot5 ... ok test oneshot4 ... ok test oneshot3 ... ok test join5 ... ok test map_err3 ... ok test oneshot1 ... ok test or_else2 ... ok test oneshot2 ... ok test select1 ... ok test select3 ... ok test select2 ... ok test select4 ... ok test result: ok. 23 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.39s Running `/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps/fuse-a8dfc8840545b72c` running 2 tests test fuse_is_done ... ok test fuse ... ok test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running `/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps/future_flatten_stream-ed363ee4927df697` running 2 tests test successful_future ... ok test failed_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/futures-0.1.19/target/rpm/deps/futures_ordered-84452d6ba09513ea` running 4 tests test from_iterator ... ok test works_1 ... ok test queue_never_unblocked ... ok test works_2 ... ok test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s Running `/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps/futures_unordered-bcb38cf412d860f9` running 6 tests test iter_mut_len ... ok test works_1 ... ok test finished_future_ok ... ok test iter_mut_cancel ... ok test from_iterator ... ok test works_2 ... ok test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running `/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps/inspect-f0dde4fb809cfbf7` 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/futures-0.1.19/target/rpm/deps/mpsc-a6733116529aab61` running 18 tests test recv_close_gets_none ... ok test spawn_kill_dead_stream ... ok test spawn_sends_items ... ok test send_shared_recv ... ok test try_send_fail ... ok test send_recv_threads_no_capacity ... ok test send_recv_no_buffer ... ok test tx_close_gets_none ... ok test send_recv ... ok test send_recv_threads ... 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 2.83s Running `/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps/mpsc_close-bc3c3dda8b971903` 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/futures-0.1.19/target/rpm/deps/oneshot-238a8eec8f6cd76d` running 10 tests test is_canceled ... ok test smoke_poll ... ok test close ... ok test spawn_kill_dead_stream ... ok test cancel_notifies ... ok test close_wakes ... ok test spawn_sends_items ... 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 2.95s Running `/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps/ready_queue-1d4b1a02b73ab945` running 5 tests test basic_usage ... ok test resolving_errors ... ok test panicking_future_dropped ... ok test dropping_ready_queue ... ok test stress ... ok test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.48s Running `/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps/recurse-819967f7dff835ae` 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/futures-0.1.19/target/rpm/deps/select_all-aa1a74adab1c794c` 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/futures-0.1.19/target/rpm/deps/select_ok-c85b0468bda5244f` 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/futures-0.1.19/target/rpm/deps/shared-b520fad3b7860514` running 9 tests test drop_in_poll ... ok test peek ... ok test polled_then_ignored ... ok test recursive_poll ... ok test one_thread ... ok test recursive_poll_with_unpark ... ok test drop_on_one_task_ok ... ok test two_threads ... ok test many_threads ... ok test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.09s Running `/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps/sink-1000914fb210ca0f` running 14 tests test buffer ... ok test buffer_noop ... ok test fanout_smoke ... ok test from_err ... ok test map_err ... ok test mpsc_blocking_start_send ... ok test fanout_backpressure ... 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/futures-0.1.19/target/rpm/deps/split-0f4634d2fee8a7c9` 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/futures-0.1.19/target/rpm/deps/stream-69f10336cc5547bc` running 32 tests test chunks_panic_on_cap_zero - should panic ... ok test and_then ... ok test concat ... ok test concat2 ... ok test chunks ... ok test filter_map ... ok test filter ... ok test fold ... ok test buffered ... ok test fuse ... ok test from_err ... ok test map_err ... ok test forward ... ok test peek ... ok test or_else ... ok test map ... ok test inspect_err ... ok test inspect ... ok test select ... ok test skip_passes_errors_through ... ok test stream_poll_fn ... ok test skip ... ok test take_passes_errors_through ... ok test take ... ok test skip_while ... ok test take_while ... ok test then ... ok test flatten ... ok test wait ... ok test peekable ... ok test unordered ... 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/futures-0.1.19/target/rpm/deps/stream_catch_unwind-01394a9860d0a08e` 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/futures-0.1.19/target/rpm/deps/unfold-ef84081a03c4396f` 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.00s Running `/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps/unsync-f53d843a7585a00c` running 13 tests test mpsc_backpressure ... ok test dropped_sender_of_unused_channel_notifies_receiver ... ok test mpsc_rx_notready ... ok test mpsc_recv_unpark ... ok test mpsc_send_recv ... ok test mpsc_rx_end ... ok test mpsc_send_unpark ... ok test mpsc_tx_clone_weak_rc ... 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.00s Running `/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps/unsync_oneshot-5c813fe18db69499` running 9 tests test canceled ... ok test is_canceled ... ok test poll_cancel ... ok test smoke ... ok test spawn_kill_dead_stream ... ok test tx_complete_rx_unparked ... ok test tx_dropped_rx_unparked ... ok test spawn_sends_items ... 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 --crate-name futures --test src/lib.rs --test-run-directory /home/pterjan/rpmbuild/BUILD/futures-0.1.19 -L dependency=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps --extern futures=/home/pterjan/rpmbuild/BUILD/futures-0.1.19/target/rpm/deps/libfutures-05a0cc63e493ad01.rlib -C embed-bitcode=no --cfg 'feature="default"' --cfg 'feature="use_std"' --cfg 'feature="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/mod.rs - future::Future::and_then (line 511) ... ok test src/future/lazy.rs - future::lazy::lazy (line 34) ... ok test src/future/mod.rs - future::Future::from_err (line 433) ... ok test src/future/mod.rs - future::Future::fuse (line 884) ... ok test src/future/mod.rs - future::Future::boxed (line 316) ... ok test src/future/result.rs - future::result_::ok (line 43) ... ok test src/future/loop_fn.rs - future::loop_fn::loop_fn (line 39) ... ok test src/future/result.rs - future::result_::err (line 59) ... ok test src/task_impl/mod.rs - task_impl::UnsafeNotify::drop_raw (line 553) ... ignored test src/stream/iter.rs - stream::iter::iter (line 20) ... ok test src/future/mod.rs - future::Future::inspect (line 914) ... ok test src/future/poll_fn.rs - future::poll_fn::poll_fn (line 20) ... ok test src/future/mod.rs - future::Future::flatten (line 799) ... ok test src/future/mod.rs - future::Future::flatten (line 811) ... ok test src/future/mod.rs - future::Future::join (line 705) ... ok test src/future/mod.rs - future::Future::into_stream (line 763) ... ok test src/future/mod.rs - future::Future::map_err (line 393) ... ok test src/future/join_all.rs - future::join_all::join_all (line 54) ... ok test src/stream/mod.rs - stream::Stream::fold (line 659) ... ok test src/stream/iter_ok.rs - stream::iter_ok::iter_ok (line 22) ... ok test src/lib.rs - prelude (line 253) ... ok test src/future/mod.rs - future::Future::catch_unwind (line 947) ... ok test src/future/mod.rs - future::Future::select (line 609) ... ok test src/future/mod.rs - future::Future::flatten_stream (line 843) ... ok test src/future/mod.rs - future::Future::map_err (line 403) ... ok test src/future/mod.rs - future::Future::join (line 691) ... ok test src/stream/mod.rs - stream::Stream::chain (line 976) ... ok test src/lib.rs - (line 35) ... ok test src/future/result.rs - future::result_::result (line 25) ... ok test src/future/mod.rs - future::Future::or_else (line 552) ... ok test src/stream/mod.rs - stream::Stream::map (line 309) ... ok test src/stream/poll_fn.rs - stream::poll_fn::poll_fn (line 20) ... ok test src/future/mod.rs - future::Future::map (line 351) ... ok test src/stream/mod.rs - stream::Stream::catch_unwind (line 883) ... ok test src/future/mod.rs - future::Future::then (line 467) ... ok test src/stream/iter_result.rs - stream::iter_result::iter_result (line 19) ... ok test src/stream/mod.rs - stream::Stream::map_err (line 335) ... ok test src/stream/once.rs - stream::once::once (line 13) ... ok test src/stream/mod.rs - stream::Stream::concat2 (line 581) ... ok test src/stream/mod.rs - stream::Stream::filter (line 365) ... ok test src/future/mod.rs - future::Future::map (line 362) ... ok test src/stream/mod.rs - stream::Stream::by_ref (line 843) ... ok test src/stream/mod.rs - stream::Stream::then (line 434) ... ok test src/future/mod.rs - future::Future::select2 (line 649) ... ok test src/stream/mod.rs - stream::Stream::concat (line 614) ... ok test src/future/shared.rs - future::shared (line 6) ... ok test src/stream/mod.rs - stream::Stream::and_then (line 480) ... ok test src/sink/mod.rs - sink::Sink::with_flat_map (line 339) ... ok test src/stream/repeat.rs - stream::repeat::repeat (line 27) ... ok test src/stream/unfold.rs - stream::unfold::unfold (line 31) ... ok test src/stream/mod.rs - stream::Stream::boxed (line 263) ... ok test src/stream/mod.rs - stream::Stream::collect (line 544) ... ok test src/sync/oneshot.rs - sync::oneshot::channel (line 82) ... ok test src/future/mod.rs - future::Future::shared (line 995) ... ok test src/future/mod.rs - future::Future::shared (line 984) ... ok test src/stream/mod.rs - stream::Stream::flatten (line 684) ... 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.73s error: doctest failed, to rerun pass `--doc` error: 1 target failed: `--doc` error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.WAKCe7 (%check) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.WAKCe7 (%check) I: [iurt_root_command] ERROR: chroot