Source: rust-bitflags
Version: 1.3.2-2
Severity: serious
Control: tags -1 bookworm-ignore
User: debian...@lists.debian.org
Usertags: regression

Dear maintainer(s),

Your package has an autopkgtest, great. However, it fails. Can you please investigate the situation and fix it? I copied some of the output at the bottom of this report.

The release team has announced [1] that failing autopkgtest on amd64 and arm64 are considered RC in testing. [Release Team member hat on] Because we're currently in the hard freeze for bookworm, I have marked this bug as bookworm-ignore. Targeted fixes are still welcome.

More information about this bug and the reason for filing it can be found on https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

Paul

[1] https://lists.debian.org/debian-devel-announce/2019/07/msg00002.html

https://ci.debian.net/data/autopkgtest/testing/amd64/r/rust-bitflags/32255138/log.gz

Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=glob CARGO_MANIFEST_DIR=/tmp/tmp.u55zB0qp8W/registry/glob-0.3.0 CARGO_PKG_AUTHORS='The Rust Project Developers' CARGO_PKG_DESCRIPTION='Support for matching file paths against Unix shell style patterns. ' CARGO_PKG_HOMEPAGE='https://github.com/rust-lang/glob' CARGO_PKG_LICENSE=MIT/Apache-2.0 CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=glob CARGO_PKG_REPOSITORY='https://github.com/rust-lang/glob' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.3.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=3 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/tmp/tmp.u55zB0qp8W/target/debug/deps:/usr/lib' rustc --crate-name glob /tmp/tmp.u55zB0qp8W/registry/glob-0.3.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=18ed03da62dd1beb -C extra-filename=-18ed03da62dd1beb --out-dir /tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -L dependency=/tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/tmp/tmp.u55zB0qp8W/target/debug/deps --cap-lints warn -C debuginfo=2 --cap-lints warn -C linker=x86_64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /usr/share/cargo/registry/bitflags-1.3.2=/usr/share/cargo/registry/bitflags-1.3.2 --remap-path-prefix /tmp/tmp.u55zB0qp8W/registry=/usr/share/cargo/registry`
warning: trait objects without an explicit `dyn` are deprecated
   --> /usr/share/cargo/registry/glob-0.3.0/src/lib.rs:294:32
    |
