[Pkg-rust-maintainers] Bug#997112: cargo: FTBFS: warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string()

Lucas Nussbaum lucas at debian.org
Sat Oct 23 19:30:35 BST 2021


Source: cargo
Version: 0.47.0-3
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> failures:
> 
> ---- build_script::custom_build_script_failed stdout ----
> running `/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/cargo build -v`
> thread 'build_script::custom_build_script_failed' panicked at '
> Expected: execs
>     but: differences:
>   6 - |  process didn't exit successfully: `[..]/build-script-build` (exit code: 101)|
>     + |  process didn't exit successfully: `/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/cit/t344/foo/target/debug/build/foo-68beec9863479aa3/build-script-build` (exit status: 101)|
> 
> 
> other output:
> ``', crates/cargo-test-support/src/lib.rs:832:13
> stack backtrace:
>    0: rust_begin_unwind
>              at /usr/src/rustc-1.56.0/library/std/src/panicking.rs:517:5
>    1: std::panicking::begin_panic_fmt
>              at /usr/src/rustc-1.56.0/library/std/src/panicking.rs:460:5
>    2: cargo_test_support::Execs::run
>              at /usr/src/cargo-0.47.0/crates/cargo-test-support/src/lib.rs:832:13
>    3: testsuite::build_script::custom_build_script_failed
>              at /usr/src/cargo-0.47.0/tests/testsuite/build_script.rs:31:5
>    4: testsuite::build_script::custom_build_script_failed::{{closure}}
>              at /usr/src/cargo-0.47.0/tests/testsuite/build_script.rs:14:1
>    5: core::ops::function::FnOnce::call_once
>              at /usr/src/rustc-1.56.0/library/core/src/ops/function.rs:227:5
>    6: core::ops::function::FnOnce::call_once
>              at /usr/src/rustc-1.56.0/library/core/src/ops/function.rs:227:5
> note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
> 
> ---- test::can_not_mix_doc_tests_and_regular_tests stdout ----
> running `/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/cargo test`
> thread 'test::can_not_mix_doc_tests_and_regular_tests' panicked at '
> Expected: execs
>     but: differences:
>   4 - |test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out|
>     + |test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s|
> 
>  10 - |test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out|
>     + |test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.45s|
> 
> 
> other output:
> `   Compiling foo v0.0.1 (/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/cit/t1681/foo)
>     Finished test [unoptimized + debuginfo] target(s) in 0.82s
>      Running target/debug/deps/foo-d64ef320367feeb7
>    Doc-tests foo
> `', crates/cargo-test-support/src/lib.rs:832:13
> stack backtrace:
>    0: rust_begin_unwind
>              at /usr/src/rustc-1.56.0/library/std/src/panicking.rs:517:5
>    1: std::panicking::begin_panic_fmt
>              at /usr/src/rustc-1.56.0/library/std/src/panicking.rs:460:5
>    2: cargo_test_support::Execs::run
>              at /usr/src/cargo-0.47.0/crates/cargo-test-support/src/lib.rs:832:13
>    3: testsuite::test::can_not_mix_doc_tests_and_regular_tests
>              at /usr/src/cargo-0.47.0/tests/testsuite/test.rs:3526:5
>    4: testsuite::test::can_not_mix_doc_tests_and_regular_tests::{{closure}}
>              at /usr/src/cargo-0.47.0/tests/testsuite/test.rs:3508:1
>    5: core::ops::function::FnOnce::call_once
>              at /usr/src/rustc-1.56.0/library/core/src/ops/function.rs:227:5
>    6: core::ops::function::FnOnce::call_once
>              at /usr/src/rustc-1.56.0/library/core/src/ops/function.rs:227:5
> note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
> 
> ---- test::cargo_test_quiet_with_harness stdout ----
> running `/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/cargo test -q`
> thread 'test::cargo_test_quiet_with_harness' panicked at '
> Expected: execs
>     but: differences:
>   3 - |test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out|
>     + |test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s|
> 
> 
> other output:
> ``', crates/cargo-test-support/src/lib.rs:832:13
> stack backtrace:
>    0: rust_begin_unwind
>              at /usr/src/rustc-1.56.0/library/std/src/panicking.rs:517:5
>    1: std::panicking::begin_panic_fmt
>              at /usr/src/rustc-1.56.0/library/std/src/panicking.rs:460:5
>    2: cargo_test_support::Execs::run
>              at /usr/src/cargo-0.47.0/crates/cargo-test-support/src/lib.rs:832:13
>    3: testsuite::test::cargo_test_quiet_with_harness
>              at /usr/src/cargo-0.47.0/tests/testsuite/test.rs:171:5
>    4: testsuite::test::cargo_test_quiet_with_harness::{{closure}}
>              at /usr/src/cargo-0.47.0/tests/testsuite/test.rs:145:1
>    5: core::ops::function::FnOnce::call_once
>              at /usr/src/rustc-1.56.0/library/core/src/ops/function.rs:227:5
>    6: core::ops::function::FnOnce::call_once
>              at /usr/src/rustc-1.56.0/library/core/src/ops/function.rs:227:5
> note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
> 
> ---- test::test_filtered_excludes_compiling_examples stdout ----
> running `/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/cargo test -v foo`
> thread 'test::test_filtered_excludes_compiling_examples' panicked at '
> Expected: execs
>     but: differences:
>   4 - |test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out|
>     + |test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s|
> 
> 
> other output:
> `   Compiling foo v0.0.1 (/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/cit/t1749/foo)
>      Running `rustc --crate-name foo src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --emit=dep-info,link -Cembed-bitcode=no -C debuginfo=2 --test -C metadata=d64ef320367feeb7 -C extra-filename=-d64ef320367feeb7 --out-dir /<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/cit/t1749/foo/target/debug/deps -L dependency=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/cit/t1749/foo/target/debug/deps`
>     Finished test [unoptimized + debuginfo] target(s) in 1.18s
>      Running `/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/cit/t1749/foo/target/debug/deps/foo-d64ef320367feeb7 foo`
> `', crates/cargo-test-support/src/lib.rs:832:13
> stack backtrace:
>    0: rust_begin_unwind
>              at /usr/src/rustc-1.56.0/library/std/src/panicking.rs:517:5
>    1: std::panicking::begin_panic_fmt
>              at /usr/src/rustc-1.56.0/library/std/src/panicking.rs:460:5
>    2: cargo_test_support::Execs::run
>              at /usr/src/cargo-0.47.0/crates/cargo-test-support/src/lib.rs:832:13
>    3: testsuite::test::test_filtered_excludes_compiling_examples
>              at /usr/src/cargo-0.47.0/tests/testsuite/test.rs:1546:5
>    4: testsuite::test::test_filtered_excludes_compiling_examples::{{closure}}
>              at /usr/src/cargo-0.47.0/tests/testsuite/test.rs:1536:1
>    5: core::ops::function::FnOnce::call_once
>              at /usr/src/rustc-1.56.0/library/core/src/ops/function.rs:227:5
>    6: core::ops::function::FnOnce::call_once
>              at /usr/src/rustc-1.56.0/library/core/src/ops/function.rs:227:5
> note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
> 
> 
> failures:
>     build_script::custom_build_script_failed
>     test::can_not_mix_doc_tests_and_regular_tests
>     test::cargo_test_quiet_with_harness
>     test::test_filtered_excludes_compiling_examples
> 
> test result: FAILED. 1908 passed; 4 failed; 1 ignored; 0 measured; 0 filtered out; finished in 286.73s
> 
> error: test failed, to rerun pass '--test testsuite'
> make[1]: *** [debian/rules:46: override_dh_auto_test-arch] Error 101


The full build log is available from:
http://qa-logs.debian.net/2021/10/23/cargo_0.47.0-3_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the Pkg-rust-maintainers mailing list