[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 try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fldm0%2Fffgen" "/workspace/builds/worker-11/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-11/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ldm0/ffgen on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "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-11/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: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 019f82ab7230beea732f39d40996b3745bdad0fee791fc55186bf1bb13cc11fc [INFO] running `Command { std: "docker" "start" "-a" "019f82ab7230beea732f39d40996b3745bdad0fee791fc55186bf1bb13cc11fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "019f82ab7230beea732f39d40996b3745bdad0fee791fc55186bf1bb13cc11fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "019f82ab7230beea732f39d40996b3745bdad0fee791fc55186bf1bb13cc11fc", kill_on_drop: false }` [INFO] [stdout] 019f82ab7230beea732f39d40996b3745bdad0fee791fc55186bf1bb13cc11fc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 60b6147e48c76fe2cdcbec5ca42e9ee9afc6a8dfa27fd16d725a83cd2f610b5b [INFO] running `Command { std: "docker" "start" "-a" "60b6147e48c76fe2cdcbec5ca42e9ee9afc6a8dfa27fd16d725a83cd2f610b5b", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling libc v0.2.73 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling cc v1.0.58 [INFO] [stderr] Compiling proc-macro2 v1.0.19 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling unicode-xid v0.2.1 [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 lazycell v1.2.1 [INFO] [stderr] Compiling once_cell v1.4.0 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling pkg-config v0.3.18 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling clang-sys v0.29.3 [INFO] [stderr] Compiling thread_local v1.0.1 [INFO] [stderr] Compiling nom v5.1.2 [INFO] [stderr] Compiling memoffset v0.5.5 [INFO] [stderr] Checking aho-corasick v0.7.13 [INFO] [stderr] Compiling 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] Compiling libloading v0.5.2 [INFO] [stderr] Compiling quote v1.0.7 [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 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/ffmpeg.rs (1 fix) [INFO] [stderr] Fixed src/graph_parser.rs (1 fix) [INFO] [stderr] Fixed src/ffmpeg_opt.rs (5 fixes) [INFO] [stderr] Fixed src/cmdutils.rs (3 fixes) [INFO] [stderr] Fixed src/options.rs (1 fix) [INFO] [stdout] warning: variant is never constructed: `GroupInfile` [INFO] [stdout] --> src/cmdutils.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | GroupInfile = 1, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_optgroup` [INFO] [stdout] --> src/cmdutils.rs:213:8 [INFO] [stdout] | [INFO] [stdout] 213 | pub fn parse_optgroup<'ctxt>( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_number` [INFO] [stdout] --> src/cmdutils.rs:243:8 [INFO] [stdout] | [INFO] [stdout] 243 | pub fn parse_number( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_time` [INFO] [stdout] --> src/cmdutils.rs:272:4 [INFO] [stdout] | [INFO] [stdout] 272 | fn parse_time(context: &str, timestr: &str, is_duration: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `write_option` [INFO] [stdout] --> src/cmdutils.rs:289:4 [INFO] [stdout] | [INFO] [stdout] 289 | fn write_option( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `RECEIVED_NB_SIGNALS` [INFO] [stdout] --> src/ffmpeg.rs:20:1 [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 is never used: `TRANSCODE_INIT_DONE` [INFO] [stdout] --> src/ffmpeg.rs:21:1 [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 is never used: `decodec_interrupt_cb` [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 is never used: `INT_CB` [INFO] [stdout] --> src/ffmpeg.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | / pub const INT_CB: ffi::AVIOInterruptCB = ffi::AVIOInterruptCB { [INFO] [stdout] 34 | | callback: Some(decodec_interrupt_cb), [INFO] [stdout] 35 | | opaque: ptr::null_mut(), [INFO] [stdout] 36 | | }; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `remove_avoptions` [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 is never used: `assert_avoptions` [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: associated function is never used: `new` [INFO] [stdout] --> src/ffmpeg.rs:185:12 [INFO] [stdout] | [INFO] [stdout] 185 | pub fn new(group: &'a mut OptionGroup<'group>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `OptGroup` [INFO] [stdout] --> src/ffmpeg_opt.rs:17:6 [INFO] [stdout] | [INFO] [stdout] 17 | enum OptGroup { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/graph_parser.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | fn get(&mut self) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `VSYNC_AUTO` [INFO] [stdout] --> src/options.rs:325:1 [INFO] [stdout] | [INFO] [stdout] 325 | const VSYNC_AUTO: isize = -1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `input_stream_potentially_available` [INFO] [stdout] --> src/options.rs:342:1 [INFO] [stdout] | [INFO] [stdout] 342 | pub static mut input_stream_potentially_available: isize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `video_sync_method` [INFO] [stdout] --> src/options.rs:353:1 [INFO] [stdout] | [INFO] [stdout] 353 | pub static mut video_sync_method: isize = VSYNC_AUTO; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `abort_on_flags` [INFO] [stdout] --> src/options.rs:365:1 [INFO] [stdout] | [INFO] [stdout] 365 | pub static mut abort_on_flags: isize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `opt_default_new` [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: 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] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/cmdutils.rs:250:52 [INFO] [stdout] | [INFO] [stdout] 250 | 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: `#[warn(temporary_cstring_as_ptr)]` on by default [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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/cmdutils.rs:274:54 [INFO] [stdout] | [INFO] [stdout] 274 | 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: static variable `format_opts` should have an upper case name [INFO] [stdout] --> src/cmdutils.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | 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:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | 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:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | 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:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | 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:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | 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: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `GroupInfile` [INFO] [stdout] --> src/cmdutils.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | GroupInfile = 1, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_optgroup` [INFO] [stdout] --> src/cmdutils.rs:213:8 [INFO] [stdout] | [INFO] [stdout] 213 | pub fn parse_optgroup<'ctxt>( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_number` [INFO] [stdout] --> src/cmdutils.rs:243:8 [INFO] [stdout] | [INFO] [stdout] 243 | pub fn parse_number( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_time` [INFO] [stdout] --> src/cmdutils.rs:272:4 [INFO] [stdout] | [INFO] [stdout] 272 | fn parse_time(context: &str, timestr: &str, is_duration: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `write_option` [INFO] [stdout] --> src/cmdutils.rs:289:4 [INFO] [stdout] | [INFO] [stdout] 289 | fn write_option( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `RECEIVED_NB_SIGNALS` [INFO] [stdout] --> src/ffmpeg.rs:20:1 [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 is never used: `TRANSCODE_INIT_DONE` [INFO] [stdout] --> src/ffmpeg.rs:21:1 [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 is never used: `decodec_interrupt_cb` [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 is never used: `INT_CB` [INFO] [stdout] --> src/ffmpeg.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | / pub const INT_CB: ffi::AVIOInterruptCB = ffi::AVIOInterruptCB { [INFO] [stdout] 34 | | callback: Some(decodec_interrupt_cb), [INFO] [stdout] 35 | | opaque: ptr::null_mut(), [INFO] [stdout] 36 | | }; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `remove_avoptions` [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 is never used: `assert_avoptions` [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: associated function is never used: `new` [INFO] [stdout] --> src/ffmpeg.rs:185:12 [INFO] [stdout] | [INFO] [stdout] 185 | pub fn new(group: &'a mut OptionGroup<'group>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `OptGroup` [INFO] [stdout] --> src/ffmpeg_opt.rs:17:6 [INFO] [stdout] | [INFO] [stdout] 17 | enum OptGroup { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `VSYNC_AUTO` [INFO] [stdout] --> src/options.rs:325:1 [INFO] [stdout] | [INFO] [stdout] 325 | const VSYNC_AUTO: isize = -1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `input_stream_potentially_available` [INFO] [stdout] --> src/options.rs:342:1 [INFO] [stdout] | [INFO] [stdout] 342 | pub static mut input_stream_potentially_available: isize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `video_sync_method` [INFO] [stdout] --> src/options.rs:353:1 [INFO] [stdout] | [INFO] [stdout] 353 | pub static mut video_sync_method: isize = VSYNC_AUTO; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `abort_on_flags` [INFO] [stdout] --> src/options.rs:365:1 [INFO] [stdout] | [INFO] [stdout] 365 | pub static mut abort_on_flags: isize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `opt_default_new` [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: 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] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/cmdutils.rs:250:52 [INFO] [stdout] | [INFO] [stdout] 250 | 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: `#[warn(temporary_cstring_as_ptr)]` on by default [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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/cmdutils.rs:274:54 [INFO] [stdout] | [INFO] [stdout] 274 | 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: static variable `format_opts` should have an upper case name [INFO] [stdout] --> src/cmdutils.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | 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:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | 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:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | 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:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | 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:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | 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: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 37.52s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Checking ffgen v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: variant is never constructed: `GroupInfile` [INFO] [stdout] --> src/cmdutils.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | GroupInfile = 1, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_optgroup` [INFO] [stdout] --> src/cmdutils.rs:213:8 [INFO] [stdout] | [INFO] [stdout] 213 | pub fn parse_optgroup<'ctxt>( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_number` [INFO] [stdout] --> src/cmdutils.rs:243:8 [INFO] [stdout] | [INFO] [stdout] 243 | pub fn parse_number( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_time` [INFO] [stdout] --> src/cmdutils.rs:272:4 [INFO] [stdout] | [INFO] [stdout] 272 | fn parse_time(context: &str, timestr: &str, is_duration: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `write_option` [INFO] [stdout] --> src/cmdutils.rs:289:4 [INFO] [stdout] | [INFO] [stdout] 289 | fn write_option( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `RECEIVED_NB_SIGNALS` [INFO] [stdout] --> src/ffmpeg.rs:20:1 [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 is never used: `TRANSCODE_INIT_DONE` [INFO] [stdout] --> src/ffmpeg.rs:21:1 [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 is never used: `decodec_interrupt_cb` [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 is never used: `INT_CB` [INFO] [stdout] --> src/ffmpeg.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | / pub const INT_CB: ffi::AVIOInterruptCB = ffi::AVIOInterruptCB { [INFO] [stdout] 34 | | callback: Some(decodec_interrupt_cb), [INFO] [stdout] 35 | | opaque: ptr::null_mut(), [INFO] [stdout] 36 | | }; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `remove_avoptions` [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 is never used: `assert_avoptions` [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: associated function is never used: `new` [INFO] [stdout] --> src/ffmpeg.rs:185:12 [INFO] [stdout] | [INFO] [stdout] 185 | pub fn new(group: &'a mut OptionGroup<'group>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `OptGroup` [INFO] [stdout] --> src/ffmpeg_opt.rs:17:6 [INFO] [stdout] | [INFO] [stdout] 17 | enum OptGroup { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/graph_parser.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | fn get(&mut self) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `VSYNC_AUTO` [INFO] [stdout] --> src/options.rs:325:1 [INFO] [stdout] | [INFO] [stdout] 325 | const VSYNC_AUTO: isize = -1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `input_stream_potentially_available` [INFO] [stdout] --> src/options.rs:342:1 [INFO] [stdout] | [INFO] [stdout] 342 | pub static mut input_stream_potentially_available: isize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `video_sync_method` [INFO] [stdout] --> src/options.rs:353:1 [INFO] [stdout] | [INFO] [stdout] 353 | pub static mut video_sync_method: isize = VSYNC_AUTO; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `abort_on_flags` [INFO] [stdout] --> src/options.rs:365:1 [INFO] [stdout] | [INFO] [stdout] 365 | pub static mut abort_on_flags: isize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `opt_default_new` [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: 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] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/cmdutils.rs:250:52 [INFO] [stdout] | [INFO] [stdout] 250 | 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: `#[warn(temporary_cstring_as_ptr)]` on by default [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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/cmdutils.rs:274:54 [INFO] [stdout] | [INFO] [stdout] 274 | 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: static variable `format_opts` should have an upper case name [INFO] [stdout] --> src/cmdutils.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | 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:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | 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:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | 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:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | 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:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | 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: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `GroupInfile` [INFO] [stdout] --> src/cmdutils.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | GroupInfile = 1, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_optgroup` [INFO] [stdout] --> src/cmdutils.rs:213:8 [INFO] [stdout] | [INFO] [stdout] 213 | pub fn parse_optgroup<'ctxt>( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_number` [INFO] [stdout] --> src/cmdutils.rs:243:8 [INFO] [stdout] | [INFO] [stdout] 243 | pub fn parse_number( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_time` [INFO] [stdout] --> src/cmdutils.rs:272:4 [INFO] [stdout] | [INFO] [stdout] 272 | fn parse_time(context: &str, timestr: &str, is_duration: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `write_option` [INFO] [stdout] --> src/cmdutils.rs:289:4 [INFO] [stdout] | [INFO] [stdout] 289 | fn write_option( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `RECEIVED_NB_SIGNALS` [INFO] [stdout] --> src/ffmpeg.rs:20:1 [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 is never used: `TRANSCODE_INIT_DONE` [INFO] [stdout] --> src/ffmpeg.rs:21:1 [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 is never used: `decodec_interrupt_cb` [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 is never used: `INT_CB` [INFO] [stdout] --> src/ffmpeg.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | / pub const INT_CB: ffi::AVIOInterruptCB = ffi::AVIOInterruptCB { [INFO] [stdout] 34 | | callback: Some(decodec_interrupt_cb), [INFO] [stdout] 35 | | opaque: ptr::null_mut(), [INFO] [stdout] 36 | | }; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `remove_avoptions` [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 is never used: `assert_avoptions` [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: associated function is never used: `new` [INFO] [stdout] --> src/ffmpeg.rs:185:12 [INFO] [stdout] | [INFO] [stdout] 185 | pub fn new(group: &'a mut OptionGroup<'group>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `OptGroup` [INFO] [stdout] --> src/ffmpeg_opt.rs:17:6 [INFO] [stdout] | [INFO] [stdout] 17 | enum OptGroup { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `VSYNC_AUTO` [INFO] [stdout] --> src/options.rs:325:1 [INFO] [stdout] | [INFO] [stdout] 325 | const VSYNC_AUTO: isize = -1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `input_stream_potentially_available` [INFO] [stdout] --> src/options.rs:342:1 [INFO] [stdout] | [INFO] [stdout] 342 | pub static mut input_stream_potentially_available: isize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `video_sync_method` [INFO] [stdout] --> src/options.rs:353:1 [INFO] [stdout] | [INFO] [stdout] 353 | pub static mut video_sync_method: isize = VSYNC_AUTO; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `abort_on_flags` [INFO] [stdout] --> src/options.rs:365:1 [INFO] [stdout] | [INFO] [stdout] 365 | pub static mut abort_on_flags: isize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `opt_default_new` [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: 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] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/cmdutils.rs:250:52 [INFO] [stdout] | [INFO] [stdout] 250 | 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: `#[warn(temporary_cstring_as_ptr)]` on by default [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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/cmdutils.rs:274:54 [INFO] [stdout] | [INFO] [stdout] 274 | 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: static variable `format_opts` should have an upper case name [INFO] [stdout] --> src/cmdutils.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | 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:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | 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:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | 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:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | 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:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | 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: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.90s [INFO] running `Command { std: "docker" "inspect" "60b6147e48c76fe2cdcbec5ca42e9ee9afc6a8dfa27fd16d725a83cd2f610b5b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "60b6147e48c76fe2cdcbec5ca42e9ee9afc6a8dfa27fd16d725a83cd2f610b5b", kill_on_drop: false }` [INFO] [stdout] 60b6147e48c76fe2cdcbec5ca42e9ee9afc6a8dfa27fd16d725a83cd2f610b5b