[INFO] fetching crate sega_film 0.1.0... [INFO] testing sega_film-0.1.0 against try#eafdee2dfae8c2233b74f98b123308be7ccefcc6 for pr-79296 [INFO] extracting crate sega_film 0.1.0 into /workspace/builds/worker-14/source [INFO] validating manifest of crates.io crate sega_film 0.1.0 on toolchain eafdee2dfae8c2233b74f98b123308be7ccefcc6 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+eafdee2dfae8c2233b74f98b123308be7ccefcc6" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate sega_film 0.1.0 [INFO] finished tweaking crates.io crate sega_film 0.1.0 [INFO] tweaked toml for crates.io crate sega_film 0.1.0 written to /workspace/builds/worker-14/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+eafdee2dfae8c2233b74f98b123308be7ccefcc6" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+eafdee2dfae8c2233b74f98b123308be7ccefcc6" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+eafdee2dfae8c2233b74f98b123308be7ccefcc6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7ee9826b04da52d7449a39d5e637162ab26a645077b55bcc1c115f81fcf476de [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "7ee9826b04da52d7449a39d5e637162ab26a645077b55bcc1c115f81fcf476de", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7ee9826b04da52d7449a39d5e637162ab26a645077b55bcc1c115f81fcf476de", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7ee9826b04da52d7449a39d5e637162ab26a645077b55bcc1c115f81fcf476de", kill_on_drop: false }` [INFO] [stdout] 7ee9826b04da52d7449a39d5e637162ab26a645077b55bcc1c115f81fcf476de [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+eafdee2dfae8c2233b74f98b123308be7ccefcc6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d8a2e835a09d8ea78a22c1f6e8e7d7d1514a6c933f66485723096682bd584ce0 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "d8a2e835a09d8ea78a22c1f6e8e7d7d1514a6c933f66485723096682bd584ce0", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] Compiling sega_film v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.56s [INFO] running `Command { std: "docker" "inspect" "d8a2e835a09d8ea78a22c1f6e8e7d7d1514a6c933f66485723096682bd584ce0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d8a2e835a09d8ea78a22c1f6e8e7d7d1514a6c933f66485723096682bd584ce0", kill_on_drop: false }` [INFO] [stdout] d8a2e835a09d8ea78a22c1f6e8e7d7d1514a6c933f66485723096682bd584ce0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+eafdee2dfae8c2233b74f98b123308be7ccefcc6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 56d2757ed76cb02cfcd8fe823a80275eaae0baefd56f76c06b43bca7e664d2b6 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "56d2757ed76cb02cfcd8fe823a80275eaae0baefd56f76c06b43bca7e664d2b6", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] Compiling sega_film v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.69s [INFO] running `Command { std: "docker" "inspect" "56d2757ed76cb02cfcd8fe823a80275eaae0baefd56f76c06b43bca7e664d2b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "56d2757ed76cb02cfcd8fe823a80275eaae0baefd56f76c06b43bca7e664d2b6", kill_on_drop: false }` [INFO] [stdout] 56d2757ed76cb02cfcd8fe823a80275eaae0baefd56f76c06b43bca7e664d2b6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+eafdee2dfae8c2233b74f98b123308be7ccefcc6" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 968d820f4be7705ed8da783381f226b531bf0c9dfae035dd5f10116362d0ed98 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "968d820f4be7705ed8da783381f226b531bf0c9dfae035dd5f10116362d0ed98", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/sega_film-9c6c7d40b2403820 [INFO] [stdout] [INFO] [stderr] Doc-tests sega_film [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test src/container/mod.rs - container::Sample (line 246) ... FAILED [INFO] [stdout] test src/container/mod.rs - container::FILMHeader (line 37) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/container/mod.rs - container::Sample (line 246) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `header` in this scope [INFO] [stdout] --> src/container/mod.rs:248:14 [INFO] [stdout] | [INFO] [stdout] 4 | let sample = header.stab.sample_table[0]; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `header` in this scope [INFO] [stdout] --> src/container/mod.rs:249:30 [INFO] [stdout] | [INFO] [stdout] 5 | let absolute_sample_offset = header.length + sample.offset; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `film_data` in this scope [INFO] [stdout] --> src/container/mod.rs:250:19 [INFO] [stdout] | [INFO] [stdout] 6 | let sample_data = film_data[absolute_sample_offset..absolute_sample_offset + sample.length]; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/container/mod.rs - container::FILMHeader (line 37) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FILMHeader` [INFO] [stdout] --> src/container/mod.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 9 | if !FILMHeader::is_film_file(&buf) { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `FILMHeader` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FILMHeader` [INFO] [stdout] --> src/container/mod.rs:50:21 [INFO] [stdout] | [INFO] [stdout] 15 | let bytes_to_read = FILMHeader::guess_length(&buf); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `FILMHeader` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FILMHeader` [INFO] [stdout] --> src/container/mod.rs:54:14 [INFO] [stdout] | [INFO] [stdout] 19 | let header = FILMHeader::parse(&buf)?; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `FILMHeader` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `File` [INFO] [stdout] --> src/container/mod.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 3 | let file = File::open("myfile.cpk")?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use std::fs::File; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `exit` in this scope [INFO] [stdout] --> src/container/mod.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 11 | exit(1); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use std::process::exit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `Try`) [INFO] [stdout] --> src/container/mod.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | let file = File::open("myfile.cpk")?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | let mut buf = vec![]; [INFO] [stdout] 5 | | // Start with only 8 bytes, so we don't waste memory [INFO] [stdout] ... | [INFO] [stdout] 19 | | let header = FILMHeader::parse(&buf)?; [INFO] [stdout] 20 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `()` [INFO] [stdout] = note: required by `from_error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `Try`) [INFO] [stdout] --> src/container/mod.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | let file = File::open("myfile.cpk")?; [INFO] [stdout] 4 | | let mut buf = vec![]; [INFO] [stdout] 5 | | // Start with only 8 bytes, so we don't waste memory [INFO] [stdout] 6 | | file.take(8).read(&mut buf)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 19 | | let header = FILMHeader::parse(&buf)?; [INFO] [stdout] 20 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `()` [INFO] [stdout] = note: required by `from_error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `Try`) [INFO] [stdout] --> src/container/mod.rs:51:1 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | let file = File::open("myfile.cpk")?; [INFO] [stdout] 4 | | let mut buf = vec![]; [INFO] [stdout] 5 | | // Start with only 8 bytes, so we don't waste memory [INFO] [stdout] ... | [INFO] [stdout] 16 | | file.take(bytes_to_read - 8).read(&mut buf)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 19 | | let header = FILMHeader::parse(&buf)?; [INFO] [stdout] 20 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `()` [INFO] [stdout] = note: required by `from_error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `Try`) [INFO] [stdout] --> src/container/mod.rs:54:14 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | let file = File::open("myfile.cpk")?; [INFO] [stdout] 4 | | let mut buf = vec![]; [INFO] [stdout] 5 | | // Start with only 8 bytes, so we don't waste memory [INFO] [stdout] ... | [INFO] [stdout] 19 | | let header = FILMHeader::parse(&buf)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 20 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `()` [INFO] [stdout] = note: required by `from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/container/mod.rs - container::FILMHeader (line 37) [INFO] [stdout] src/container/mod.rs - container::Sample (line 246) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "968d820f4be7705ed8da783381f226b531bf0c9dfae035dd5f10116362d0ed98", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "968d820f4be7705ed8da783381f226b531bf0c9dfae035dd5f10116362d0ed98", kill_on_drop: false }` [INFO] [stdout] 968d820f4be7705ed8da783381f226b531bf0c9dfae035dd5f10116362d0ed98