[INFO] fetching crate fmedia 0.2.0... [INFO] testing fmedia-0.2.0 against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-1 [INFO] extracting crate fmedia 0.2.0 into /workspace/builds/worker-0-tc1/source [INFO] started tweaking crates.io crate fmedia 0.2.0 [INFO] finished tweaking crates.io crate fmedia 0.2.0 [INFO] tweaked toml for crates.io crate fmedia 0.2.0 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate fmedia 0.2.0 on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate fmedia 0.2.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ed47da28151ff73439c11a82129f49016758b2a0b8202056aa89711c44226e1d [INFO] running `Command { std: "docker" "start" "-a" "ed47da28151ff73439c11a82129f49016758b2a0b8202056aa89711c44226e1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ed47da28151ff73439c11a82129f49016758b2a0b8202056aa89711c44226e1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ed47da28151ff73439c11a82129f49016758b2a0b8202056aa89711c44226e1d", kill_on_drop: false }` [INFO] [stdout] ed47da28151ff73439c11a82129f49016758b2a0b8202056aa89711c44226e1d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 44c38500f2fdc1c7165af65498505de9ce0b9e5c63da7c128dcf241a5f0e9ee5 [INFO] running `Command { std: "docker" "start" "-a" "44c38500f2fdc1c7165af65498505de9ce0b9e5c63da7c128dcf241a5f0e9ee5", kill_on_drop: false }` [INFO] [stderr] Compiling fmedia v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: mutation of an interior mutable `const` item with call to `call_once` [INFO] [stdout] --> src/lib.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | Self::ONCE_INIT.call_once(|| found = true); [INFO] [stdout] | ---------------^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `ONCE_INIT` is a interior mutable `const` item of type `std::sync::Once` [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: only the temporaries and never the original `const ONCE_INIT` will be modified [INFO] [stdout] = help: for more details on interior mutability see [INFO] [stdout] = note: `#[warn(const_item_interior_mutations)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.37s [INFO] running `Command { std: "docker" "inspect" "44c38500f2fdc1c7165af65498505de9ce0b9e5c63da7c128dcf241a5f0e9ee5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "44c38500f2fdc1c7165af65498505de9ce0b9e5c63da7c128dcf241a5f0e9ee5", kill_on_drop: false }` [INFO] [stdout] 44c38500f2fdc1c7165af65498505de9ce0b9e5c63da7c128dcf241a5f0e9ee5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 27a08892fce414e5d8c9f16aa448ea12d223d48cac77eb343b9419e28abcedc8 [INFO] running `Command { std: "docker" "start" "-a" "27a08892fce414e5d8c9f16aa448ea12d223d48cac77eb343b9419e28abcedc8", kill_on_drop: false }` [INFO] [stdout] warning: mutation of an interior mutable `const` item with call to `call_once` [INFO] [stdout] --> src/lib.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | Self::ONCE_INIT.call_once(|| found = true); [INFO] [stdout] | ---------------^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `ONCE_INIT` is a interior mutable `const` item of type `std::sync::Once` [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: only the temporaries and never the original `const ONCE_INIT` will be modified [INFO] [stdout] = help: for more details on interior mutability see [INFO] [stdout] = note: `#[warn(const_item_interior_mutations)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling fmedia v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: mutation of an interior mutable `const` item with call to `call_once` [INFO] [stdout] --> src/lib.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | Self::ONCE_INIT.call_once(|| found = true); [INFO] [stdout] | ---------------^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `ONCE_INIT` is a interior mutable `const` item of type `std::sync::Once` [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: only the temporaries and never the original `const ONCE_INIT` will be modified [INFO] [stdout] = help: for more details on interior mutability see [INFO] [stdout] = note: `#[warn(const_item_interior_mutations)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.48s [INFO] running `Command { std: "docker" "inspect" "27a08892fce414e5d8c9f16aa448ea12d223d48cac77eb343b9419e28abcedc8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "27a08892fce414e5d8c9f16aa448ea12d223d48cac77eb343b9419e28abcedc8", kill_on_drop: false }` [INFO] [stdout] 27a08892fce414e5d8c9f16aa448ea12d223d48cac77eb343b9419e28abcedc8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 75033c06eb6dc00b0e2b10e634a6351f825261e796579cb08fd9ab5ed45eb05d [INFO] running `Command { std: "docker" "start" "-a" "75033c06eb6dc00b0e2b10e634a6351f825261e796579cb08fd9ab5ed45eb05d", kill_on_drop: false }` [INFO] [stderr] warning: mutation of an interior mutable `const` item with call to `call_once` [INFO] [stderr] --> src/lib.rs:72:17 [INFO] [stderr] | [INFO] [stderr] 72 | Self::ONCE_INIT.call_once(|| found = true); [INFO] [stderr] | ---------------^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | `ONCE_INIT` is a interior mutable `const` item of type `std::sync::Once` [INFO] [stderr] | [INFO] [stderr] = note: each usage of a `const` item creates a new temporary [INFO] [stderr] = note: only the temporaries and never the original `const ONCE_INIT` will be modified [INFO] [stderr] = help: for more details on interior mutability see [INFO] [stderr] = note: `#[warn(const_item_interior_mutations)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `fmedia` (lib) generated 1 warning [INFO] [stderr] warning: `fmedia` (lib test) generated 1 warning (1 duplicate) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/fmedia-908bb775ef1449ed) [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] [stderr] Doc-tests fmedia [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test src/lib.rs - FileExtension::from_media_type (line 49) ... FAILED [INFO] [stdout] test src/lib.rs - MediaType::from_file_extension (line 14) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - FileExtension::from_media_type (line 49) stdout ---- [INFO] [stdout] error[E0433]: cannot find type `FileExtension` in this scope [INFO] [stdout] --> src/lib.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | FileExtension::from_media_type("image/png").unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `FileExtension` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 49 + use fmedia::FileExtension; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `FileExtension` in this scope [INFO] [stdout] --> src/lib.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | FileExtension::from_media_type("image/jpeg").unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `FileExtension` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 49 + use fmedia::FileExtension; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `FileExtension` in this scope [INFO] [stdout] --> src/lib.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | FileExtension::from_media_type("image/svg+xml").unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `FileExtension` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 49 + use fmedia::FileExtension; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `FileExtension` in this scope [INFO] [stdout] --> src/lib.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | FileExtension::from_media_type("application/json").unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `FileExtension` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 49 + use fmedia::FileExtension; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - MediaType::from_file_extension (line 14) stdout ---- [INFO] [stdout] error[E0433]: cannot find type `MediaType` in this scope [INFO] [stdout] --> src/lib.rs:15:25 [INFO] [stdout] | [INFO] [stdout] 15 | assert_eq!("image/png", MediaType::from_file_extension("png").unwrap()); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `MediaType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 14 + use fmedia::MediaType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `MediaType` in this scope [INFO] [stdout] --> src/lib.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | MediaType::from_file_extension("jpeg").unwrap() [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `MediaType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 14 + use fmedia::MediaType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `MediaType` in this scope [INFO] [stdout] --> src/lib.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | MediaType::from_file_extension("svg").unwrap() [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `MediaType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 14 + use fmedia::MediaType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `MediaType` in this scope [INFO] [stdout] --> src/lib.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | MediaType::from_file_extension("json").unwrap() [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `MediaType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 14 + use fmedia::MediaType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - FileExtension::from_media_type (line 49) [INFO] [stdout] src/lib.rs - MediaType::from_file_extension (line 14) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.33s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "75033c06eb6dc00b0e2b10e634a6351f825261e796579cb08fd9ab5ed45eb05d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "75033c06eb6dc00b0e2b10e634a6351f825261e796579cb08fd9ab5ed45eb05d", kill_on_drop: false }` [INFO] [stdout] 75033c06eb6dc00b0e2b10e634a6351f825261e796579cb08fd9ab5ed45eb05d