[INFO] cloning repository https://github.com/mkilgore/rshell [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mkilgore/rshell" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmkilgore%2Frshell", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmkilgore%2Frshell'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4553cf1c2ecfc193a1fcbdf1044f5e9a6e54d131 [INFO] checking mkilgore/rshell against try#3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f for pr-87248 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmkilgore%2Frshell" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mkilgore/rshell on toolchain 3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mkilgore/rshell [INFO] finished tweaking git repo https://github.com/mkilgore/rshell [INFO] tweaked toml for git repo https://github.com/mkilgore/rshell written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/mkilgore/rshell already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 746a51401d22104b428481a503f9131ea8be5c84f791cc17d384a3ad4e07086c [INFO] running `Command { std: "docker" "start" "-a" "746a51401d22104b428481a503f9131ea8be5c84f791cc17d384a3ad4e07086c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "746a51401d22104b428481a503f9131ea8be5c84f791cc17d384a3ad4e07086c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "746a51401d22104b428481a503f9131ea8be5c84f791cc17d384a3ad4e07086c", kill_on_drop: false }` [INFO] [stdout] 746a51401d22104b428481a503f9131ea8be5c84f791cc17d384a3ad4e07086c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3bc87fda4d7adf06cdfeffcd83c818c893fc35dc30989189a49d4f1658d7aad9 [INFO] running `Command { std: "docker" "start" "-a" "3bc87fda4d7adf06cdfeffcd83c818c893fc35dc30989189a49d4f1658d7aad9", kill_on_drop: false }` [INFO] [stderr] Checking libc v0.2.21 [INFO] [stderr] Checking rshell v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/job.rs:91:23 [INFO] [stdout] | [INFO] [stdout] 91 | { ; } [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/builtin.rs:157:17 [INFO] [stdout] | [INFO] [stdout] 157 | ; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/job_list.rs:38:44 [INFO] [stdout] | [INFO] [stdout] 38 | self.list.push(Arc::new(Mutex::new((job)))); [INFO] [stdout] | ^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/main.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | / lazy_static! { [INFO] [stdout] 23 | | pub static ref JOB_LIST: Mutex = Mutex::new(JobList::new()); [INFO] [stdout] 24 | | pub static ref CURRENT_DIR: Mutex = Mutex::new(String::new()); [INFO] [stdout] 25 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/main.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | / lazy_static! { [INFO] [stdout] 23 | | pub static ref JOB_LIST: Mutex = Mutex::new(JobList::new()); [INFO] [stdout] 24 | | pub static ref CURRENT_DIR: Mutex = Mutex::new(String::new()); [INFO] [stdout] 25 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/main.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | / lazy_static! { [INFO] [stdout] 23 | | pub static ref JOB_LIST: Mutex = Mutex::new(JobList::new()); [INFO] [stdout] 24 | | pub static ref CURRENT_DIR: Mutex = Mutex::new(String::new()); [INFO] [stdout] 25 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/main.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | / lazy_static! { [INFO] [stdout] 23 | | pub static ref JOB_LIST: Mutex = Mutex::new(JobList::new()); [INFO] [stdout] 24 | | pub static ref CURRENT_DIR: Mutex = Mutex::new(String::new()); [INFO] [stdout] 25 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/builtin.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | / lazy_static! { [INFO] [stdout] 27 | | static ref BUILTIN_MAP: HashMap<&'static str, ShellBuiltin> = { [INFO] [stdout] 28 | | let mut m = HashMap::new(); [INFO] [stdout] 29 | | m.insert("pwd", ShellBuiltin::new(builtin_pwd)); [INFO] [stdout] ... | [INFO] [stdout] 36 | | }; [INFO] [stdout] 37 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/builtin.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | / lazy_static! { [INFO] [stdout] 27 | | static ref BUILTIN_MAP: HashMap<&'static str, ShellBuiltin> = { [INFO] [stdout] 28 | | let mut m = HashMap::new(); [INFO] [stdout] 29 | | m.insert("pwd", ShellBuiltin::new(builtin_pwd)); [INFO] [stdout] ... | [INFO] [stdout] 36 | | }; [INFO] [stdout] 37 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/job.rs:91:23 [INFO] [stdout] | [INFO] [stdout] 91 | { ; } [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/builtin.rs:157:17 [INFO] [stdout] | [INFO] [stdout] 157 | ; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/job_list.rs:38:44 [INFO] [stdout] | [INFO] [stdout] 38 | self.list.push(Arc::new(Mutex::new((job)))); [INFO] [stdout] | ^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/main.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | / lazy_static! { [INFO] [stdout] 23 | | pub static ref JOB_LIST: Mutex = Mutex::new(JobList::new()); [INFO] [stdout] 24 | | pub static ref CURRENT_DIR: Mutex = Mutex::new(String::new()); [INFO] [stdout] 25 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/main.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | / lazy_static! { [INFO] [stdout] 23 | | pub static ref JOB_LIST: Mutex = Mutex::new(JobList::new()); [INFO] [stdout] 24 | | pub static ref CURRENT_DIR: Mutex = Mutex::new(String::new()); [INFO] [stdout] 25 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/main.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | / lazy_static! { [INFO] [stdout] 23 | | pub static ref JOB_LIST: Mutex = Mutex::new(JobList::new()); [INFO] [stdout] 24 | | pub static ref CURRENT_DIR: Mutex = Mutex::new(String::new()); [INFO] [stdout] 25 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/main.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | / lazy_static! { [INFO] [stdout] 23 | | pub static ref JOB_LIST: Mutex = Mutex::new(JobList::new()); [INFO] [stdout] 24 | | pub static ref CURRENT_DIR: Mutex = Mutex::new(String::new()); [INFO] [stdout] 25 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/builtin.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | / lazy_static! { [INFO] [stdout] 27 | | static ref BUILTIN_MAP: HashMap<&'static str, ShellBuiltin> = { [INFO] [stdout] 28 | | let mut m = HashMap::new(); [INFO] [stdout] 29 | | m.insert("pwd", ShellBuiltin::new(builtin_pwd)); [INFO] [stdout] ... | [INFO] [stdout] 36 | | }; [INFO] [stdout] 37 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/builtin.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | / lazy_static! { [INFO] [stdout] 27 | | static ref BUILTIN_MAP: HashMap<&'static str, ShellBuiltin> = { [INFO] [stdout] 28 | | let mut m = HashMap::new(); [INFO] [stdout] 29 | | m.insert("pwd", ShellBuiltin::new(builtin_pwd)); [INFO] [stdout] ... | [INFO] [stdout] 36 | | }; [INFO] [stdout] 37 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/job.rs:80:22 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn parse_job(mut lex: &mut InputLexer) -> Option { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/job.rs:110:96 [INFO] [stdout] | [INFO] [stdout] 110 | ... cur_prog.stdout = unsafe { libc::open(CString::new(s).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/job.rs:113:96 [INFO] [stdout] | [INFO] [stdout] 113 | ... cur_prog.stdout = unsafe { libc::open(CString::new(s).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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/job.rs:116:95 [INFO] [stdout] | [INFO] [stdout] 116 | ... cur_prog.stdin = unsafe { libc::open(CString::new(s).unwrap().as_ptr(), libc::O_RDONLY) }; [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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/prog.rs:89:63 [INFO] [stdout] | [INFO] [stdout] 89 | libc::execvp(CString::new(self.file.clone()).unwrap().as_ptr() as *const libc::c_char, c_char_vec.as_ptr() as *const *const libc:... [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: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/job.rs:80:22 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn parse_job(mut lex: &mut InputLexer) -> Option { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/job.rs:110:96 [INFO] [stdout] | [INFO] [stdout] 110 | ... cur_prog.stdout = unsafe { libc::open(CString::new(s).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/job.rs:113:96 [INFO] [stdout] | [INFO] [stdout] 113 | ... cur_prog.stdout = unsafe { libc::open(CString::new(s).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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/job.rs:116:95 [INFO] [stdout] | [INFO] [stdout] 116 | ... cur_prog.stdin = unsafe { libc::open(CString::new(s).unwrap().as_ptr(), libc::O_RDONLY) }; [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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/prog.rs:89:63 [INFO] [stdout] | [INFO] [stdout] 89 | libc::execvp(CString::new(self.file.clone()).unwrap().as_ptr() as *const libc::c_char, c_char_vec.as_ptr() as *const *const libc:... [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: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.97s [INFO] running `Command { std: "docker" "inspect" "3bc87fda4d7adf06cdfeffcd83c818c893fc35dc30989189a49d4f1658d7aad9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3bc87fda4d7adf06cdfeffcd83c818c893fc35dc30989189a49d4f1658d7aad9", kill_on_drop: false }` [INFO] [stdout] 3bc87fda4d7adf06cdfeffcd83c818c893fc35dc30989189a49d4f1658d7aad9