[INFO] fetching crate dexparser 0.6.2... [INFO] testing dexparser-0.6.2 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate dexparser 0.6.2 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate dexparser 0.6.2 [INFO] finished tweaking crates.io crate dexparser 0.6.2 [INFO] tweaked toml for crates.io crate dexparser 0.6.2 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate dexparser 0.6.2 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 32 packages to latest compatible versions [INFO] [stderr] Adding mutf8 v0.2.0 (available: v0.5.0) [INFO] [stderr] Adding nom v4.2.3 (available: v8.0.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded mutf8 v0.2.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4b1e1c0deb100c4321d7f56b69fee36f9bc126f8f8c67e579a5929d027613846 [INFO] running `Command { std: "docker" "start" "-a" "4b1e1c0deb100c4321d7f56b69fee36f9bc126f8f8c67e579a5929d027613846", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4b1e1c0deb100c4321d7f56b69fee36f9bc126f8f8c67e579a5929d027613846", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4b1e1c0deb100c4321d7f56b69fee36f9bc126f8f8c67e579a5929d027613846", kill_on_drop: false }` [INFO] [stdout] 4b1e1c0deb100c4321d7f56b69fee36f9bc126f8f8c67e579a5929d027613846 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 57f8d8877be8e57f2e9c2e1ee79afcc5b4dc82e20ee93075f92c32a972685125 [INFO] running `Command { std: "docker" "start" "-a" "57f8d8877be8e57f2e9c2e1ee79afcc5b4dc82e20ee93075f92c32a972685125", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling object v0.36.7 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Compiling adler2 v2.0.1 [INFO] [stderr] Compiling gimli v0.31.1 [INFO] [stderr] Compiling rustc-demangle v0.1.26 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling nom v4.2.3 [INFO] [stderr] Compiling mutf8 v0.2.0 [INFO] [stderr] Compiling addr2line v0.24.2 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling backtrace v0.3.75 [INFO] [stderr] Compiling failure v0.1.8 [INFO] [stderr] Compiling dexparser v0.6.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/parser/parse_data.rs:386:1 [INFO] [stdout] | [INFO] [stdout] 386 | / /** [INFO] [stdout] 387 | | TODO: implement parsing call site items [INFO] [stdout] 388 | | fn parse_call_site_items(data: &[u8], data_off: usize, csi: &[u32], fd: &DexFileData) -> Result, DexParserError> { [INFO] [stdout] 389 | | unimplemented!(); [INFO] [stdout] ... | [INFO] [stdout] 425 | | */ [INFO] [stdout] | |__^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/parser/parse_data.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 88 | / /** [INFO] [stdout] 89 | | TODO: find a DEX file with call site items and test parsing them [INFO] [stdout] 90 | | [INFO] [stdout] 91 | | let call_site_items = if let Some(csi) = raw.call_site_idxs { [INFO] [stdout] ... | [INFO] [stdout] 95 | | }; [INFO] [stdout] 96 | | */ [INFO] [stdout] | |______^ [INFO] [stdout] 97 | [INFO] [stdout] 98 | / Ok(DexFile { [INFO] [stdout] 99 | | header, [INFO] [stdout] 100 | | file_data, [INFO] [stdout] 101 | | classes [INFO] [stdout] 102 | | }) [INFO] [stdout] | |______- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `/* */` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/parser/mod.rs:225:1 [INFO] [stdout] | [INFO] [stdout] 225 | / named_args!(parse_header(e: nom::Endianness)<&[u8], RawHeader>, [INFO] [stdout] 226 | | do_parse!( [INFO] [stdout] 227 | | // little bit of magic at the start [INFO] [stdout] 228 | | tag!(DEX_FILE_MAGIC) >> [INFO] [stdout] ... | [INFO] [stdout] 274 | | ); [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `count_fixed` which comes from the expansion of the macro `named_args` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/error.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | fn from(e: DexParserError) -> Self { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser/mod.rs:135:39 [INFO] [stdout] | [INFO] [stdout] 135 | leb128::read::unsigned(&mut (input.clone())).map(|i| i as u32) [INFO] [stdout] | ^^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser/mod.rs:139:37 [INFO] [stdout] | [INFO] [stdout] 139 | leb128::read::signed(&mut (input.clone())).map(|i| i as i32) [INFO] [stdout] | ^^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/error.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ^--- [INFO] [stdout] | | [INFO] [stdout] | `Fail` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_Fail_FOR_DexParserError` [INFO] [stdout] 4 | pub enum DexParserError { [INFO] [stdout] | -------------- `DexParserError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/error.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ^--- [INFO] [stdout] | | [INFO] [stdout] | `Display` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_core_fmt_Display_FOR_DexParserError` [INFO] [stdout] 4 | pub enum DexParserError { [INFO] [stdout] | -------------- `DexParserError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 16.48s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v4.2.3 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "57f8d8877be8e57f2e9c2e1ee79afcc5b4dc82e20ee93075f92c32a972685125", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "57f8d8877be8e57f2e9c2e1ee79afcc5b4dc82e20ee93075f92c32a972685125", kill_on_drop: false }` [INFO] [stdout] 57f8d8877be8e57f2e9c2e1ee79afcc5b4dc82e20ee93075f92c32a972685125 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cefcc945dcbfb18e39b4c92d8349d90052a16f3186c0f068c41c7a0121ee611e [INFO] running `Command { std: "docker" "start" "-a" "cefcc945dcbfb18e39b4c92d8349d90052a16f3186c0f068c41c7a0121ee611e", kill_on_drop: false }` [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/parser/parse_data.rs:386:1 [INFO] [stdout] | [INFO] [stdout] 386 | / /** [INFO] [stdout] 387 | | TODO: implement parsing call site items [INFO] [stdout] 388 | | fn parse_call_site_items(data: &[u8], data_off: usize, csi: &[u32], fd: &DexFileData) -> Result, DexParserError> { [INFO] [stdout] 389 | | unimplemented!(); [INFO] [stdout] ... | [INFO] [stdout] 425 | | */ [INFO] [stdout] | |__^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/parser/parse_data.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 88 | / /** [INFO] [stdout] 89 | | TODO: find a DEX file with call site items and test parsing them [INFO] [stdout] 90 | | [INFO] [stdout] 91 | | let call_site_items = if let Some(csi) = raw.call_site_idxs { [INFO] [stdout] ... | [INFO] [stdout] 95 | | }; [INFO] [stdout] 96 | | */ [INFO] [stdout] | |______^ [INFO] [stdout] 97 | [INFO] [stdout] 98 | / Ok(DexFile { [INFO] [stdout] 99 | | header, [INFO] [stdout] 100 | | file_data, [INFO] [stdout] 101 | | classes [INFO] [stdout] 102 | | }) [INFO] [stdout] | |______- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `/* */` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/parser/mod.rs:225:1 [INFO] [stdout] | [INFO] [stdout] 225 | / named_args!(parse_header(e: nom::Endianness)<&[u8], RawHeader>, [INFO] [stdout] 226 | | do_parse!( [INFO] [stdout] 227 | | // little bit of magic at the start [INFO] [stdout] 228 | | tag!(DEX_FILE_MAGIC) >> [INFO] [stdout] ... | [INFO] [stdout] 274 | | ); [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `count_fixed` which comes from the expansion of the macro `named_args` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/error.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | fn from(e: DexParserError) -> Self { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser/mod.rs:135:39 [INFO] [stdout] | [INFO] [stdout] 135 | leb128::read::unsigned(&mut (input.clone())).map(|i| i as u32) [INFO] [stdout] | ^^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser/mod.rs:139:37 [INFO] [stdout] | [INFO] [stdout] 139 | leb128::read::signed(&mut (input.clone())).map(|i| i as i32) [INFO] [stdout] | ^^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/error.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ^--- [INFO] [stdout] | | [INFO] [stdout] | `Fail` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_Fail_FOR_DexParserError` [INFO] [stdout] 4 | pub enum DexParserError { [INFO] [stdout] | -------------- `DexParserError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling dexparser v0.6.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/error.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ^--- [INFO] [stdout] | | [INFO] [stdout] | `Display` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_core_fmt_Display_FOR_DexParserError` [INFO] [stdout] 4 | pub enum DexParserError { [INFO] [stdout] | -------------- `DexParserError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/parser/parse_data.rs:386:1 [INFO] [stdout] | [INFO] [stdout] 386 | / /** [INFO] [stdout] 387 | | TODO: implement parsing call site items [INFO] [stdout] 388 | | fn parse_call_site_items(data: &[u8], data_off: usize, csi: &[u32], fd: &DexFileData) -> Result, DexParserError> { [INFO] [stdout] 389 | | unimplemented!(); [INFO] [stdout] ... | [INFO] [stdout] 425 | | */ [INFO] [stdout] | |__^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/parser/parse_data.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 88 | / /** [INFO] [stdout] 89 | | TODO: find a DEX file with call site items and test parsing them [INFO] [stdout] 90 | | [INFO] [stdout] 91 | | let call_site_items = if let Some(csi) = raw.call_site_idxs { [INFO] [stdout] ... | [INFO] [stdout] 95 | | }; [INFO] [stdout] 96 | | */ [INFO] [stdout] | |______^ [INFO] [stdout] 97 | [INFO] [stdout] 98 | / Ok(DexFile { [INFO] [stdout] 99 | | header, [INFO] [stdout] 100 | | file_data, [INFO] [stdout] 101 | | classes [INFO] [stdout] 102 | | }) [INFO] [stdout] | |______- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `/* */` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/parser/mod.rs:225:1 [INFO] [stdout] | [INFO] [stdout] 225 | / named_args!(parse_header(e: nom::Endianness)<&[u8], RawHeader>, [INFO] [stdout] 226 | | do_parse!( [INFO] [stdout] 227 | | // little bit of magic at the start [INFO] [stdout] 228 | | tag!(DEX_FILE_MAGIC) >> [INFO] [stdout] ... | [INFO] [stdout] 274 | | ); [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `count_fixed` which comes from the expansion of the macro `named_args` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/error.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | fn from(e: DexParserError) -> Self { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser/mod.rs:135:39 [INFO] [stdout] | [INFO] [stdout] 135 | leb128::read::unsigned(&mut (input.clone())).map(|i| i as u32) [INFO] [stdout] | ^^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser/mod.rs:139:37 [INFO] [stdout] | [INFO] [stdout] 139 | leb128::read::signed(&mut (input.clone())).map(|i| i as i32) [INFO] [stdout] | ^^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/error.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ^--- [INFO] [stdout] | | [INFO] [stdout] | `Fail` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_Fail_FOR_DexParserError` [INFO] [stdout] 4 | pub enum DexParserError { [INFO] [stdout] | -------------- `DexParserError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/error.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ^--- [INFO] [stdout] | | [INFO] [stdout] | `Display` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_core_fmt_Display_FOR_DexParserError` [INFO] [stdout] 4 | pub enum DexParserError { [INFO] [stdout] | -------------- `DexParserError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.97s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v4.2.3 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "cefcc945dcbfb18e39b4c92d8349d90052a16f3186c0f068c41c7a0121ee611e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cefcc945dcbfb18e39b4c92d8349d90052a16f3186c0f068c41c7a0121ee611e", kill_on_drop: false }` [INFO] [stdout] cefcc945dcbfb18e39b4c92d8349d90052a16f3186c0f068c41c7a0121ee611e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] a7589cfabed7352bcb4a56b348c3960ea02c9fccda63466585bffa6de0d6d5be [INFO] running `Command { std: "docker" "start" "-a" "a7589cfabed7352bcb4a56b348c3960ea02c9fccda63466585bffa6de0d6d5be", kill_on_drop: false }` [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/parser/parse_data.rs:386:1 [INFO] [stderr] | [INFO] [stderr] 386 | / /** [INFO] [stderr] 387 | | TODO: implement parsing call site items [INFO] [stderr] 388 | | fn parse_call_site_items(data: &[u8], data_off: usize, csi: &[u32], fd: &DexFileData) -> Result, DexParserError> { [INFO] [stderr] 389 | | unimplemented!(); [INFO] [stderr] ... | [INFO] [stderr] 425 | | */ [INFO] [stderr] | |__^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] = note: `#[warn(unused_doc_comments)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/parser/parse_data.rs:88:5 [INFO] [stderr] | [INFO] [stderr] 88 | / /** [INFO] [stderr] 89 | | TODO: find a DEX file with call site items and test parsing them [INFO] [stderr] 90 | | [INFO] [stderr] 91 | | let call_site_items = if let Some(csi) = raw.call_site_idxs { [INFO] [stderr] ... | [INFO] [stderr] 95 | | }; [INFO] [stderr] 96 | | */ [INFO] [stderr] | |______^ [INFO] [stderr] 97 | [INFO] [stderr] 98 | / Ok(DexFile { [INFO] [stderr] 99 | | header, [INFO] [stderr] 100 | | file_data, [INFO] [stderr] 101 | | classes [INFO] [stderr] 102 | | }) [INFO] [stderr] | |______- rustdoc does not generate documentation for expressions [INFO] [stderr] | [INFO] [stderr] = help: use `/* */` for a plain comment [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stderr] --> src/parser/mod.rs:225:1 [INFO] [stderr] | [INFO] [stderr] 225 | / named_args!(parse_header(e: nom::Endianness)<&[u8], RawHeader>, [INFO] [stderr] 226 | | do_parse!( [INFO] [stderr] 227 | | // little bit of magic at the start [INFO] [stderr] 228 | | tag!(DEX_FILE_MAGIC) >> [INFO] [stderr] ... | [INFO] [stderr] 274 | | ); [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] = note: this warning originates in the macro `count_fixed` which comes from the expansion of the macro `named_args` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/error.rs:79:13 [INFO] [stderr] | [INFO] [stderr] 79 | fn from(e: DexParserError) -> Self { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/parser/mod.rs:135:39 [INFO] [stderr] | [INFO] [stderr] 135 | leb128::read::unsigned(&mut (input.clone())).map(|i| i as u32) [INFO] [stderr] | ^^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stderr] = note: `#[warn(noop_method_call)]` on by default [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/parser/mod.rs:139:37 [INFO] [stderr] | [INFO] [stderr] 139 | leb128::read::signed(&mut (input.clone())).map(|i| i as i32) [INFO] [stderr] | ^^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/error.rs:3:17 [INFO] [stderr] | [INFO] [stderr] 3 | #[derive(Debug, Fail, Clone)] [INFO] [stderr] | ^--- [INFO] [stderr] | | [INFO] [stderr] | `Fail` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_DERIVE_failure_Fail_FOR_DexParserError` [INFO] [stderr] 4 | pub enum DexParserError { [INFO] [stderr] | -------------- `DexParserError` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stderr] = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/error.rs:3:17 [INFO] [stderr] | [INFO] [stderr] 3 | #[derive(Debug, Fail, Clone)] [INFO] [stderr] | ^--- [INFO] [stderr] | | [INFO] [stderr] | `Display` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_DERIVE_failure_core_fmt_Display_FOR_DexParserError` [INFO] [stderr] 4 | pub enum DexParserError { [INFO] [stderr] | -------------- `DexParserError` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `dexparser` (lib) generated 8 warnings (run `cargo fix --lib -p dexparser` to apply 2 suggestions) [INFO] [stderr] warning: `dexparser` (lib test) generated 8 warnings (8 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.07s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v4.2.3 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/dexparser-db235e3d6903ddfa) [INFO] [stdout] [INFO] [stdout] running 56 tests [INFO] [stdout] test parser::encoded_value::tests::test_invalid_encoded_value_item_type ... ok [INFO] [stdout] test parser::encoded_value::tests::test_parse_annotation ... ok [INFO] [stdout] test parser::encoded_value::tests::test_empty_encoded_value_item ... ok [INFO] [stdout] test parser::encoded_value::tests::test_parse_boolean_false ... ok [INFO] [stdout] test parser::encoded_value::tests::test_parse_boolean_true ... ok [INFO] [stdout] test parser::encoded_value::tests::test_parse_byte_value ... ok [INFO] [stdout] test parser::encoded_value::tests::test_parse_array_complex ... ok [INFO] [stdout] test parser::encoded_value::tests::test_parse_char_value_multiple_byte ... ok [INFO] [stdout] test parser::encoded_value::tests::test_parse_array_recursive ... ok [INFO] [stdout] test parser::encoded_value::tests::test_parse_array_simple ... ok [INFO] [stdout] test parser::encoded_value::tests::test_parse_enum ... ok [INFO] [stdout] test parser::encoded_value::tests::test_parse_float_value_multiple_byte ... ok [INFO] [stdout] test parser::encoded_value::tests::test_parse_char_value_single_byte ... ok [INFO] [stdout] test parser::encoded_value::tests::test_parse_float_value_single_byte ... ok [INFO] [stdout] test parser::encoded_value::tests::test_parse_float_value_two_bytes ... ok [INFO] [stdout] test parser::encoded_value::tests::test_parse_int_value_multiple_bytes ... ok [INFO] [stdout] test parser::encoded_value::tests::test_parse_int_value_single_byte ... ok [INFO] [stdout] test parser::encoded_value::tests::test_parse_long_value_multiple_bytes ... ok [INFO] [stdout] test parser::encoded_value::tests::test_parse_long_value_single_byte ... ok [INFO] [stdout] test parser::encoded_value::tests::test_parse_method ... ok [INFO] [stdout] test parser::encoded_value::tests::test_parse_method_handle ... ok [INFO] [stdout] test parser::encoded_value::tests::test_parse_null ... ok [INFO] [stdout] test parser::encoded_value::tests::test_parse_method_type ... ok [INFO] [stdout] test parser::encoded_value::tests::test_parse_short_value_multiple_bytes ... ok [INFO] [stdout] test parser::encoded_value::tests::test_parse_short_value_single_byte ... ok [INFO] [stdout] test parser::encoded_value::tests::test_parse_string ... ok [INFO] [stdout] test parser::parse_data::tests::test_parse_annotation_set_item ... ok [INFO] [stdout] test parser::parse_data::tests::test_parse_annotations_directory_item_empty ... ok [INFO] [stdout] test parser::encoded_value::tests::test_parse_type ... ok [INFO] [stdout] test parser::parse_data::tests::test_parse_annotations ... ok [INFO] [stdout] test parser::parse_data::tests::test_parse_annotations_directory_item_full ... ok [INFO] [stdout] test parser::parse_data::tests::test_parse_class_data_item ... ok [INFO] [stdout] test parser::parse_data::tests::test_parse_encoded_field ... ok [INFO] [stdout] test parser::parse_data::tests::test_parse_annotation_set_ref_list ... ok [INFO] [stdout] test parser::parse_data::tests::test_parse_encoded_method ... ok [INFO] [stdout] test parser::parse_data::tests::test_parse_field_annotation_item ... ok [INFO] [stdout] test parser::parse_data::tests::test_parse_parameter_annotation_item ... ok [INFO] [stdout] test parser::tests::test_determine_leb128_length ... ok [INFO] [stdout] test parser::parse_data::tests::test_transform_field_annotations ... ok [INFO] [stdout] test parser::parse_data::tests::test_parse_method_annotation_item ... ok [INFO] [stdout] test parser::tests::test_access_flag_bitmasking ... ok [INFO] [stdout] test parser::tests::test_parse_field_id_items ... ok [INFO] [stdout] test parser::tests::test_parse_header ... ok [INFO] [stdout] test parser::tests::test_parse_class_def_items ... ok [INFO] [stdout] test parser::tests::test_parse_method_handle_item ... ok [INFO] [stdout] test parser::tests::test_parse_method_id_items ... ok [INFO] [stdout] test parser::tests::test_parse_map_list ... ok [INFO] [stdout] test parser::tests::test_parse_string_id_items ... ok [INFO] [stdout] test parser::tests::test_parse_proto_id_items ... ok [INFO] [stdout] test parser::tests::test_parse_uleb128p1 ... ok [INFO] [stdout] test parser::encoded_value::tests::test_parse_annotation_element_item ... ok [INFO] [stdout] test parser::tests::test_parse_sleb128 ... ok [INFO] [stdout] test parser::tests::test_parse_uleb128 ... ok [INFO] [stdout] test parser::encoded_value::tests::test_parse_field ... ok [INFO] [stdout] test parser::tests::test_parse_type_list ... ok [INFO] [stderr] Doc-tests dexparser [INFO] [stdout] test parser::encoded_value::tests::test_parse_double_value ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 56 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "a7589cfabed7352bcb4a56b348c3960ea02c9fccda63466585bffa6de0d6d5be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a7589cfabed7352bcb4a56b348c3960ea02c9fccda63466585bffa6de0d6d5be", kill_on_drop: false }` [INFO] [stdout] a7589cfabed7352bcb4a56b348c3960ea02c9fccda63466585bffa6de0d6d5be