294 |     fn cause(&self) -> Option<&Error> {
    |                                ^^^^^
    |
    = note: `#[warn(bare_trait_objects)]` on by default
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
help: use `dyn`
    |
294 -     fn cause(&self) -> Option<&Error> {
294 +     fn cause(&self) -> Option<&dyn Error> {
    |

warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string()
   --> /usr/share/cargo/registry/glob-0.3.0/src/lib.rs:291:20
    |
291 |         self.error.description()
    |                    ^^^^^^^^^^^
    |
    = note: `#[warn(deprecated)]` on by default

warning: `glob` (lib) generated 2 warnings
   Compiling once_cell v1.17.0
Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=once_cell CARGO_MANIFEST_DIR=/tmp/tmp.u55zB0qp8W/registry/once_cell-1.17.0 CARGO_PKG_AUTHORS='Aleksey Kladov <aleksey.kla...@gmail.com>' CARGO_PKG_DESCRIPTION='Single assignment cells and lazy values.' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=once_cell CARGO_PKG_REPOSITORY='https://github.com/matklad/once_cell' CARGO_PKG_RUST_VERSION=1.56 CARGO_PKG_VERSION=1.17.0 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=17 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/tmp/tmp.u55zB0qp8W/target/debug/deps:/usr/lib' rustc --crate-name once_cell --edition=2021 /tmp/tmp.u55zB0qp8W/registry/once_cell-1.17.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="alloc"' --cfg 'feature="default"' --cfg 'feature="race"' --cfg 'feature="std"' -C metadata=de70ba2dc91f60b7 -C extra-filename=-de70ba2dc91f60b7 --out-dir /tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -L dependency=/tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/tmp/tmp.u55zB0qp8W/target/debug/deps --cap-lints warn -C debuginfo=2 --cap-lints warn -C linker=x86_64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /usr/share/cargo/registry/bitflags-1.3.2=/usr/share/cargo/registry/bitflags-1.3.2 --remap-path-prefix /tmp/tmp.u55zB0qp8W/registry=/usr/share/cargo/registry`
   Compiling termcolor v1.1.2
Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=termcolor CARGO_MANIFEST_DIR=/tmp/tmp.u55zB0qp8W/registry/termcolor-1.1.2 CARGO_PKG_AUTHORS='Andrew Gallant <jams...@gmail.com>' CARGO_PKG_DESCRIPTION='A simple cross platform library for writing colored text to a terminal. ' CARGO_PKG_HOMEPAGE='https://github.com/BurntSushi/termcolor' CARGO_PKG_LICENSE='Unlicense OR MIT' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=termcolor CARGO_PKG_REPOSITORY='https://github.com/BurntSushi/termcolor' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=1.1.2 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=2 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/tmp/tmp.u55zB0qp8W/target/debug/deps:/usr/lib' rustc --crate-name termcolor --edition=2018 /tmp/tmp.u55zB0qp8W/registry/termcolor-1.1.2/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=8e29c39ffba1a803 -C extra-filename=-8e29c39ffba1a803 --out-dir /tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -L dependency=/tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/tmp/tmp.u55zB0qp8W/target/debug/deps --cap-lints warn -C debuginfo=2 --cap-lints warn -C linker=x86_64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /usr/share/cargo/registry/bitflags-1.3.2=/usr/share/cargo/registry/bitflags-1.3.2 --remap-path-prefix /tmp/tmp.u55zB0qp8W/registry=/usr/share/cargo/registry`
   Compiling walkdir v2.3.2
Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=walkdir CARGO_MANIFEST_DIR=/tmp/tmp.u55zB0qp8W/registry/walkdir-2.3.2 CARGO_PKG_AUTHORS='Andrew Gallant <jams...@gmail.com>' CARGO_PKG_DESCRIPTION='Recursively walk a directory.' CARGO_PKG_HOMEPAGE='https://github.com/BurntSushi/walkdir' CARGO_PKG_LICENSE=Unlicense/MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=walkdir CARGO_PKG_REPOSITORY='https://github.com/BurntSushi/walkdir' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=2.3.2 CARGO_PKG_VERSION_MAJOR=2 CARGO_PKG_VERSION_MINOR=3 CARGO_PKG_VERSION_PATCH=2 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/tmp/tmp.u55zB0qp8W/target/debug/deps:/usr/lib' rustc --crate-name walkdir --edition=2018 /tmp/tmp.u55zB0qp8W/registry/walkdir-2.3.2/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=445f2ac7b7216d52 -C extra-filename=-445f2ac7b7216d52 --out-dir /tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -L dependency=/tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/tmp/tmp.u55zB0qp8W/target/debug/deps --extern same_file=/tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps/libsame_file-526ffa5e664b3cea.rmeta --cap-lints warn -C debuginfo=2 --cap-lints warn -C linker=x86_64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /usr/share/cargo/registry/bitflags-1.3.2=/usr/share/cargo/registry/bitflags-1.3.2 --remap-path-prefix /tmp/tmp.u55zB0qp8W/registry=/usr/share/cargo/registry` Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=rustversion CARGO_MANIFEST_DIR=/tmp/tmp.u55zB0qp8W/registry/rustversion-1.0.6 CARGO_PKG_AUTHORS='David Tolnay <dtol...@gmail.com>' CARGO_PKG_DESCRIPTION='Conditional compilation according to rustc compiler version' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=rustversion CARGO_PKG_REPOSITORY='https://github.com/dtolnay/rustversion' CARGO_PKG_RUST_VERSION=1.31 CARGO_PKG_VERSION=1.0.6 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=6 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/tmp/tmp.u55zB0qp8W/target/debug/deps:/usr/lib' OUT_DIR=/tmp/tmp.u55zB0qp8W/target/debug/build/rustversion-af70ca9cbb936230/out rustc --crate-name rustversion --edition=2018 /tmp/tmp.u55zB0qp8W/registry/rustversion-1.0.6/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type proc-macro --emit=dep-info,link -C prefer-dynamic -C embed-bitcode=no -C debuginfo=2 -C metadata=0a763140cb017f0f -C extra-filename=-0a763140cb017f0f --out-dir /tmp/tmp.u55zB0qp8W/target/debug/deps -L dependency=/tmp/tmp.u55zB0qp8W/target/debug/deps --extern proc_macro --cap-lints warn`
   Compiling bitflags v1.3.2 (/usr/share/cargo/registry/bitflags-1.3.2)
Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=bitflags CARGO_MANIFEST_DIR=/usr/share/cargo/registry/bitflags-1.3.2 CARGO_PKG_AUTHORS='The Rust Project Developers' CARGO_PKG_DESCRIPTION='A macro to generate structures which behave like bitflags. ' CARGO_PKG_HOMEPAGE='https://github.com/bitflags/bitflags' CARGO_PKG_LICENSE=MIT/Apache-2.0 CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=bitflags CARGO_PKG_REPOSITORY='https://github.com/bitflags/bitflags' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=1.3.2 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=3 CARGO_PKG_VERSION_PATCH=2 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 LD_LIBRARY_PATH='/tmp/tmp.u55zB0qp8W/target/debug/deps:/usr/lib' rustc --crate-name bitflags --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=581c71ce3b5fb373 -C extra-filename=-581c71ce3b5fb373 --out-dir /tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -C incremental=/tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/incremental -L dependency=/tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/tmp/tmp.u55zB0qp8W/target/debug/deps -C debuginfo=2 --cap-lints warn -C linker=x86_64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /usr/share/cargo/registry/bitflags-1.3.2=/usr/share/cargo/registry/bitflags-1.3.2 --remap-path-prefix /tmp/tmp.u55zB0qp8W/registry=/usr/share/cargo/registry` Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=trybuild CARGO_MANIFEST_DIR=/tmp/tmp.u55zB0qp8W/registry/trybuild-1.0.76 CARGO_PKG_AUTHORS='David Tolnay <dtol...@gmail.com>' CARGO_PKG_DESCRIPTION='Test harness for ui tests of compiler diagnostics' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=trybuild CARGO_PKG_REPOSITORY='https://github.com/dtolnay/trybuild' CARGO_PKG_RUST_VERSION=1.45 CARGO_PKG_VERSION=1.0.76 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=76 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/tmp/tmp.u55zB0qp8W/target/debug/deps:/usr/lib' OUT_DIR=/tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/build/trybuild-3dc14f36f00cbde0/out rustc --crate-name trybuild --edition=2018 /tmp/tmp.u55zB0qp8W/registry/trybuild-1.0.76/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=813824af549a3fe4 -C extra-filename=-813824af549a3fe4 --out-dir /tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -L dependency=/tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/tmp/tmp.u55zB0qp8W/target/debug/deps --extern glob=/tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps/libglob-18ed03da62dd1beb.rmeta --extern once_cell=/tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps/libonce_cell-de70ba2dc91f60b7.rmeta --extern serde=/tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps/libserde-9bdc07005ba01914.rmeta --extern serde_derive=/tmp/tmp.u55zB0qp8W/target/debug/deps/libserde_derive-3bb669a81ca8552e.so --extern serde_json=/tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps/libserde_json-aa32d2aba754a8a0.rmeta --extern termcolor=/tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps/libtermcolor-8e29c39ffba1a803.rmeta --extern toml=/tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps/libtoml-7af6e150d3a5c92c.rmeta --cap-lints warn -C debuginfo=2 --cap-lints warn -C linker=x86_64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /usr/share/cargo/registry/bitflags-1.3.2=/usr/share/cargo/registry/bitflags-1.3.2 --remap-path-prefix /tmp/tmp.u55zB0qp8W/registry=/usr/share/cargo/registry` Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=bitflags CARGO_MANIFEST_DIR=/usr/share/cargo/registry/bitflags-1.3.2 CARGO_PKG_AUTHORS='The Rust Project Developers' CARGO_PKG_DESCRIPTION='A macro to generate structures which behave like bitflags. ' CARGO_PKG_HOMEPAGE='https://github.com/bitflags/bitflags' CARGO_PKG_LICENSE=MIT/Apache-2.0 CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=bitflags CARGO_PKG_REPOSITORY='https://github.com/bitflags/bitflags' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=1.3.2 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=3 CARGO_PKG_VERSION_PATCH=2 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 LD_LIBRARY_PATH='/tmp/tmp.u55zB0qp8W/target/debug/deps:/usr/lib' rustc --crate-name bitflags --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --test -C metadata=3deea61b7b8b7d17 -C extra-filename=-3deea61b7b8b7d17 --out-dir /tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -C incremental=/tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/incremental -L dependency=/tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/tmp/tmp.u55zB0qp8W/target/debug/deps --extern rustversion=/tmp/tmp.u55zB0qp8W/target/debug/deps/librustversion-0a763140cb017f0f.so --extern serde=/tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps/libserde-9bdc07005ba01914.rlib --extern serde_derive=/tmp/tmp.u55zB0qp8W/target/debug/deps/libserde_derive-3bb669a81ca8552e.so --extern serde_json=/tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps/libserde_json-aa32d2aba754a8a0.rlib --extern trybuild=/tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps/libtrybuild-813824af549a3fe4.rlib --extern walkdir=/tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps/libwalkdir-445f2ac7b7216d52.rlib -C debuginfo=2 --cap-lints warn -C linker=x86_64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /usr/share/cargo/registry/bitflags-1.3.2=/usr/share/cargo/registry/bitflags-1.3.2 --remap-path-prefix /tmp/tmp.u55zB0qp8W/registry=/usr/share/cargo/registry` Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=basic CARGO_MANIFEST_DIR=/usr/share/cargo/registry/bitflags-1.3.2 CARGO_PKG_AUTHORS='The Rust Project Developers' CARGO_PKG_DESCRIPTION='A macro to generate structures which behave like bitflags. ' CARGO_PKG_HOMEPAGE='https://github.com/bitflags/bitflags' CARGO_PKG_LICENSE=MIT/Apache-2.0 CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=bitflags CARGO_PKG_REPOSITORY='https://github.com/bitflags/bitflags' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=1.3.2 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=3 CARGO_PKG_VERSION_PATCH=2 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 CARGO_TARGET_TMPDIR=/tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/tmp LD_LIBRARY_PATH='/tmp/tmp.u55zB0qp8W/target/debug/deps:/usr/lib' rustc --crate-name basic --edition=2018 tests/basic.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --test -C metadata=0ee53e66b952f83f -C extra-filename=-0ee53e66b952f83f --out-dir /tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -C incremental=/tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/incremental -L dependency=/tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/tmp/tmp.u55zB0qp8W/target/debug/deps --extern bitflags=/tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps/libbitflags-581c71ce3b5fb373.rlib --extern rustversion=/tmp/tmp.u55zB0qp8W/target/debug/deps/librustversion-0a763140cb017f0f.so --extern serde=/tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps/libserde-9bdc07005ba01914.rlib --extern serde_derive=/tmp/tmp.u55zB0qp8W/target/debug/deps/libserde_derive-3bb669a81ca8552e.so --extern serde_json=/tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps/libserde_json-aa32d2aba754a8a0.rlib --extern trybuild=/tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps/libtrybuild-813824af549a3fe4.rlib --extern walkdir=/tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps/libwalkdir-445f2ac7b7216d52.rlib -C debuginfo=2 --cap-lints warn -C linker=x86_64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /usr/share/cargo/registry/bitflags-1.3.2=/usr/share/cargo/registry/bitflags-1.3.2 --remap-path-prefix /tmp/tmp.u55zB0qp8W/registry=/usr/share/cargo/registry`
error[E0433]: failed to resolve: could not find `Serialize` in `serde`
    --> src/lib.rs:1721:25
     |
1721 |         #[derive(serde::Serialize, serde::Deserialize)]
| ^^^^^^^^^ could not find `Serialize` in `serde`

error[E0433]: failed to resolve: could not find `Deserialize` in `serde`
    --> src/lib.rs:1721:43
     |
1721 |         #[derive(serde::Serialize, serde::Deserialize)]
| ^^^^^^^^^^^ could not find `Deserialize` in `serde`

Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=compile CARGO_MANIFEST_DIR=/usr/share/cargo/registry/bitflags-1.3.2 CARGO_PKG_AUTHORS='The Rust Project Developers' CARGO_PKG_DESCRIPTION='A macro to generate structures which behave like bitflags. ' CARGO_PKG_HOMEPAGE='https://github.com/bitflags/bitflags' CARGO_PKG_LICENSE=MIT/Apache-2.0 CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=bitflags CARGO_PKG_REPOSITORY='https://github.com/bitflags/bitflags' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=1.3.2 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=3 CARGO_PKG_VERSION_PATCH=2 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 CARGO_TARGET_TMPDIR=/tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/tmp LD_LIBRARY_PATH='/tmp/tmp.u55zB0qp8W/target/debug/deps:/usr/lib' rustc --crate-name compile --edition=2018 tests/compile.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --test -C metadata=3c0911627ebbc5c8 -C extra-filename=-3c0911627ebbc5c8 --out-dir /tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -C incremental=/tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/incremental -L dependency=/tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/tmp/tmp.u55zB0qp8W/target/debug/deps --extern bitflags=/tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps/libbitflags-581c71ce3b5fb373.rlib --extern rustversion=/tmp/tmp.u55zB0qp8W/target/debug/deps/librustversion-0a763140cb017f0f.so --extern serde=/tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps/libserde-9bdc07005ba01914.rlib --extern serde_derive=/tmp/tmp.u55zB0qp8W/target/debug/deps/libserde_derive-3bb669a81ca8552e.so --extern serde_json=/tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps/libserde_json-aa32d2aba754a8a0.rlib --extern trybuild=/tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps/libtrybuild-813824af549a3fe4.rlib --extern walkdir=/tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps/libwalkdir-445f2ac7b7216d52.rlib -C debuginfo=2 --cap-lints warn -C linker=x86_64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /usr/share/cargo/registry/bitflags-1.3.2=/usr/share/cargo/registry/bitflags-1.3.2 --remap-path-prefix /tmp/tmp.u55zB0qp8W/registry=/usr/share/cargo/registry`
error[E0277]: the trait bound `SerdeFlags: Serialize` is not satisfied
    --> src/lib.rs:1697:48
     |
1697 |         let serialized = serde_json::to_string(&flags).unwrap();
| --------------------- ^^^^^^ the trait `Serialize` is not implemented for `SerdeFlags`
     |                          |
     |                          required by a bound introduced by this call
     |
     = help: the following other types implement trait `Serialize`:
               &'a T
               &'a mut T
               ()
               (T0, T1)
               (T0, T1, T2)
               (T0, T1, T2, T3)
               (T0, T1, T2, T3, T4)
               (T0, T1, T2, T3, T4, T5)
             and 127 others
note: required by a bound in `serde_json::to_string`

error[E0277]: the trait bound `SerdeFlags: Deserialize<'_>` is not satisfied
    --> src/lib.rs:1704:40
     |
1704 | let deserialized: SerdeFlags = serde_json::from_str(r#"{"bits":12}"#).unwrap(); | ^^^^^^^^^^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `SerdeFlags`
     |
     = help: the following other types implement trait `Deserialize<'de>`:
               &'a Path
               &'a [u8]
               &'a str
               ()
               (T0, T1)
               (T0, T1, T2)
               (T0, T1, T2, T3)
               (T0, T1, T2, T3, T4)
             and 135 others
note: required by a bound in `serde_json::from_str`

error[E0277]: the trait bound `SerdeFlags: Serialize` is not satisfied
    --> src/lib.rs:1715:84
     |
1715 | let deserialized: SerdeFlags = serde_json::from_str(&serde_json::to_string(&flags).unwrap()).unwrap(); | --------------------- ^^^^^^ the trait `Serialize` is not implemented for `SerdeFlags`
     |                                                              |
| required by a bound introduced by this call
     |
     = help: the following other types implement trait `Serialize`:
               &'a T
               &'a mut T
               ()
               (T0, T1)
               (T0, T1, T2)
               (T0, T1, T2, T3)
               (T0, T1, T2, T3, T4)
               (T0, T1, T2, T3, T4, T5)
             and 127 others
note: required by a bound in `serde_json::to_string`

error[E0277]: the trait bound `SerdeFlags: Deserialize<'_>` is not satisfied
    --> src/lib.rs:1715:40
     |
1715 | let deserialized: SerdeFlags = serde_json::from_str(&serde_json::to_string(&flags).unwrap()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `SerdeFlags`
     |
     = help: the following other types implement trait `Deserialize<'de>`:
               &'a Path
               &'a [u8]
               &'a str
               ()
               (T0, T1)
               (T0, T1, T2)
               (T0, T1, T2, T3)
               (T0, T1, T2, T3, T4)
             and 135 others
note: required by a bound in `serde_json::from_str`

Some errors have detailed explanations: E0277, E0433.
For more information about an error, try `rustc --explain E0277`.
error: could not compile `bitflags` due to 6 previous errors

Caused by:
process didn't exit successfully: `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=bitflags CARGO_MANIFEST_DIR=/usr/share/cargo/registry/bitflags-1.3.2 CARGO_PKG_AUTHORS='The Rust Project Developers' CARGO_PKG_DESCRIPTION='A macro to generate structures which behave like bitflags. ' CARGO_PKG_HOMEPAGE='https://github.com/bitflags/bitflags' CARGO_PKG_LICENSE=MIT/Apache-2.0 CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=bitflags CARGO_PKG_REPOSITORY='https://github.com/bitflags/bitflags' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=1.3.2 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=3 CARGO_PKG_VERSION_PATCH=2 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 LD_LIBRARY_PATH='/tmp/tmp.u55zB0qp8W/target/debug/deps:/usr/lib' rustc --crate-name bitflags --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --test -C metadata=3deea61b7b8b7d17 -C extra-filename=-3deea61b7b8b7d17 --out-dir /tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -C incremental=/tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/incremental -L dependency=/tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/tmp/tmp.u55zB0qp8W/target/debug/deps --extern rustversion=/tmp/tmp.u55zB0qp8W/target/debug/deps/librustversion-0a763140cb017f0f.so --extern serde=/tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps/libserde-9bdc07005ba01914.rlib --extern serde_derive=/tmp/tmp.u55zB0qp8W/target/debug/deps/libserde_derive-3bb669a81ca8552e.so --extern serde_json=/tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps/libserde_json-aa32d2aba754a8a0.rlib --extern trybuild=/tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps/libtrybuild-813824af549a3fe4.rlib --extern walkdir=/tmp/tmp.u55zB0qp8W/target/x86_64-unknown-linux-gnu/debug/deps/libwalkdir-445f2ac7b7216d52.rlib -C debuginfo=2 --cap-lints warn -C linker=x86_64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /usr/share/cargo/registry/bitflags-1.3.2=/usr/share/cargo/registry/bitflags-1.3.2 --remap-path-prefix /tmp/tmp.u55zB0qp8W/registry=/usr/share/cargo/registry` (exit status: 1)
warning: build failed, waiting for other jobs to finish...
warning: function `prepare_stderr_files` is never used
  --> tests/compile.rs:32:4
   |
32 | fn prepare_stderr_files(path: impl AsRef<Path>) -> io::Result<()> {
   |    ^^^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default

warning: function `rename_beta_stderr` is never used
  --> tests/compile.rs:61:4
   |
61 | fn rename_beta_stderr(_: impl AsRef<Path>, _: impl AsRef<Path>) -> io::Result<()> {
   |    ^^^^^^^^^^^^^^^^^^

warning: `bitflags` (test "compile") generated 2 warnings

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to