[INFO] cloning repository https://github.com/ldm0/ffgen [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ldm0/ffgen" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fldm0%2Fffgen", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fldm0%2Fffgen'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 23638bbda1b8104ac0f8692ebda42c679dc9d5bb [INFO] checking ldm0/ffgen against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fldm0%2Fffgen" "/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/ldm0/ffgen on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ldm0/ffgen [INFO] finished tweaking git repo https://github.com/ldm0/ffgen [INFO] tweaked toml for git repo https://github.com/ldm0/ffgen written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ldm0/ffgen 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bindgen v0.54.1 [INFO] [stderr] Downloaded rusty_ffmpeg v0.2.5 [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fdf76ba686a44fd5a8dcbcf62ff719e6d912ba847752c8606413330c34eb6565 [INFO] running `Command { std: "docker" "start" "-a" "fdf76ba686a44fd5a8dcbcf62ff719e6d912ba847752c8606413330c34eb6565", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fdf76ba686a44fd5a8dcbcf62ff719e6d912ba847752c8606413330c34eb6565", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fdf76ba686a44fd5a8dcbcf62ff719e6d912ba847752c8606413330c34eb6565", kill_on_drop: false }` [INFO] [stdout] fdf76ba686a44fd5a8dcbcf62ff719e6d912ba847752c8606413330c34eb6565 [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2f974f34b09177523a7030f4a009da6acd2a425e9f3812f43d49adb141f49517 [INFO] running `Command { std: "docker" "start" "-a" "2f974f34b09177523a7030f4a009da6acd2a425e9f3812f43d49adb141f49517", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.73 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling cc v1.0.58 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Compiling proc-macro2 v1.0.19 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling unicode-width v0.1.8 [INFO] [stderr] Compiling regex-syntax v0.6.18 [INFO] [stderr] Compiling bindgen v0.54.1 [INFO] [stderr] Compiling termcolor v1.1.0 [INFO] [stderr] Compiling thread_local v1.0.1 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling humantime v1.3.0 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling lazycell v1.2.1 [INFO] [stderr] Compiling nom v5.1.2 [INFO] [stderr] Compiling shlex v0.1.1 [INFO] [stderr] Compiling pkg-config v0.3.18 [INFO] [stderr] Compiling once_cell v1.4.0 [INFO] [stderr] Compiling memoffset v0.5.5 [INFO] [stderr] Compiling aho-corasick v0.7.13 [INFO] [stderr] Compiling clang-sys v0.29.3 [INFO] [stderr] Compiling libloading v0.5.2 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling which v3.1.1 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling clap v2.33.1 [INFO] [stderr] Compiling regex v1.3.9 [INFO] [stderr] Compiling cexpr v0.4.0 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Compiling rusty_ffmpeg v0.2.5 [INFO] [stderr] Checking ffgen v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `once_cell::sync::Lazy` [INFO] [stdout] --> src/cmdutils.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use once_cell::sync::Lazy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `avutils::*` [INFO] [stdout] --> src/cmdutils.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | avutil::{avutils::*, error::*}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CStr`, `collections::HashMap`, `mem`, `slice`, `sync::Mutex` [INFO] [stdout] --> src/cmdutils.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | collections::HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | default, [INFO] [stdout] 13 | ffi::{CStr, CString}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 14 | fmt, marker, mem, ptr, slice, [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] 15 | sync::Mutex, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug`, `info` [INFO] [stdout] --> src/ffmpeg.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{debug, error, info}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `libc::c_void` [INFO] [stdout] --> src/ffmpeg_opt.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use libc::c_void; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug`, `error`, `info` [INFO] [stdout] --> src/ffmpeg_opt.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{debug, error, info}; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `avutils::*`, `error::*`, `ffi` [INFO] [stdout] --> src/ffmpeg_opt.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | avutil::{avutils::*, error::*}, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] 5 | ffi, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CStr`, `CString`, `ptr`, `slice` [INFO] [stdout] --> src/ffmpeg_opt.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | ffi::{CStr, CString}, [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] 9 | ptr, slice, [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `INT_CB`, `OptionsContext`, `self` [INFO] [stdout] --> src/ffmpeg_opt.rs:19:14 [INFO] [stdout] | [INFO] [stdout] 19 | ffmpeg::{self, OptionsContext, INT_CB}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/graph_parser.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use log::{debug, error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `OptionGroupList`, `OptionGroup`, `OptionKV`, `OptionParseContext` [INFO] [stdout] --> src/options.rs:11:32 [INFO] [stdout] | [INFO] [stdout] 11 | OptionDef, OptionFlag, OptionGroup, OptionGroupDef, OptionGroupList, OptionKV, [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] 12 | OptionOperation, OptionParseContext, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `env_logger` is imported redundantly [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use env_logger; [INFO] [stdout] | ^^^^^^^^^^ the item `env_logger` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `half_open_range_patterns` has been stable since 1.66.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | #![feature(half_open_range_patterns)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `bool_to_option` has been stable since 1.62.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | #![feature(bool_to_option)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `ptr_offset_from` has been stable since 1.47.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | #![feature(ptr_offset_from)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `once_cell::sync::Lazy` [INFO] [stdout] --> src/cmdutils.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use once_cell::sync::Lazy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `avutils::*` [INFO] [stdout] --> src/cmdutils.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | avutil::{avutils::*, error::*}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CStr`, `collections::HashMap`, `mem`, `slice`, `sync::Mutex` [INFO] [stdout] --> src/cmdutils.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | collections::HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | default, [INFO] [stdout] 13 | ffi::{CStr, CString}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 14 | fmt, marker, mem, ptr, slice, [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] 15 | sync::Mutex, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug`, `info` [INFO] [stdout] --> src/ffmpeg.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{debug, error, info}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `libc::c_void` [INFO] [stdout] --> src/ffmpeg_opt.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use libc::c_void; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug`, `error`, `info` [INFO] [stdout] --> src/ffmpeg_opt.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{debug, error, info}; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `avutils::*`, `error::*`, `ffi` [INFO] [stdout] --> src/ffmpeg_opt.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | avutil::{avutils::*, error::*}, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] 5 | ffi, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CStr`, `CString`, `ptr`, `slice` [INFO] [stdout] --> src/ffmpeg_opt.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | ffi::{CStr, CString}, [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] 9 | ptr, slice, [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `INT_CB`, `OptionsContext`, `self` [INFO] [stdout] --> src/ffmpeg_opt.rs:19:14 [INFO] [stdout] | [INFO] [stdout] 19 | ffmpeg::{self, OptionsContext, INT_CB}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/graph_parser.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use log::{debug, error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `OptionGroupList`, `OptionGroup`, `OptionKV`, `OptionParseContext` [INFO] [stdout] --> src/options.rs:11:32 [INFO] [stdout] | [INFO] [stdout] 11 | OptionDef, OptionFlag, OptionGroup, OptionGroupDef, OptionGroupList, OptionKV, [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] 12 | OptionOperation, OptionParseContext, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `env_logger` is imported redundantly [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use env_logger; [INFO] [stdout] | ^^^^^^^^^^ the item `env_logger` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `half_open_range_patterns` has been stable since 1.66.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | #![feature(half_open_range_patterns)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `bool_to_option` has been stable since 1.62.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | #![feature(bool_to_option)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `ptr_offset_from` has been stable since 1.47.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | #![feature(ptr_offset_from)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/cmdutils.rs:644:35 [INFO] [stdout] | [INFO] [stdout] 644 | unsafe { ffi::av_dict_set(&mut codec_opts as *mut _, opt_ptr, arg_ptr, flags as _) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 644 | unsafe { ffi::av_dict_set(addr_of_mut!(codec_opts) as *mut _, opt_ptr, arg_ptr, flags as _) }; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/cmdutils.rs:662:35 [INFO] [stdout] | [INFO] [stdout] 662 | unsafe { ffi::av_dict_set(&mut format_opts as *mut _, opt_ptr, arg_ptr, flags as _) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 662 | unsafe { ffi::av_dict_set(addr_of_mut!(format_opts) as *mut _, opt_ptr, arg_ptr, flags as _) }; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/cmdutils.rs:733:31 [INFO] [stdout] | [INFO] [stdout] 733 | unsafe { ffi::av_dict_set(&mut sws_dict as *mut _, flags.as_ptr(), bicubic.as_ptr(), 0) }; [INFO] [stdout] | ^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 733 | unsafe { ffi::av_dict_set(addr_of_mut!(sws_dict) as *mut _, flags.as_ptr(), bicubic.as_ptr(), 0) }; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/cmdutils.rs:738:27 [INFO] [stdout] | [INFO] [stdout] 738 | ffi::av_dict_free(&mut swr_opts as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 738 | ffi::av_dict_free(addr_of_mut!(swr_opts) as *mut _); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/cmdutils.rs:739:27 [INFO] [stdout] | [INFO] [stdout] 739 | ffi::av_dict_free(&mut sws_dict as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 739 | ffi::av_dict_free(addr_of_mut!(sws_dict) as *mut _); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/cmdutils.rs:740:27 [INFO] [stdout] | [INFO] [stdout] 740 | ffi::av_dict_free(&mut format_opts as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 740 | ffi::av_dict_free(addr_of_mut!(format_opts) as *mut _); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/cmdutils.rs:741:27 [INFO] [stdout] | [INFO] [stdout] 741 | ffi::av_dict_free(&mut codec_opts as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 741 | ffi::av_dict_free(addr_of_mut!(codec_opts) as *mut _); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/cmdutils.rs:742:27 [INFO] [stdout] | [INFO] [stdout] 742 | ffi::av_dict_free(&mut resample_opts as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 742 | ffi::av_dict_free(addr_of_mut!(resample_opts) as *mut _); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/cmdutils.rs:644:35 [INFO] [stdout] | [INFO] [stdout] 644 | unsafe { ffi::av_dict_set(&mut codec_opts as *mut _, opt_ptr, arg_ptr, flags as _) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 644 | unsafe { ffi::av_dict_set(addr_of_mut!(codec_opts) as *mut _, opt_ptr, arg_ptr, flags as _) }; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/cmdutils.rs:662:35 [INFO] [stdout] | [INFO] [stdout] 662 | unsafe { ffi::av_dict_set(&mut format_opts as *mut _, opt_ptr, arg_ptr, flags as _) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 662 | unsafe { ffi::av_dict_set(addr_of_mut!(format_opts) as *mut _, opt_ptr, arg_ptr, flags as _) }; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/cmdutils.rs:733:31 [INFO] [stdout] | [INFO] [stdout] 733 | unsafe { ffi::av_dict_set(&mut sws_dict as *mut _, flags.as_ptr(), bicubic.as_ptr(), 0) }; [INFO] [stdout] | ^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 733 | unsafe { ffi::av_dict_set(addr_of_mut!(sws_dict) as *mut _, flags.as_ptr(), bicubic.as_ptr(), 0) }; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/cmdutils.rs:738:27 [INFO] [stdout] | [INFO] [stdout] 738 | ffi::av_dict_free(&mut swr_opts as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 738 | ffi::av_dict_free(addr_of_mut!(swr_opts) as *mut _); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/cmdutils.rs:739:27 [INFO] [stdout] | [INFO] [stdout] 739 | ffi::av_dict_free(&mut sws_dict as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 739 | ffi::av_dict_free(addr_of_mut!(sws_dict) as *mut _); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/cmdutils.rs:740:27 [INFO] [stdout] | [INFO] [stdout] 740 | ffi::av_dict_free(&mut format_opts as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 740 | ffi::av_dict_free(addr_of_mut!(format_opts) as *mut _); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/cmdutils.rs:741:27 [INFO] [stdout] | [INFO] [stdout] 741 | ffi::av_dict_free(&mut codec_opts as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 741 | ffi::av_dict_free(addr_of_mut!(codec_opts) as *mut _); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/cmdutils.rs:742:27 [INFO] [stdout] | [INFO] [stdout] 742 | ffi::av_dict_free(&mut resample_opts as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 742 | ffi::av_dict_free(addr_of_mut!(resample_opts) as *mut _); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `GroupInfile` is never constructed [INFO] [stdout] --> src/cmdutils.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 20 | enum OptGroup { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 21 | GroupOutfile = 0, [INFO] [stdout] 22 | GroupInfile = 1, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `argname` and `u` are never read [INFO] [stdout] --> src/cmdutils.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 78 | pub struct OptionDef<'a> { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 81 | pub argname: Option<&'a str>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 82 | pub flags: OptionFlag, [INFO] [stdout] 83 | pub u: OptionOperation, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `OptionDef` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `flags` is never read [INFO] [stdout] --> src/cmdutils.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 96 | pub struct OptionGroupDef<'global> { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 99 | pub flags: OptionFlag, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OptionGroupDef` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `opt`, `key`, and `val` are never read [INFO] [stdout] --> src/cmdutils.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 105 | pub struct OptionKV<'global> { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 106 | pub opt: &'global OptionDef<'global>, [INFO] [stdout] | ^^^ [INFO] [stdout] 107 | pub key: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 108 | pub val: String, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OptionKV` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `str`, `i64`, `ui64`, `f`, and `dbl` are never read [INFO] [stdout] --> src/cmdutils.rs:186:9 [INFO] [stdout] | [INFO] [stdout] 185 | pub union SpecifierOptValue { [INFO] [stdout] | ----------------- fields in this union [INFO] [stdout] 186 | pub str: *mut u8, [INFO] [stdout] | ^^^ [INFO] [stdout] 187 | pub i: isize, [INFO] [stdout] 188 | pub i64: i64, [INFO] [stdout] | ^^^ [INFO] [stdout] 189 | pub ui64: u64, [INFO] [stdout] | ^^^^ [INFO] [stdout] 190 | pub f: f32, [INFO] [stdout] | ^ [INFO] [stdout] 191 | pub dbl: f64, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `specifier` and `u` are never read [INFO] [stdout] --> src/cmdutils.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 209 | pub struct SpecifierOpt { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 210 | pub specifier: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 211 | pub u: SpecifierOptValue, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `SpecifierOpt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_optgroup` is never used [INFO] [stdout] --> src/cmdutils.rs:215:8 [INFO] [stdout] | [INFO] [stdout] 215 | pub fn parse_optgroup<'ctxt>( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_number` is never used [INFO] [stdout] --> src/cmdutils.rs:245:8 [INFO] [stdout] | [INFO] [stdout] 245 | pub fn parse_number( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_time` is never used [INFO] [stdout] --> src/cmdutils.rs:274:4 [INFO] [stdout] | [INFO] [stdout] 274 | fn parse_time(context: &str, timestr: &str, is_duration: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_option` is never used [INFO] [stdout] --> src/cmdutils.rs:291:4 [INFO] [stdout] | [INFO] [stdout] 291 | fn write_option( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `RECEIVED_NB_SIGNALS` is never used [INFO] [stdout] --> src/ffmpeg.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | static RECEIVED_NB_SIGNALS: Lazy> = Lazy::new(|| Mutex::new(0)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `TRANSCODE_INIT_DONE` is never used [INFO] [stdout] --> src/ffmpeg.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | static TRANSCODE_INIT_DONE: Lazy> = Lazy::new(|| Mutex::new(0)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decodec_interrupt_cb` is never used [INFO] [stdout] --> src/ffmpeg.rs:23:22 [INFO] [stdout] | [INFO] [stdout] 23 | unsafe extern "C" fn decodec_interrupt_cb(_ctx: *mut libc::c_void) -> libc::c_int { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INT_CB` is never used [INFO] [stdout] --> src/ffmpeg.rs:33:11 [INFO] [stdout] | [INFO] [stdout] 33 | pub const INT_CB: ffi::AVIOInterruptCB = ffi::AVIOInterruptCB { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `remove_avoptions` is never used [INFO] [stdout] --> src/ffmpeg.rs:38:15 [INFO] [stdout] | [INFO] [stdout] 38 | pub unsafe fn remove_avoptions(a: &mut *mut ffi::AVDictionary, b: *mut ffi::AVDictionary) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `assert_avoptions` is never used [INFO] [stdout] --> src/ffmpeg.rs:52:15 [INFO] [stdout] | [INFO] [stdout] 52 | pub unsafe fn assert_avoptions(a: *mut ffi::AVDictionary) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `disabled`, `file_index`, `stream_index`, `sync_file_index`, `sync_stream_index`, and `linklabel` are never read [INFO] [stdout] --> src/ffmpeg.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 68 | pub struct StreamMap { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 69 | pub disabled: isize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 70 | pub file_index: isize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 71 | pub stream_index: isize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 72 | pub sync_file_index: isize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 73 | pub sync_stream_index: isize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 74 | pub linklabel: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StreamMap` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `file_idx`, `stream_idx`, `channel_idx`, `ofile_idx`, and `ostream_idx` are never read [INFO] [stdout] --> src/ffmpeg.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 78 | pub struct AudioChannelMap { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 79 | // input [INFO] [stdout] 80 | pub file_idx: isize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 81 | pub stream_idx: isize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 82 | pub channel_idx: isize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 83 | // output [INFO] [stdout] 84 | pub ofile_idx: isize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 85 | pub ostream_idx: isize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AudioChannelMap` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/ffmpeg.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 89 | pub struct OptionsContext<'a, 'group> { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 90 | pub g: &'a mut OptionGroup<'group>, [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 120 | pub stream_maps: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | pub audio_channel_maps: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 126 | pub metadata_global_manual: isize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 127 | pub metadata_streams_manual: isize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 128 | pub metadata_chapters_manual: isize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 129 | pub attachments: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub streamid_map: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OptionsContext` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ffmpeg.rs:185:12 [INFO] [stdout] | [INFO] [stdout] 184 | impl<'a, 'group> OptionsContext<'a, 'group> { [INFO] [stdout] | ------------------------------------------- associated function in this implementation [INFO] [stdout] 185 | pub fn new(group: &'a mut OptionGroup<'group>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OptGroup` is never used [INFO] [stdout] --> src/ffmpeg_opt.rs:24:6 [INFO] [stdout] | [INFO] [stdout] 24 | enum OptGroup { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get` is never used [INFO] [stdout] --> src/graph_parser.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 53 | impl<'buffer> GraphParser<'buffer> { [INFO] [stdout] | ---------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 66 | fn get(&mut self) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VSYNC_AUTO` is never used [INFO] [stdout] --> src/options.rs:325:7 [INFO] [stdout] | [INFO] [stdout] 325 | const VSYNC_AUTO: isize = -1; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `input_stream_potentially_available` is never used [INFO] [stdout] --> src/options.rs:342:16 [INFO] [stdout] | [INFO] [stdout] 342 | pub static mut input_stream_potentially_available: isize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `video_sync_method` is never used [INFO] [stdout] --> src/options.rs:353:16 [INFO] [stdout] | [INFO] [stdout] 353 | pub static mut video_sync_method: isize = VSYNC_AUTO; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `abort_on_flags` is never used [INFO] [stdout] --> src/options.rs:365:16 [INFO] [stdout] | [INFO] [stdout] 365 | pub static mut abort_on_flags: isize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `opt_default_new` is never used [INFO] [stdout] --> src/options.rs:591:4 [INFO] [stdout] | [INFO] [stdout] 591 | fn opt_default_new(optctx: *mut c_void, opt: &str, arg: &str) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `format_opts` should have an upper case name [INFO] [stdout] --> src/cmdutils.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | static mut format_opts: *mut ffi::AVDictionary = ptr::null_mut(); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `FORMAT_OPTS` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `codec_opts` should have an upper case name [INFO] [stdout] --> src/cmdutils.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | static mut codec_opts: *mut ffi::AVDictionary = ptr::null_mut(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `CODEC_OPTS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `sws_dict` should have an upper case name [INFO] [stdout] --> src/cmdutils.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | static mut sws_dict: *mut ffi::AVDictionary = ptr::null_mut(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `SWS_DICT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `swr_opts` should have an upper case name [INFO] [stdout] --> src/cmdutils.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | static mut swr_opts: *mut ffi::AVDictionary = ptr::null_mut(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `SWR_OPTS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `resample_opts` should have an upper case name [INFO] [stdout] --> src/cmdutils.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | static mut resample_opts: *mut ffi::AVDictionary = ptr::null_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `RESAMPLE_OPTS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/cmdutils.rs:252:52 [INFO] [stdout] | [INFO] [stdout] 252 | let numstr_ptr = CString::new(numstr).unwrap().as_ptr(); [INFO] [stdout] | ----------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/cmdutils.rs:276:54 [INFO] [stdout] | [INFO] [stdout] 276 | let timestr_ptr = CString::new(timestr).unwrap().as_ptr(); [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 57 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `GroupInfile` is never constructed [INFO] [stdout] --> src/cmdutils.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 20 | enum OptGroup { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 21 | GroupOutfile = 0, [INFO] [stdout] 22 | GroupInfile = 1, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `u` is never read [INFO] [stdout] --> src/cmdutils.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 78 | pub struct OptionDef<'a> { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 83 | pub u: OptionOperation, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `OptionDef` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `flags` is never read [INFO] [stdout] --> src/cmdutils.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 96 | pub struct OptionGroupDef<'global> { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 99 | pub flags: OptionFlag, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OptionGroupDef` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `opt`, `key`, and `val` are never read [INFO] [stdout] --> src/cmdutils.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 105 | pub struct OptionKV<'global> { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 106 | pub opt: &'global OptionDef<'global>, [INFO] [stdout] | ^^^ [INFO] [stdout] 107 | pub key: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 108 | pub val: String, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OptionKV` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `str`, `i64`, `ui64`, `f`, and `dbl` are never read [INFO] [stdout] --> src/cmdutils.rs:186:9 [INFO] [stdout] | [INFO] [stdout] 185 | pub union SpecifierOptValue { [INFO] [stdout] | ----------------- fields in this union [INFO] [stdout] 186 | pub str: *mut u8, [INFO] [stdout] | ^^^ [INFO] [stdout] 187 | pub i: isize, [INFO] [stdout] 188 | pub i64: i64, [INFO] [stdout] | ^^^ [INFO] [stdout] 189 | pub ui64: u64, [INFO] [stdout] | ^^^^ [INFO] [stdout] 190 | pub f: f32, [INFO] [stdout] | ^ [INFO] [stdout] 191 | pub dbl: f64, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `specifier` and `u` are never read [INFO] [stdout] --> src/cmdutils.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 209 | pub struct SpecifierOpt { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 210 | pub specifier: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 211 | pub u: SpecifierOptValue, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `SpecifierOpt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_optgroup` is never used [INFO] [stdout] --> src/cmdutils.rs:215:8 [INFO] [stdout] | [INFO] [stdout] 215 | pub fn parse_optgroup<'ctxt>( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_number` is never used [INFO] [stdout] --> src/cmdutils.rs:245:8 [INFO] [stdout] | [INFO] [stdout] 245 | pub fn parse_number( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_time` is never used [INFO] [stdout] --> src/cmdutils.rs:274:4 [INFO] [stdout] | [INFO] [stdout] 274 | fn parse_time(context: &str, timestr: &str, is_duration: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_option` is never used [INFO] [stdout] --> src/cmdutils.rs:291:4 [INFO] [stdout] | [INFO] [stdout] 291 | fn write_option( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `RECEIVED_NB_SIGNALS` is never used [INFO] [stdout] --> src/ffmpeg.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | static RECEIVED_NB_SIGNALS: Lazy> = Lazy::new(|| Mutex::new(0)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `TRANSCODE_INIT_DONE` is never used [INFO] [stdout] --> src/ffmpeg.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | static TRANSCODE_INIT_DONE: Lazy> = Lazy::new(|| Mutex::new(0)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decodec_interrupt_cb` is never used [INFO] [stdout] --> src/ffmpeg.rs:23:22 [INFO] [stdout] | [INFO] [stdout] 23 | unsafe extern "C" fn decodec_interrupt_cb(_ctx: *mut libc::c_void) -> libc::c_int { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INT_CB` is never used [INFO] [stdout] --> src/ffmpeg.rs:33:11 [INFO] [stdout] | [INFO] [stdout] 33 | pub const INT_CB: ffi::AVIOInterruptCB = ffi::AVIOInterruptCB { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `remove_avoptions` is never used [INFO] [stdout] --> src/ffmpeg.rs:38:15 [INFO] [stdout] | [INFO] [stdout] 38 | pub unsafe fn remove_avoptions(a: &mut *mut ffi::AVDictionary, b: *mut ffi::AVDictionary) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `assert_avoptions` is never used [INFO] [stdout] --> src/ffmpeg.rs:52:15 [INFO] [stdout] | [INFO] [stdout] 52 | pub unsafe fn assert_avoptions(a: *mut ffi::AVDictionary) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `disabled`, `file_index`, `stream_index`, `sync_file_index`, `sync_stream_index`, and `linklabel` are never read [INFO] [stdout] --> src/ffmpeg.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 68 | pub struct StreamMap { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 69 | pub disabled: isize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 70 | pub file_index: isize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 71 | pub stream_index: isize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 72 | pub sync_file_index: isize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 73 | pub sync_stream_index: isize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 74 | pub linklabel: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StreamMap` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `file_idx`, `stream_idx`, `channel_idx`, `ofile_idx`, and `ostream_idx` are never read [INFO] [stdout] --> src/ffmpeg.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 78 | pub struct AudioChannelMap { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 79 | // input [INFO] [stdout] 80 | pub file_idx: isize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 81 | pub stream_idx: isize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 82 | pub channel_idx: isize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 83 | // output [INFO] [stdout] 84 | pub ofile_idx: isize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 85 | pub ostream_idx: isize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AudioChannelMap` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/ffmpeg.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 89 | pub struct OptionsContext<'a, 'group> { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 90 | pub g: &'a mut OptionGroup<'group>, [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 120 | pub stream_maps: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | pub audio_channel_maps: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 126 | pub metadata_global_manual: isize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 127 | pub metadata_streams_manual: isize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 128 | pub metadata_chapters_manual: isize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 129 | pub attachments: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub streamid_map: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OptionsContext` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ffmpeg.rs:185:12 [INFO] [stdout] | [INFO] [stdout] 184 | impl<'a, 'group> OptionsContext<'a, 'group> { [INFO] [stdout] | ------------------------------------------- associated function in this implementation [INFO] [stdout] 185 | pub fn new(group: &'a mut OptionGroup<'group>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OptGroup` is never used [INFO] [stdout] --> src/ffmpeg_opt.rs:24:6 [INFO] [stdout] | [INFO] [stdout] 24 | enum OptGroup { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VSYNC_AUTO` is never used [INFO] [stdout] --> src/options.rs:325:7 [INFO] [stdout] | [INFO] [stdout] 325 | const VSYNC_AUTO: isize = -1; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `input_stream_potentially_available` is never used [INFO] [stdout] --> src/options.rs:342:16 [INFO] [stdout] | [INFO] [stdout] 342 | pub static mut input_stream_potentially_available: isize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `video_sync_method` is never used [INFO] [stdout] --> src/options.rs:353:16 [INFO] [stdout] | [INFO] [stdout] 353 | pub static mut video_sync_method: isize = VSYNC_AUTO; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `abort_on_flags` is never used [INFO] [stdout] --> src/options.rs:365:16 [INFO] [stdout] | [INFO] [stdout] 365 | pub static mut abort_on_flags: isize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `opt_default_new` is never used [INFO] [stdout] --> src/options.rs:591:4 [INFO] [stdout] | [INFO] [stdout] 591 | fn opt_default_new(optctx: *mut c_void, opt: &str, arg: &str) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `format_opts` should have an upper case name [INFO] [stdout] --> src/cmdutils.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | static mut format_opts: *mut ffi::AVDictionary = ptr::null_mut(); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `FORMAT_OPTS` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `codec_opts` should have an upper case name [INFO] [stdout] --> src/cmdutils.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | static mut codec_opts: *mut ffi::AVDictionary = ptr::null_mut(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `CODEC_OPTS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `sws_dict` should have an upper case name [INFO] [stdout] --> src/cmdutils.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | static mut sws_dict: *mut ffi::AVDictionary = ptr::null_mut(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `SWS_DICT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `swr_opts` should have an upper case name [INFO] [stdout] --> src/cmdutils.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | static mut swr_opts: *mut ffi::AVDictionary = ptr::null_mut(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `SWR_OPTS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `resample_opts` should have an upper case name [INFO] [stdout] --> src/cmdutils.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | static mut resample_opts: *mut ffi::AVDictionary = ptr::null_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `RESAMPLE_OPTS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/cmdutils.rs:252:52 [INFO] [stdout] | [INFO] [stdout] 252 | let numstr_ptr = CString::new(numstr).unwrap().as_ptr(); [INFO] [stdout] | ----------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/cmdutils.rs:276:54 [INFO] [stdout] | [INFO] [stdout] 276 | let timestr_ptr = CString::new(timestr).unwrap().as_ptr(); [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 56 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 15.52s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v5.1.2 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3` [INFO] running `Command { std: "docker" "inspect" "2f974f34b09177523a7030f4a009da6acd2a425e9f3812f43d49adb141f49517", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2f974f34b09177523a7030f4a009da6acd2a425e9f3812f43d49adb141f49517", kill_on_drop: false }` [INFO] [stdout] 2f974f34b09177523a7030f4a009da6acd2a425e9f3812f43d49adb141f49517 [INFO] checking ldm0/ffgen against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fldm0%2Fffgen" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ldm0/ffgen on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ldm0/ffgen [INFO] finished tweaking git repo https://github.com/ldm0/ffgen [INFO] tweaked toml for git repo https://github.com/ldm0/ffgen written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ldm0/ffgen 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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 309d616d6bc3152902727be9566aa649b25535ffd82e4dcc3a445eefb36d6f33 [INFO] running `Command { std: "docker" "start" "-a" "309d616d6bc3152902727be9566aa649b25535ffd82e4dcc3a445eefb36d6f33", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "309d616d6bc3152902727be9566aa649b25535ffd82e4dcc3a445eefb36d6f33", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "309d616d6bc3152902727be9566aa649b25535ffd82e4dcc3a445eefb36d6f33", kill_on_drop: false }` [INFO] [stdout] 309d616d6bc3152902727be9566aa649b25535ffd82e4dcc3a445eefb36d6f33 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bdd703e9e6615f2ba97ccc7d41edfd04d7c8941be08f6dafd9680db5851cb62f [INFO] running `Command { std: "docker" "start" "-a" "bdd703e9e6615f2ba97ccc7d41edfd04d7c8941be08f6dafd9680db5851cb62f", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling libc v0.2.73 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Compiling cc v1.0.58 [INFO] [stderr] Compiling proc-macro2 v1.0.19 [INFO] [stderr] Compiling unicode-width v0.1.8 [INFO] [stderr] Compiling regex-syntax v0.6.18 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling termcolor v1.1.0 [INFO] [stderr] Compiling thread_local v1.0.1 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling bindgen v0.54.1 [INFO] [stderr] Compiling humantime v1.3.0 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling lazycell v1.2.1 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling shlex v0.1.1 [INFO] [stderr] Compiling once_cell v1.4.0 [INFO] [stderr] Compiling pkg-config v0.3.18 [INFO] [stderr] Compiling memoffset v0.5.5 [INFO] [stderr] Compiling nom v5.1.2 [INFO] [stderr] Compiling clang-sys v0.29.3 [INFO] [stderr] Compiling aho-corasick v0.7.13 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling libloading v0.5.2 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Compiling which v3.1.1 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling clap v2.33.1 [INFO] [stderr] Checking regex v1.3.9 [INFO] [stderr] Compiling cexpr v0.4.0 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Compiling rusty_ffmpeg v0.2.5 [INFO] [stderr] Checking ffgen v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `once_cell::sync::Lazy` [INFO] [stdout] --> src/cmdutils.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use once_cell::sync::Lazy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `avutils::*` [INFO] [stdout] --> src/cmdutils.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | avutil::{avutils::*, error::*}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CStr`, `collections::HashMap`, `mem`, `slice`, `sync::Mutex` [INFO] [stdout] --> src/cmdutils.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | collections::HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | default, [INFO] [stdout] 13 | ffi::{CStr, CString}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 14 | fmt, marker, mem, ptr, slice, [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] 15 | sync::Mutex, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug`, `info` [INFO] [stdout] --> src/ffmpeg.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{debug, error, info}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `once_cell::sync::Lazy` [INFO] [stdout] --> src/cmdutils.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use once_cell::sync::Lazy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `libc::c_void` [INFO] [stdout] --> src/ffmpeg_opt.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use libc::c_void; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `avutils::*` [INFO] [stdout] --> src/cmdutils.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | avutil::{avutils::*, error::*}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CStr`, `collections::HashMap`, `mem`, `slice`, `sync::Mutex` [INFO] [stdout] --> src/cmdutils.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | collections::HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | default, [INFO] [stdout] 13 | ffi::{CStr, CString}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 14 | fmt, marker, mem, ptr, slice, [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] 15 | sync::Mutex, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug`, `error`, `info` [INFO] [stdout] --> src/ffmpeg_opt.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{debug, error, info}; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug`, `info` [INFO] [stdout] --> src/ffmpeg.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{debug, error, info}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `libc::c_void` [INFO] [stdout] --> src/ffmpeg_opt.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use libc::c_void; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug`, `error`, `info` [INFO] [stdout] --> src/ffmpeg_opt.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{debug, error, info}; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `avutils::*`, `error::*`, `ffi` [INFO] [stdout] --> src/ffmpeg_opt.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | avutil::{avutils::*, error::*}, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] 5 | ffi, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `avutils::*`, `error::*`, `ffi` [INFO] [stdout] --> src/ffmpeg_opt.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | avutil::{avutils::*, error::*}, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] 5 | ffi, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CStr`, `CString`, `ptr`, `slice` [INFO] [stdout] --> src/ffmpeg_opt.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | ffi::{CStr, CString}, [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] 9 | ptr, slice, [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CStr`, `CString`, `ptr`, `slice` [INFO] [stdout] --> src/ffmpeg_opt.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | ffi::{CStr, CString}, [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] 9 | ptr, slice, [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `INT_CB`, `OptionsContext`, `self` [INFO] [stdout] --> src/ffmpeg_opt.rs:19:14 [INFO] [stdout] | [INFO] [stdout] 19 | ffmpeg::{self, OptionsContext, INT_CB}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/graph_parser.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use log::{debug, error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `OptionGroupList`, `OptionGroup`, `OptionKV`, `OptionParseContext` [INFO] [stdout] --> src/options.rs:11:32 [INFO] [stdout] | [INFO] [stdout] 11 | OptionDef, OptionFlag, OptionGroup, OptionGroupDef, OptionGroupList, OptionKV, [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] 12 | OptionOperation, OptionParseContext, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `env_logger` is imported redundantly [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use env_logger; [INFO] [stdout] | ^^^^^^^^^^ the item `env_logger` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `INT_CB`, `OptionsContext`, `self` [INFO] [stdout] --> src/ffmpeg_opt.rs:19:14 [INFO] [stdout] | [INFO] [stdout] 19 | ffmpeg::{self, OptionsContext, INT_CB}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/graph_parser.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use log::{debug, error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `OptionGroupList`, `OptionGroup`, `OptionKV`, `OptionParseContext` [INFO] [stdout] --> src/options.rs:11:32 [INFO] [stdout] | [INFO] [stdout] 11 | OptionDef, OptionFlag, OptionGroup, OptionGroupDef, OptionGroupList, OptionKV, [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] 12 | OptionOperation, OptionParseContext, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `env_logger` is imported redundantly [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use env_logger; [INFO] [stdout] | ^^^^^^^^^^ the item `env_logger` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `half_open_range_patterns` has been stable since 1.66.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | #![feature(half_open_range_patterns)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `bool_to_option` has been stable since 1.62.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | #![feature(bool_to_option)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `ptr_offset_from` has been stable since 1.47.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | #![feature(ptr_offset_from)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `half_open_range_patterns` has been stable since 1.66.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | #![feature(half_open_range_patterns)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `bool_to_option` has been stable since 1.62.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | #![feature(bool_to_option)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `ptr_offset_from` has been stable since 1.47.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | #![feature(ptr_offset_from)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/cmdutils.rs:644:35 [INFO] [stdout] | [INFO] [stdout] 644 | unsafe { ffi::av_dict_set(&mut codec_opts as *mut _, opt_ptr, arg_ptr, flags as _) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 644 | unsafe { ffi::av_dict_set(addr_of_mut!(codec_opts) as *mut _, opt_ptr, arg_ptr, flags as _) }; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/cmdutils.rs:662:35 [INFO] [stdout] | [INFO] [stdout] 662 | unsafe { ffi::av_dict_set(&mut format_opts as *mut _, opt_ptr, arg_ptr, flags as _) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 662 | unsafe { ffi::av_dict_set(addr_of_mut!(format_opts) as *mut _, opt_ptr, arg_ptr, flags as _) }; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/cmdutils.rs:733:31 [INFO] [stdout] | [INFO] [stdout] 733 | unsafe { ffi::av_dict_set(&mut sws_dict as *mut _, flags.as_ptr(), bicubic.as_ptr(), 0) }; [INFO] [stdout] | ^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 733 | unsafe { ffi::av_dict_set(addr_of_mut!(sws_dict) as *mut _, flags.as_ptr(), bicubic.as_ptr(), 0) }; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/cmdutils.rs:738:27 [INFO] [stdout] | [INFO] [stdout] 738 | ffi::av_dict_free(&mut swr_opts as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 738 | ffi::av_dict_free(addr_of_mut!(swr_opts) as *mut _); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/cmdutils.rs:739:27 [INFO] [stdout] | [INFO] [stdout] 739 | ffi::av_dict_free(&mut sws_dict as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 739 | ffi::av_dict_free(addr_of_mut!(sws_dict) as *mut _); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/cmdutils.rs:740:27 [INFO] [stdout] | [INFO] [stdout] 740 | ffi::av_dict_free(&mut format_opts as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 740 | ffi::av_dict_free(addr_of_mut!(format_opts) as *mut _); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/cmdutils.rs:741:27 [INFO] [stdout] | [INFO] [stdout] 741 | ffi::av_dict_free(&mut codec_opts as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 741 | ffi::av_dict_free(addr_of_mut!(codec_opts) as *mut _); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/cmdutils.rs:742:27 [INFO] [stdout] | [INFO] [stdout] 742 | ffi::av_dict_free(&mut resample_opts as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 742 | ffi::av_dict_free(addr_of_mut!(resample_opts) as *mut _); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/cmdutils.rs:644:35 [INFO] [stdout] | [INFO] [stdout] 644 | unsafe { ffi::av_dict_set(&mut codec_opts as *mut _, opt_ptr, arg_ptr, flags as _) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 644 | unsafe { ffi::av_dict_set(addr_of_mut!(codec_opts) as *mut _, opt_ptr, arg_ptr, flags as _) }; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/cmdutils.rs:662:35 [INFO] [stdout] | [INFO] [stdout] 662 | unsafe { ffi::av_dict_set(&mut format_opts as *mut _, opt_ptr, arg_ptr, flags as _) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 662 | unsafe { ffi::av_dict_set(addr_of_mut!(format_opts) as *mut _, opt_ptr, arg_ptr, flags as _) }; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/cmdutils.rs:733:31 [INFO] [stdout] | [INFO] [stdout] 733 | unsafe { ffi::av_dict_set(&mut sws_dict as *mut _, flags.as_ptr(), bicubic.as_ptr(), 0) }; [INFO] [stdout] | ^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 733 | unsafe { ffi::av_dict_set(addr_of_mut!(sws_dict) as *mut _, flags.as_ptr(), bicubic.as_ptr(), 0) }; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/cmdutils.rs:738:27 [INFO] [stdout] | [INFO] [stdout] 738 | ffi::av_dict_free(&mut swr_opts as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 738 | ffi::av_dict_free(addr_of_mut!(swr_opts) as *mut _); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/cmdutils.rs:739:27 [INFO] [stdout] | [INFO] [stdout] 739 | ffi::av_dict_free(&mut sws_dict as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 739 | ffi::av_dict_free(addr_of_mut!(sws_dict) as *mut _); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/cmdutils.rs:740:27 [INFO] [stdout] | [INFO] [stdout] 740 | ffi::av_dict_free(&mut format_opts as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 740 | ffi::av_dict_free(addr_of_mut!(format_opts) as *mut _); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/cmdutils.rs:741:27 [INFO] [stdout] | [INFO] [stdout] 741 | ffi::av_dict_free(&mut codec_opts as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 741 | ffi::av_dict_free(addr_of_mut!(codec_opts) as *mut _); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/cmdutils.rs:742:27 [INFO] [stdout] | [INFO] [stdout] 742 | ffi::av_dict_free(&mut resample_opts as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 742 | ffi::av_dict_free(addr_of_mut!(resample_opts) as *mut _); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `GroupInfile` is never constructed [INFO] [stdout] --> src/cmdutils.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 20 | enum OptGroup { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 21 | GroupOutfile = 0, [INFO] [stdout] 22 | GroupInfile = 1, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `argname` and `u` are never read [INFO] [stdout] --> src/cmdutils.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 78 | pub struct OptionDef<'a> { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 81 | pub argname: Option<&'a str>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 82 | pub flags: OptionFlag, [INFO] [stdout] 83 | pub u: OptionOperation, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `OptionDef` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `flags` is never read [INFO] [stdout] --> src/cmdutils.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 96 | pub struct OptionGroupDef<'global> { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 99 | pub flags: OptionFlag, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OptionGroupDef` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `opt`, `key`, and `val` are never read [INFO] [stdout] --> src/cmdutils.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 105 | pub struct OptionKV<'global> { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 106 | pub opt: &'global OptionDef<'global>, [INFO] [stdout] | ^^^ [INFO] [stdout] 107 | pub key: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 108 | pub val: String, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OptionKV` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `str`, `i64`, `ui64`, `f`, and `dbl` are never read [INFO] [stdout] --> src/cmdutils.rs:186:9 [INFO] [stdout] | [INFO] [stdout] 185 | pub union SpecifierOptValue { [INFO] [stdout] | ----------------- fields in this union [INFO] [stdout] 186 | pub str: *mut u8, [INFO] [stdout] | ^^^ [INFO] [stdout] 187 | pub i: isize, [INFO] [stdout] 188 | pub i64: i64, [INFO] [stdout] | ^^^ [INFO] [stdout] 189 | pub ui64: u64, [INFO] [stdout] | ^^^^ [INFO] [stdout] 190 | pub f: f32, [INFO] [stdout] | ^ [INFO] [stdout] 191 | pub dbl: f64, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `specifier` and `u` are never read [INFO] [stdout] --> src/cmdutils.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 209 | pub struct SpecifierOpt { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 210 | pub specifier: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 211 | pub u: SpecifierOptValue, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `SpecifierOpt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_optgroup` is never used [INFO] [stdout] --> src/cmdutils.rs:215:8 [INFO] [stdout] | [INFO] [stdout] 215 | pub fn parse_optgroup<'ctxt>( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_number` is never used [INFO] [stdout] --> src/cmdutils.rs:245:8 [INFO] [stdout] | [INFO] [stdout] 245 | pub fn parse_number( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_time` is never used [INFO] [stdout] --> src/cmdutils.rs:274:4 [INFO] [stdout] | [INFO] [stdout] 274 | fn parse_time(context: &str, timestr: &str, is_duration: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_option` is never used [INFO] [stdout] --> src/cmdutils.rs:291:4 [INFO] [stdout] | [INFO] [stdout] 291 | fn write_option( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `RECEIVED_NB_SIGNALS` is never used [INFO] [stdout] --> src/ffmpeg.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | static RECEIVED_NB_SIGNALS: Lazy> = Lazy::new(|| Mutex::new(0)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `TRANSCODE_INIT_DONE` is never used [INFO] [stdout] --> src/ffmpeg.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | static TRANSCODE_INIT_DONE: Lazy> = Lazy::new(|| Mutex::new(0)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decodec_interrupt_cb` is never used [INFO] [stdout] --> src/ffmpeg.rs:23:22 [INFO] [stdout] | [INFO] [stdout] 23 | unsafe extern "C" fn decodec_interrupt_cb(_ctx: *mut libc::c_void) -> libc::c_int { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INT_CB` is never used [INFO] [stdout] --> src/ffmpeg.rs:33:11 [INFO] [stdout] | [INFO] [stdout] 33 | pub const INT_CB: ffi::AVIOInterruptCB = ffi::AVIOInterruptCB { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `remove_avoptions` is never used [INFO] [stdout] --> src/ffmpeg.rs:38:15 [INFO] [stdout] | [INFO] [stdout] 38 | pub unsafe fn remove_avoptions(a: &mut *mut ffi::AVDictionary, b: *mut ffi::AVDictionary) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `assert_avoptions` is never used [INFO] [stdout] --> src/ffmpeg.rs:52:15 [INFO] [stdout] | [INFO] [stdout] 52 | pub unsafe fn assert_avoptions(a: *mut ffi::AVDictionary) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `disabled`, `file_index`, `stream_index`, `sync_file_index`, `sync_stream_index`, and `linklabel` are never read [INFO] [stdout] --> src/ffmpeg.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 68 | pub struct StreamMap { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 69 | pub disabled: isize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 70 | pub file_index: isize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 71 | pub stream_index: isize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 72 | pub sync_file_index: isize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 73 | pub sync_stream_index: isize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 74 | pub linklabel: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StreamMap` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `file_idx`, `stream_idx`, `channel_idx`, `ofile_idx`, and `ostream_idx` are never read [INFO] [stdout] --> src/ffmpeg.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 78 | pub struct AudioChannelMap { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 79 | // input [INFO] [stdout] 80 | pub file_idx: isize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 81 | pub stream_idx: isize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 82 | pub channel_idx: isize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 83 | // output [INFO] [stdout] 84 | pub ofile_idx: isize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 85 | pub ostream_idx: isize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AudioChannelMap` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/ffmpeg.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 89 | pub struct OptionsContext<'a, 'group> { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 90 | pub g: &'a mut OptionGroup<'group>, [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 120 | pub stream_maps: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | pub audio_channel_maps: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 126 | pub metadata_global_manual: isize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 127 | pub metadata_streams_manual: isize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 128 | pub metadata_chapters_manual: isize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 129 | pub attachments: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub streamid_map: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OptionsContext` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ffmpeg.rs:185:12 [INFO] [stdout] | [INFO] [stdout] 184 | impl<'a, 'group> OptionsContext<'a, 'group> { [INFO] [stdout] | ------------------------------------------- associated function in this implementation [INFO] [stdout] 185 | pub fn new(group: &'a mut OptionGroup<'group>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OptGroup` is never used [INFO] [stdout] --> src/ffmpeg_opt.rs:24:6 [INFO] [stdout] | [INFO] [stdout] 24 | enum OptGroup { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get` is never used [INFO] [stdout] --> src/graph_parser.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 53 | impl<'buffer> GraphParser<'buffer> { [INFO] [stdout] | ---------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 66 | fn get(&mut self) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VSYNC_AUTO` is never used [INFO] [stdout] --> src/options.rs:325:7 [INFO] [stdout] | [INFO] [stdout] 325 | const VSYNC_AUTO: isize = -1; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `input_stream_potentially_available` is never used [INFO] [stdout] --> src/options.rs:342:16 [INFO] [stdout] | [INFO] [stdout] 342 | pub static mut input_stream_potentially_available: isize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `video_sync_method` is never used [INFO] [stdout] --> src/options.rs:353:16 [INFO] [stdout] | [INFO] [stdout] 353 | pub static mut video_sync_method: isize = VSYNC_AUTO; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `abort_on_flags` is never used [INFO] [stdout] --> src/options.rs:365:16 [INFO] [stdout] | [INFO] [stdout] 365 | pub static mut abort_on_flags: isize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `opt_default_new` is never used [INFO] [stdout] --> src/options.rs:591:4 [INFO] [stdout] | [INFO] [stdout] 591 | fn opt_default_new(optctx: *mut c_void, opt: &str, arg: &str) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `format_opts` should have an upper case name [INFO] [stdout] --> src/cmdutils.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | static mut format_opts: *mut ffi::AVDictionary = ptr::null_mut(); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `FORMAT_OPTS` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `codec_opts` should have an upper case name [INFO] [stdout] --> src/cmdutils.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | static mut codec_opts: *mut ffi::AVDictionary = ptr::null_mut(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `CODEC_OPTS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `sws_dict` should have an upper case name [INFO] [stdout] --> src/cmdutils.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | static mut sws_dict: *mut ffi::AVDictionary = ptr::null_mut(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `SWS_DICT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `swr_opts` should have an upper case name [INFO] [stdout] --> src/cmdutils.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | static mut swr_opts: *mut ffi::AVDictionary = ptr::null_mut(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `SWR_OPTS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `resample_opts` should have an upper case name [INFO] [stdout] --> src/cmdutils.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | static mut resample_opts: *mut ffi::AVDictionary = ptr::null_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `RESAMPLE_OPTS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/cmdutils.rs:252:52 [INFO] [stdout] | [INFO] [stdout] 252 | let numstr_ptr = CString::new(numstr).unwrap().as_ptr(); [INFO] [stdout] | ----------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/cmdutils.rs:276:54 [INFO] [stdout] | [INFO] [stdout] 276 | let timestr_ptr = CString::new(timestr).unwrap().as_ptr(); [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 57 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `GroupInfile` is never constructed [INFO] [stdout] --> src/cmdutils.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 20 | enum OptGroup { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 21 | GroupOutfile = 0, [INFO] [stdout] 22 | GroupInfile = 1, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `u` is never read [INFO] [stdout] --> src/cmdutils.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 78 | pub struct OptionDef<'a> { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 83 | pub u: OptionOperation, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `OptionDef` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `flags` is never read [INFO] [stdout] --> src/cmdutils.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 96 | pub struct OptionGroupDef<'global> { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 99 | pub flags: OptionFlag, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OptionGroupDef` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `opt`, `key`, and `val` are never read [INFO] [stdout] --> src/cmdutils.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 105 | pub struct OptionKV<'global> { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 106 | pub opt: &'global OptionDef<'global>, [INFO] [stdout] | ^^^ [INFO] [stdout] 107 | pub key: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 108 | pub val: String, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OptionKV` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `str`, `i64`, `ui64`, `f`, and `dbl` are never read [INFO] [stdout] --> src/cmdutils.rs:186:9 [INFO] [stdout] | [INFO] [stdout] 185 | pub union SpecifierOptValue { [INFO] [stdout] | ----------------- fields in this union [INFO] [stdout] 186 | pub str: *mut u8, [INFO] [stdout] | ^^^ [INFO] [stdout] 187 | pub i: isize, [INFO] [stdout] 188 | pub i64: i64, [INFO] [stdout] | ^^^ [INFO] [stdout] 189 | pub ui64: u64, [INFO] [stdout] | ^^^^ [INFO] [stdout] 190 | pub f: f32, [INFO] [stdout] | ^ [INFO] [stdout] 191 | pub dbl: f64, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `specifier` and `u` are never read [INFO] [stdout] --> src/cmdutils.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 209 | pub struct SpecifierOpt { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 210 | pub specifier: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 211 | pub u: SpecifierOptValue, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `SpecifierOpt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_optgroup` is never used [INFO] [stdout] --> src/cmdutils.rs:215:8 [INFO] [stdout] | [INFO] [stdout] 215 | pub fn parse_optgroup<'ctxt>( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_number` is never used [INFO] [stdout] --> src/cmdutils.rs:245:8 [INFO] [stdout] | [INFO] [stdout] 245 | pub fn parse_number( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_time` is never used [INFO] [stdout] --> src/cmdutils.rs:274:4 [INFO] [stdout] | [INFO] [stdout] 274 | fn parse_time(context: &str, timestr: &str, is_duration: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_option` is never used [INFO] [stdout] --> src/cmdutils.rs:291:4 [INFO] [stdout] | [INFO] [stdout] 291 | fn write_option( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `RECEIVED_NB_SIGNALS` is never used [INFO] [stdout] --> src/ffmpeg.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | static RECEIVED_NB_SIGNALS: Lazy> = Lazy::new(|| Mutex::new(0)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `TRANSCODE_INIT_DONE` is never used [INFO] [stdout] --> src/ffmpeg.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | static TRANSCODE_INIT_DONE: Lazy> = Lazy::new(|| Mutex::new(0)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decodec_interrupt_cb` is never used [INFO] [stdout] --> src/ffmpeg.rs:23:22 [INFO] [stdout] | [INFO] [stdout] 23 | unsafe extern "C" fn decodec_interrupt_cb(_ctx: *mut libc::c_void) -> libc::c_int { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INT_CB` is never used [INFO] [stdout] --> src/ffmpeg.rs:33:11 [INFO] [stdout] | [INFO] [stdout] 33 | pub const INT_CB: ffi::AVIOInterruptCB = ffi::AVIOInterruptCB { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `remove_avoptions` is never used [INFO] [stdout] --> src/ffmpeg.rs:38:15 [INFO] [stdout] | [INFO] [stdout] 38 | pub unsafe fn remove_avoptions(a: &mut *mut ffi::AVDictionary, b: *mut ffi::AVDictionary) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `assert_avoptions` is never used [INFO] [stdout] --> src/ffmpeg.rs:52:15 [INFO] [stdout] | [INFO] [stdout] 52 | pub unsafe fn assert_avoptions(a: *mut ffi::AVDictionary) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `disabled`, `file_index`, `stream_index`, `sync_file_index`, `sync_stream_index`, and `linklabel` are never read [INFO] [stdout] --> src/ffmpeg.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 68 | pub struct StreamMap { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 69 | pub disabled: isize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 70 | pub file_index: isize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 71 | pub stream_index: isize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 72 | pub sync_file_index: isize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 73 | pub sync_stream_index: isize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 74 | pub linklabel: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StreamMap` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `file_idx`, `stream_idx`, `channel_idx`, `ofile_idx`, and `ostream_idx` are never read [INFO] [stdout] --> src/ffmpeg.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 78 | pub struct AudioChannelMap { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 79 | // input [INFO] [stdout] 80 | pub file_idx: isize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 81 | pub stream_idx: isize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 82 | pub channel_idx: isize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 83 | // output [INFO] [stdout] 84 | pub ofile_idx: isize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 85 | pub ostream_idx: isize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AudioChannelMap` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/ffmpeg.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 89 | pub struct OptionsContext<'a, 'group> { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 90 | pub g: &'a mut OptionGroup<'group>, [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 120 | pub stream_maps: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | pub audio_channel_maps: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 126 | pub metadata_global_manual: isize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 127 | pub metadata_streams_manual: isize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 128 | pub metadata_chapters_manual: isize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 129 | pub attachments: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub streamid_map: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OptionsContext` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ffmpeg.rs:185:12 [INFO] [stdout] | [INFO] [stdout] 184 | impl<'a, 'group> OptionsContext<'a, 'group> { [INFO] [stdout] | ------------------------------------------- associated function in this implementation [INFO] [stdout] 185 | pub fn new(group: &'a mut OptionGroup<'group>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OptGroup` is never used [INFO] [stdout] --> src/ffmpeg_opt.rs:24:6 [INFO] [stdout] | [INFO] [stdout] 24 | enum OptGroup { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VSYNC_AUTO` is never used [INFO] [stdout] --> src/options.rs:325:7 [INFO] [stdout] | [INFO] [stdout] 325 | const VSYNC_AUTO: isize = -1; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `input_stream_potentially_available` is never used [INFO] [stdout] --> src/options.rs:342:16 [INFO] [stdout] | [INFO] [stdout] 342 | pub static mut input_stream_potentially_available: isize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `video_sync_method` is never used [INFO] [stdout] --> src/options.rs:353:16 [INFO] [stdout] | [INFO] [stdout] 353 | pub static mut video_sync_method: isize = VSYNC_AUTO; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `abort_on_flags` is never used [INFO] [stdout] --> src/options.rs:365:16 [INFO] [stdout] | [INFO] [stdout] 365 | pub static mut abort_on_flags: isize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `opt_default_new` is never used [INFO] [stdout] --> src/options.rs:591:4 [INFO] [stdout] | [INFO] [stdout] 591 | fn opt_default_new(optctx: *mut c_void, opt: &str, arg: &str) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `format_opts` should have an upper case name [INFO] [stdout] --> src/cmdutils.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | static mut format_opts: *mut ffi::AVDictionary = ptr::null_mut(); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `FORMAT_OPTS` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `codec_opts` should have an upper case name [INFO] [stdout] --> src/cmdutils.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | static mut codec_opts: *mut ffi::AVDictionary = ptr::null_mut(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `CODEC_OPTS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `sws_dict` should have an upper case name [INFO] [stdout] --> src/cmdutils.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | static mut sws_dict: *mut ffi::AVDictionary = ptr::null_mut(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `SWS_DICT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `swr_opts` should have an upper case name [INFO] [stdout] --> src/cmdutils.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | static mut swr_opts: *mut ffi::AVDictionary = ptr::null_mut(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `SWR_OPTS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `resample_opts` should have an upper case name [INFO] [stdout] --> src/cmdutils.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | static mut resample_opts: *mut ffi::AVDictionary = ptr::null_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `RESAMPLE_OPTS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/cmdutils.rs:252:52 [INFO] [stdout] | [INFO] [stdout] 252 | let numstr_ptr = CString::new(numstr).unwrap().as_ptr(); [INFO] [stdout] | ----------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/cmdutils.rs:276:54 [INFO] [stdout] | [INFO] [stdout] 276 | let timestr_ptr = CString::new(timestr).unwrap().as_ptr(); [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 56 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 24.25s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v5.1.2 [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" "bdd703e9e6615f2ba97ccc7d41edfd04d7c8941be08f6dafd9680db5851cb62f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bdd703e9e6615f2ba97ccc7d41edfd04d7c8941be08f6dafd9680db5851cb62f", kill_on_drop: false }` [INFO] [stdout] bdd703e9e6615f2ba97ccc7d41edfd04d7c8941be08f6dafd9680db5851cb62f