[INFO] fetching crate video-rs 0.1.8... [INFO] testing video-rs-0.1.8 against try#613d1972a772987ed4ee06faccbab0e2fc839871+rustflags=-Copt-level=3 for pr-107051 [INFO] extracting crate video-rs 0.1.8 into /workspace/builds/worker-1-tc2/source [INFO] validating manifest of crates.io crate video-rs 0.1.8 on toolchain 613d1972a772987ed4ee06faccbab0e2fc839871 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+613d1972a772987ed4ee06faccbab0e2fc839871" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate video-rs 0.1.8 [INFO] finished tweaking crates.io crate video-rs 0.1.8 [INFO] tweaked toml for crates.io crate video-rs 0.1.8 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" __CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS="nightly" "/workspace/cargo-home/bin/cargo" "+613d1972a772987ed4ee06faccbab0e2fc839871" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+613d1972a772987ed4ee06faccbab0e2fc839871" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:7c93e6f9a94679f34221d1005849d4c83862f85b14a264fa0883942f4d043a66" "/opt/rustwide/cargo-home/bin/cargo" "+613d1972a772987ed4ee06faccbab0e2fc839871" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1fb0abb9c1e8617e54d521d638fb81d360cc7436c4ee76a8a5f1121e60a1d97b [INFO] running `Command { std: "docker" "start" "-a" "1fb0abb9c1e8617e54d521d638fb81d360cc7436c4ee76a8a5f1121e60a1d97b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1fb0abb9c1e8617e54d521d638fb81d360cc7436c4ee76a8a5f1121e60a1d97b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1fb0abb9c1e8617e54d521d638fb81d360cc7436c4ee76a8a5f1121e60a1d97b", kill_on_drop: false }` [INFO] [stdout] 1fb0abb9c1e8617e54d521d638fb81d360cc7436c4ee76a8a5f1121e60a1d97b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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 -Copt-level=3" "-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:7c93e6f9a94679f34221d1005849d4c83862f85b14a264fa0883942f4d043a66" "/opt/rustwide/cargo-home/bin/cargo" "+613d1972a772987ed4ee06faccbab0e2fc839871" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 77fee80e455bc2cfd23914400cdcacabfce36506f4056d85924c2b54dd24b055 [INFO] running `Command { std: "docker" "start" "-a" "77fee80e455bc2cfd23914400cdcacabfce36506f4056d85924c2b54dd24b055", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.50 [INFO] [stderr] Compiling quote v1.0.23 [INFO] [stderr] Compiling unicode-ident v1.0.6 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling libc v0.2.139 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling regex-syntax v0.6.28 [INFO] [stderr] Compiling bindgen v0.59.2 [INFO] [stderr] Compiling shlex v1.1.0 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling libloading v0.7.4 [INFO] [stderr] Compiling pkg-config v0.3.26 [INFO] [stderr] Compiling cc v1.0.78 [INFO] [stderr] Compiling syn v1.0.107 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling ffmpeg-next v5.1.1 [INFO] [stderr] Compiling once_cell v1.17.0 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling unicode-bidi v0.3.10 [INFO] [stderr] Compiling percent-encoding v2.2.0 [INFO] [stderr] Compiling form_urlencoded v1.1.0 [INFO] [stderr] Compiling tracing-core v0.1.30 [INFO] [stderr] Compiling pin-project-lite v0.2.9 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling clang-sys v1.4.0 [INFO] [stderr] Compiling num_cpus v1.15.0 [INFO] [stderr] Compiling regex v1.7.1 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling idna v0.3.0 [INFO] [stderr] Compiling url v2.3.1 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Compiling tracing-attributes v0.1.23 [INFO] [stderr] Compiling ffmpeg-sys-next v5.1.1 [INFO] [stderr] Compiling tracing v0.1.37 [INFO] [stderr] Compiling video-rs v0.1.8 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 54s [INFO] running `Command { std: "docker" "inspect" "77fee80e455bc2cfd23914400cdcacabfce36506f4056d85924c2b54dd24b055", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "77fee80e455bc2cfd23914400cdcacabfce36506f4056d85924c2b54dd24b055", kill_on_drop: false }` [INFO] [stdout] 77fee80e455bc2cfd23914400cdcacabfce36506f4056d85924c2b54dd24b055 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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 -Copt-level=3" "-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:7c93e6f9a94679f34221d1005849d4c83862f85b14a264fa0883942f4d043a66" "/opt/rustwide/cargo-home/bin/cargo" "+613d1972a772987ed4ee06faccbab0e2fc839871" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8e03570e28e1a93f66fa0b432f0ca563c02269b355e2a464d501b06eeae9c20d [INFO] running `Command { std: "docker" "start" "-a" "8e03570e28e1a93f66fa0b432f0ca563c02269b355e2a464d501b06eeae9c20d", kill_on_drop: false }` [INFO] [stderr] Compiling video-rs v0.1.8 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.44s [INFO] running `Command { std: "docker" "inspect" "8e03570e28e1a93f66fa0b432f0ca563c02269b355e2a464d501b06eeae9c20d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8e03570e28e1a93f66fa0b432f0ca563c02269b355e2a464d501b06eeae9c20d", kill_on_drop: false }` [INFO] [stdout] 8e03570e28e1a93f66fa0b432f0ca563c02269b355e2a464d501b06eeae9c20d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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 -Copt-level=3" "-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:7c93e6f9a94679f34221d1005849d4c83862f85b14a264fa0883942f4d043a66" "/opt/rustwide/cargo-home/bin/cargo" "+613d1972a772987ed4ee06faccbab0e2fc839871" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] d4dedf0ea61af862086aef8ec1e8b6eafa6a5d13c0cbeabda249303cd31e9d95 [INFO] running `Command { std: "docker" "start" "-a" "d4dedf0ea61af862086aef8ec1e8b6eafa6a5d13c0cbeabda249303cd31e9d95", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/video_rs-1c3db3924a7e70fb) [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test resize::tests::calculate_fit_dims_even_works ... ok [INFO] [stdout] test resize::tests::calculate_fit_dims_works ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests video-rs [INFO] [stdout] [INFO] [stdout] running 13 tests [INFO] [stdout] test src/mux.rs - mux::Muxer::new (line 188) ... FAILED [INFO] [stdout] test src/decode.rs - decode::Decoder::new_with_options_and_resize (line 108) ... FAILED [INFO] [stdout] test src/io.rs - io::Reader::new_with_options (line 57) ... FAILED [INFO] [stdout] test src/options.rs - options::Options<'_>::from (line 117) ... FAILED [INFO] [stdout] test src/io.rs - io::Reader::read (line 89) ... FAILED [INFO] [stdout] test src/io.rs - io::BufWriter::new (line 304) ... FAILED [INFO] [stdout] test src/io.rs - io::PacketizedBufWriter::new (line 372) ... FAILED [INFO] [stdout] test src/encode.rs - encode::Encoder (line 53) ... FAILED [INFO] [stdout] test src/decode.rs - decode::Decoder (line 47) ... FAILED [INFO] [stdout] test src/io.rs - io::Writer::new_with_options (line 231) ... FAILED [INFO] [stdout] test src/ffi.rs - ffi::output_raw (line 41) ... FAILED [INFO] [stdout] test src/mux.rs - mux::Muxer::new_to_file (line 63) ... FAILED [INFO] [stdout] test src/mux.rs - mux::Muxer::new_to_buf (line 142) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/mux.rs - mux::Muxer::new (line 188) stdout ---- [INFO] [stdout] error: unexpected closing delimiter: `}` [INFO] [stdout] --> src/mux.rs:191:36 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mux_rs_188_0() { [INFO] [stdout] | - this opening brace... [INFO] [stdout] ... [INFO] [stdout] 5 | } _doctest_main_src_mux_rs_188_0() } [INFO] [stdout] | - ...matches this closing brace ^ unexpected closing delimiter [INFO] [stdout] [INFO] [stdout] error: mismatched closing delimiter: `)` [INFO] [stdout] --> src/mux.rs:188:74 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mux_rs_188_0() { [INFO] [stdout] | ^ unclosed delimiter [INFO] [stdout] 3 | let muxer = Muxer::new(BufWriter::new("mp4").unwrap()) [INFO] [stdout] 4 | .unwrap()); [INFO] [stdout] | ^ mismatched closing delimiter [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/decode.rs - decode::Decoder::new_with_options_and_resize (line 108) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Decoder` [INFO] [stdout] --> src/decode.rs:109:15 [INFO] [stdout] | [INFO] [stdout] 3 | let decoder = Decoder::new_with_options_and_resize( [INFO] [stdout] | ^^^^^^^ use of undeclared type `Decoder` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use ffmpeg_next::codec::traits::Decoder; [INFO] [stdout] | [INFO] [stdout] 2 | use ffmpeg_next::decoder::Decoder; [INFO] [stdout] | [INFO] [stdout] 2 | use video_rs::Decoder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/decode.rs:110:6 [INFO] [stdout] | [INFO] [stdout] 4 | &PathBuf::from("from_file.mp4").into(), [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Options` [INFO] [stdout] --> src/decode.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 5 | Options::new_with_rtsp_transport_tcp(), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Options` [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 5 | Option::new_with_rtsp_transport_tcp(), [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use video_rs::Options; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Resize` [INFO] [stdout] --> src/decode.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 6 | Resize::Exact(800, 600)) [INFO] [stdout] | ^^^^^^ use of undeclared type `Resize` [INFO] [stdout] | [INFO] [stdout] help: a builtin type with a similar name exists [INFO] [stdout] | [INFO] [stdout] 6 | isize::Exact(800, 600)) [INFO] [stdout] | ~~~~~ [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use video_rs::Resize; [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/io.rs - io::Reader::new_with_options (line 57) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap` [INFO] [stdout] --> src/io.rs:58:19 [INFO] [stdout] | [INFO] [stdout] 3 | let mut options = HashMap::new(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `HashMap` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Reader` [INFO] [stdout] --> src/io.rs:63:18 [INFO] [stdout] | [INFO] [stdout] 8 | let mut reader = Reader::new( [INFO] [stdout] | ^^^^^^ use of undeclared type `Reader` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use video_rs::Reader; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/io.rs:64:6 [INFO] [stdout] | [INFO] [stdout] 9 | &PathBuf::from("my_file.mp4").into(), [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 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/options.rs - options::Options<'_>::from (line 117) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap` [INFO] [stdout] --> src/options.rs:118:15 [INFO] [stdout] | [INFO] [stdout] 3 | let my_opts = HashMap::new(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `HashMap` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `options` in this scope [INFO] [stdout] --> src/options.rs:119:1 [INFO] [stdout] | [INFO] [stdout] 4 | options.insert( [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Options` in this scope [INFO] [stdout] --> src/options.rs:123:11 [INFO] [stdout] | [INFO] [stdout] 8 | let opts: Options = my_opts.into(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] --> /rustc/613d1972a772987ed4ee06faccbab0e2fc839871/library/core/src/option.rs:562:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named enum `Option` defined here [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 8 | let opts: Option = my_opts.into(); [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use video_rs::Options; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/io.rs - io::Reader::read (line 89) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/io.rs:90:26 [INFO] [stdout] | [INFO] [stdout] 3 | let mut reader = Reader(&PathBuf::from("my_video.mp4").into()).unwrap(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Reader` in this scope [INFO] [stdout] --> src/io.rs:90:18 [INFO] [stdout] | [INFO] [stdout] 3 | let mut reader = Reader(&PathBuf::from("my_video.mp4").into()).unwrap(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/io.rs - io::BufWriter::new (line 304) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BufWriter` [INFO] [stdout] --> src/io.rs:305:18 [INFO] [stdout] | [INFO] [stdout] 3 | let mut writer = BufWriter::new("mp4").unwrap(); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `BufWriter` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::BufWriter; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/io.rs - io::PacketizedBufWriter::new (line 372) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BufPacketizedWriter` [INFO] [stdout] --> src/io.rs:373:18 [INFO] [stdout] | [INFO] [stdout] 3 | let mut writer = BufPacketizedWriter::new("rtp").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared type `BufPacketizedWriter` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/encode.rs - encode::Encoder (line 53) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Encoder` [INFO] [stdout] --> src/encode.rs:54:15 [INFO] [stdout] | [INFO] [stdout] 3 | let encoder = Encoder::new( [INFO] [stdout] | ^^^^^^^ use of undeclared type `Encoder` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use ffmpeg_next::codec::traits::Encoder; [INFO] [stdout] | [INFO] [stdout] 2 | use ffmpeg_next::encoder::Encoder; [INFO] [stdout] | [INFO] [stdout] 2 | use ffmpeg_next::encoder::audio::Encoder; [INFO] [stdout] | [INFO] [stdout] 2 | use ffmpeg_next::encoder::subtitle::Encoder; [INFO] [stdout] | [INFO] [stdout] and 2 other candidates [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/encode.rs:55:6 [INFO] [stdout] | [INFO] [stdout] 4 | &PathBuf::from("video_in.mp4"), [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Decoder` [INFO] [stdout] --> src/encode.rs:58:15 [INFO] [stdout] | [INFO] [stdout] 7 | let decoder = Decoder::new(&PathBuf::from("video_out.mkv")).unwrap(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Decoder` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use ffmpeg_next::codec::traits::Decoder; [INFO] [stdout] | [INFO] [stdout] 2 | use ffmpeg_next::decoder::Decoder; [INFO] [stdout] | [INFO] [stdout] 2 | use video_rs::Decoder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/encode.rs:58:29 [INFO] [stdout] | [INFO] [stdout] 7 | let decoder = Decoder::new(&PathBuf::from("video_out.mkv")).unwrap(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Settings` [INFO] [stdout] --> src/encode.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 5 | Settings::for_h264_yuv420p(800, 600, 30.0)) [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Settings` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 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/decode.rs - decode::Decoder (line 47) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Decoder` [INFO] [stdout] --> src/decode.rs:48:15 [INFO] [stdout] | [INFO] [stdout] 3 | let decoder = Decoder::new(&PathBuf::from("video.mp4")).unwrap(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Decoder` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use ffmpeg_next::codec::traits::Decoder; [INFO] [stdout] | [INFO] [stdout] 2 | use ffmpeg_next::decoder::Decoder; [INFO] [stdout] | [INFO] [stdout] 2 | use video_rs::Decoder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/decode.rs:48:29 [INFO] [stdout] | [INFO] [stdout] 3 | let decoder = Decoder::new(&PathBuf::from("video.mp4")).unwrap(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 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/io.rs - io::Writer::new_with_options (line 231) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap` [INFO] [stdout] --> src/io.rs:232:19 [INFO] [stdout] | [INFO] [stdout] 3 | let mut options = HashMap::new(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `HashMap` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/io.rs:238:6 [INFO] [stdout] | [INFO] [stdout] 9 | &PathBuf::from("my_file.mp4").into(), [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FileWriter` [INFO] [stdout] --> src/io.rs:237:18 [INFO] [stdout] | [INFO] [stdout] 8 | let mut writer = FileWriter::new( [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `FileWriter` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 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/ffi.rs - ffi::output_raw (line 41) stdout ---- [INFO] [stdout] error: expected one of `:`, `;`, `=`, `@`, or `|`, found `output_raw_buf_end` [INFO] [stdout] --> src/ffi.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 7 | let buf output_raw_buf_end(&mut output); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ expected one of `:`, `;`, `=`, `@`, or `|` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ffmpeg_extra` [INFO] [stdout] --> src/ffi.rs:42:14 [INFO] [stdout] | [INFO] [stdout] 3 | let output = ffmpeg_extra::output_raw("mp4"); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared crate or module `ffmpeg_extra` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 3 | let output = ffmpeg_next::output_raw("mp4"); [INFO] [stdout] | ~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `output_raw_buf_start` in this scope [INFO] [stdout] --> src/ffi.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 5 | output_raw_buf_start(&mut output); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/mux.rs - mux::Muxer::new_to_file (line 63) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Reader` [INFO] [stdout] --> src/mux.rs:64:14 [INFO] [stdout] | [INFO] [stdout] 3 | let reader = Reader::new( [INFO] [stdout] | ^^^^^^ use of undeclared type `Reader` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use video_rs::Reader; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/mux.rs:65:6 [INFO] [stdout] | [INFO] [stdout] 4 | &PathBuf::from("from_file.mp4").into()) [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/mux.rs:69:6 [INFO] [stdout] | [INFO] [stdout] 8 | &PathBuf::from("to_file.mkv").into()) [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Muxer` [INFO] [stdout] --> src/mux.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 7 | let muxer = Muxer::new_to_file( [INFO] [stdout] | ^^^^^ use of undeclared type `Muxer` [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/mux.rs - mux::Muxer::new_to_buf (line 142) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Reader` [INFO] [stdout] --> src/mux.rs:143:14 [INFO] [stdout] | [INFO] [stdout] 3 | let reader = Reader::new(&PathBuf::from("my_file.mp4").into()) [INFO] [stdout] | ^^^^^^ use of undeclared type `Reader` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use video_rs::Reader; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/mux.rs:143:27 [INFO] [stdout] | [INFO] [stdout] 3 | let reader = Reader::new(&PathBuf::from("my_file.mp4").into()) [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Muxer` [INFO] [stdout] --> src/mux.rs:145:17 [INFO] [stdout] | [INFO] [stdout] 5 | let mut muxer = Muxer::new_to_buf("mp4") [INFO] [stdout] | ^^^^^ use of undeclared type `Muxer` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 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/decode.rs - decode::Decoder (line 47) [INFO] [stdout] src/decode.rs - decode::Decoder::new_with_options_and_resize (line 108) [INFO] [stdout] src/encode.rs - encode::Encoder (line 53) [INFO] [stdout] src/ffi.rs - ffi::output_raw (line 41) [INFO] [stdout] src/io.rs - io::BufWriter::new (line 304) [INFO] [stdout] src/io.rs - io::PacketizedBufWriter::new (line 372) [INFO] [stdout] src/io.rs - io::Reader::new_with_options (line 57) [INFO] [stdout] src/io.rs - io::Reader::read (line 89) [INFO] [stdout] src/io.rs - io::Writer::new_with_options (line 231) [INFO] [stdout] src/mux.rs - mux::Muxer::new_to_buf (line 142) [INFO] [stdout] src/mux.rs - mux::Muxer::new (line 188) [INFO] [stdout] src/mux.rs - mux::Muxer::new_to_file (line 63) [INFO] [stdout] src/options.rs - options::Options<'_>::from (line 117) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 13 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.45s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "d4dedf0ea61af862086aef8ec1e8b6eafa6a5d13c0cbeabda249303cd31e9d95", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d4dedf0ea61af862086aef8ec1e8b6eafa6a5d13c0cbeabda249303cd31e9d95", kill_on_drop: false }` [INFO] [stdout] d4dedf0ea61af862086aef8ec1e8b6eafa6a5d13c0cbeabda249303cd31e9d95