[INFO] cloning repository https://github.com/bzhoek/rust2srs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bzhoek/rust2srs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbzhoek%2Frust2srs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbzhoek%2Frust2srs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 802a6125a46bb2fdf1ed33a84dbd3daa59654daf [INFO] checking bzhoek/rust2srs against master#b44e14f762fd4062faeba97f8f2bc470298ec1ac for pr-135331 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbzhoek%2Frust2srs" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/bzhoek/rust2srs on toolchain b44e14f762fd4062faeba97f8f2bc470298ec1ac [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b44e14f762fd4062faeba97f8f2bc470298ec1ac" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/bzhoek/rust2srs [INFO] finished tweaking git repo https://github.com/bzhoek/rust2srs [INFO] tweaked toml for git repo https://github.com/bzhoek/rust2srs written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/bzhoek/rust2srs 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" "+b44e14f762fd4062faeba97f8f2bc470298ec1ac" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rmp3 v0.3.1 [INFO] [stderr] Downloaded ffmpeg-sys-next v7.0.0 [INFO] [stderr] Downloaded ffmpeg-next v7.0.2 [INFO] [stderr] Downloaded jpeg-encoder v0.5.1 [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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+b44e14f762fd4062faeba97f8f2bc470298ec1ac" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7529598867faae1c233f8b70cb9885d487fc93e45f49e72d36e7b72f1ff0dc5f [INFO] running `Command { std: "docker" "start" "-a" "7529598867faae1c233f8b70cb9885d487fc93e45f49e72d36e7b72f1ff0dc5f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7529598867faae1c233f8b70cb9885d487fc93e45f49e72d36e7b72f1ff0dc5f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7529598867faae1c233f8b70cb9885d487fc93e45f49e72d36e7b72f1ff0dc5f", kill_on_drop: false }` [INFO] [stdout] 7529598867faae1c233f8b70cb9885d487fc93e45f49e72d36e7b72f1ff0dc5f [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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+b44e14f762fd4062faeba97f8f2bc470298ec1ac" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6bc022bc9296276c01b069ea8b356e19157d169e027751ccb8f2fbca3f4f98f1 [INFO] running `Command { std: "docker" "start" "-a" "6bc022bc9296276c01b069ea8b356e19157d169e027751ccb8f2fbca3f4f98f1", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.85 [INFO] [stderr] Compiling unicode-ident v1.0.11 [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling memchr v2.6.3 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling regex-syntax v0.7.5 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling thiserror v1.0.48 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling either v1.12.0 [INFO] [stderr] Compiling bindgen v0.69.4 [INFO] [stderr] Compiling bitflags v2.5.0 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling libloading v0.7.4 [INFO] [stderr] Compiling shlex v1.2.0 [INFO] [stderr] Compiling pkg-config v0.3.27 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Checking anstyle v1.0.7 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling ucd-trie v0.1.6 [INFO] [stderr] Checking is_terminal_polyfill v1.70.0 [INFO] [stderr] Checking anstyle-parse v0.2.1 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Checking colorchoice v1.0.0 [INFO] [stderr] Checking anstyle-query v1.0.0 [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Checking clap_lex v0.7.0 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Checking anstream v0.6.14 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling ffmpeg-next v7.0.2 [INFO] [stderr] Compiling clang-sys v1.6.1 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking aho-corasick v1.0.5 [INFO] [stderr] Checking jpeg-encoder v0.5.1 [INFO] [stderr] Checking assert_matches v1.5.0 [INFO] [stderr] Checking clap_builder v4.5.2 [INFO] [stderr] Compiling syn v2.0.31 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling regex-automata v0.3.8 [INFO] [stderr] Compiling rmp3 v0.3.1 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Compiling regex v1.9.5 [INFO] [stderr] Checking env_filter v0.1.0 [INFO] [stderr] Checking env_logger v0.11.3 [INFO] [stderr] Compiling thiserror-impl v1.0.48 [INFO] [stderr] Compiling clap_derive v4.5.4 [INFO] [stderr] Compiling pest v2.7.10 [INFO] [stderr] Checking clap v4.5.4 [INFO] [stderr] Compiling pest_meta v2.7.10 [INFO] [stderr] Compiling pest_generator v2.7.10 [INFO] [stderr] Compiling ffmpeg-sys-next v7.0.0 [INFO] [stderr] Compiling pest_derive v2.7.10 [INFO] [stderr] Checking rust2srs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/assa.rs:114:19 [INFO] [stdout] | [INFO] [stdout] 114 | let primary = offset_subtitle_file("tests/ichigo-01_jp.ass").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^-------------------------- argument #2 of type `&Option` is missing [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/lib.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn offset_subtitle_file(path: &str, offset: &Option) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ---------- -------------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 114 | let primary = offset_subtitle_file("tests/ichigo-01_jp.ass", /* &Option */).unwrap(); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/assa.rs:117:21 [INFO] [stdout] | [INFO] [stdout] 117 | let secondary = offset_subtitle_file("tests/ichigo-01_en.ass").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^-------------------------- argument #2 of type `&Option` is missing [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/lib.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn offset_subtitle_file(path: &str, offset: &Option) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ---------- -------------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 117 | let secondary = offset_subtitle_file("tests/ichigo-01_en.ass", /* &Option */).unwrap(); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/assa.rs:129:19 [INFO] [stdout] | [INFO] [stdout] 129 | let primary = offset_subtitle_file("tests/ichigo-01_jp.ass").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^-------------------------- argument #2 of type `&Option` is missing [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/lib.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn offset_subtitle_file(path: &str, offset: &Option) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ---------- -------------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 129 | let primary = offset_subtitle_file("tests/ichigo-01_jp.ass", /* &Option */).unwrap(); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/assa.rs:131:21 [INFO] [stdout] | [INFO] [stdout] 131 | let secondary = offset_subtitle_file("tests/ichigo-01_en.ass").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^-------------------------- argument #2 of type `&Option` is missing [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/lib.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn offset_subtitle_file(path: &str, offset: &Option) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ---------- -------------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 131 | let secondary = offset_subtitle_file("tests/ichigo-01_en.ass", /* &Option */).unwrap(); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/assa.rs:141:19 [INFO] [stdout] | [INFO] [stdout] 141 | let primary = offset_subtitle_file("tests/ichigo-01_jp.ass").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^-------------------------- argument #2 of type `&Option` is missing [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/lib.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn offset_subtitle_file(path: &str, offset: &Option) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ---------- -------------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 141 | let primary = offset_subtitle_file("tests/ichigo-01_jp.ass", /* &Option */).unwrap(); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/assa.rs:142:21 [INFO] [stdout] | [INFO] [stdout] 142 | let secondary = offset_subtitle_file("tests/ichigo-01_en.ass").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^-------------------------- argument #2 of type `&Option` is missing [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/lib.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn offset_subtitle_file(path: &str, offset: &Option) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ---------- -------------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 142 | let secondary = offset_subtitle_file("tests/ichigo-01_en.ass", /* &Option */).unwrap(); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/mp3.rs:116:68 [INFO] [stdout] | [INFO] [stdout] 116 | let subtitles = offset_subtitle_file("tests/ichigo-01_jp.ass", None).unwrap(); [INFO] [stdout] | -------------------- ^^^^ expected `&Option`, found `Option<_>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&Option` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/lib.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn offset_subtitle_file(path: &str, offset: &Option) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ -------------------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 116 | let subtitles = offset_subtitle_file("tests/ichigo-01_jp.ass", &None).unwrap(); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/mp3.rs:122:65 [INFO] [stdout] | [INFO] [stdout] 122 | let subtitles = offset_subtitle_file("tests/totoro.ja.srt", None).unwrap(); [INFO] [stdout] | -------------------- ^^^^ expected `&Option`, found `Option<_>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&Option` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/lib.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn offset_subtitle_file(path: &str, offset: &Option) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ -------------------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 122 | let subtitles = offset_subtitle_file("tests/totoro.ja.srt", &None).unwrap(); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/mp3.rs:137:69 [INFO] [stdout] | [INFO] [stdout] 137 | let mut subtitles = offset_subtitle_file("tests/totoro.ja.srt", None).unwrap(); [INFO] [stdout] | -------------------- ^^^^ expected `&Option`, found `Option<_>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&Option` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/lib.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn offset_subtitle_file(path: &str, offset: &Option) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ -------------------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 137 | let mut subtitles = offset_subtitle_file("tests/totoro.ja.srt", &None).unwrap(); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/webvtt.rs:95:19 [INFO] [stdout] | [INFO] [stdout] 95 | let primary = offset_subtitle_file("tests/totoro.ja.vtt").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^----------------------- argument #2 of type `&Option` is missing [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/lib.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn offset_subtitle_file(path: &str, offset: &Option) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ---------- -------------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 95 | let primary = offset_subtitle_file("tests/totoro.ja.vtt", /* &Option */).unwrap(); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/webvtt.rs:96:21 [INFO] [stdout] | [INFO] [stdout] 96 | let secondary = offset_subtitle_file("tests/totoro.en.vtt").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^----------------------- argument #2 of type `&Option` is missing [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/lib.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn offset_subtitle_file(path: &str, offset: &Option) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ---------- -------------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 96 | let secondary = offset_subtitle_file("tests/totoro.en.vtt", /* &Option */).unwrap(); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/webvtt.rs:107:19 [INFO] [stdout] | [INFO] [stdout] 107 | let primary = offset_subtitle_file("tests/totoro.ja.vtt").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^----------------------- argument #2 of type `&Option` is missing [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/lib.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn offset_subtitle_file(path: &str, offset: &Option) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ---------- -------------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 107 | let primary = offset_subtitle_file("tests/totoro.ja.vtt", /* &Option */).unwrap(); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/webvtt.rs:108:21 [INFO] [stdout] | [INFO] [stdout] 108 | let secondary = offset_subtitle_file("tests/totoro.en.vtt").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^----------------------- argument #2 of type `&Option` is missing [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/lib.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn offset_subtitle_file(path: &str, offset: &Option) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ---------- -------------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 108 | let secondary = offset_subtitle_file("tests/totoro.en.vtt", /* &Option */).unwrap(); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/ffmpeg.rs:130:68 [INFO] [stdout] | [INFO] [stdout] 130 | let mut dialogue = offset_subtitle_file("tests/totoro.ja.srt", None).unwrap(); [INFO] [stdout] | -------------------- ^^^^ expected `&Option`, found `Option<_>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&Option` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/lib.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn offset_subtitle_file(path: &str, offset: &Option) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ -------------------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 130 | let mut dialogue = offset_subtitle_file("tests/totoro.ja.srt", &None).unwrap(); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/ffmpeg.rs:138:64 [INFO] [stdout] | [INFO] [stdout] 138 | let dialogue = offset_subtitle_file("tests/totoro.ja.srt", None).unwrap(); [INFO] [stdout] | -------------------- ^^^^ expected `&Option`, found `Option<_>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&Option` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/lib.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn offset_subtitle_file(path: &str, offset: &Option) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ -------------------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 138 | let dialogue = offset_subtitle_file("tests/totoro.ja.srt", &None).unwrap(); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust2srs` (lib test) due to 15 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "6bc022bc9296276c01b069ea8b356e19157d169e027751ccb8f2fbca3f4f98f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6bc022bc9296276c01b069ea8b356e19157d169e027751ccb8f2fbca3f4f98f1", kill_on_drop: false }` [INFO] [stdout] 6bc022bc9296276c01b069ea8b356e19157d169e027751ccb8f2fbca3f4f98f1