[INFO] cloning repository https://github.com/Phosphorus15/ruda [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Phosphorus15/ruda" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPhosphorus15%2Fruda", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPhosphorus15%2Fruda'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1634aa427e15c4eec03770c8508690618f5b882e [INFO] checking Phosphorus15/ruda against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPhosphorus15%2Fruda" "/workspace/builds/worker-73/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-73/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Phosphorus15/ruda 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/Phosphorus15/ruda [INFO] finished tweaking git repo https://github.com/Phosphorus15/ruda [INFO] tweaked toml for git repo https://github.com/Phosphorus15/ruda written to /workspace/builds/worker-73/source/Cargo.toml [INFO] crate git repo https://github.com/Phosphorus15/ruda 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] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded docopt v1.1.0 [INFO] [stderr] Downloaded strsim v0.9.2 [INFO] [stderr] Downloaded semver-parser v0.6.2 [INFO] [stderr] Downloaded semver v0.4.1 [INFO] [stderr] Downloaded llvm-sys v38.2.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-73/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-73/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] d9d83df562dc3a296942b5e03b9506b3b5d45acc7c697818edf3f44b01fdc06a [INFO] running `Command { std: "docker" "start" "-a" "d9d83df562dc3a296942b5e03b9506b3b5d45acc7c697818edf3f44b01fdc06a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d9d83df562dc3a296942b5e03b9506b3b5d45acc7c697818edf3f44b01fdc06a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d9d83df562dc3a296942b5e03b9506b3b5d45acc7c697818edf3f44b01fdc06a", kill_on_drop: false }` [INFO] [stdout] d9d83df562dc3a296942b5e03b9506b3b5d45acc7c697818edf3f44b01fdc06a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-73/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-73/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] a0ae88af8e8810844d40739f214749d60e35d2487f09580be80fbeef514d5663 [INFO] running `Command { std: "docker" "start" "-a" "a0ae88af8e8810844d40739f214749d60e35d2487f09580be80fbeef514d5663", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.62 [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Compiling winapi v0.2.8 [INFO] [stderr] Compiling proc-macro2 v1.0.6 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling utf8-ranges v0.1.3 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling regex-syntax v0.3.9 [INFO] [stderr] Compiling memchr v2.2.1 [INFO] [stderr] Compiling lazy_static v0.2.11 [INFO] [stderr] Compiling syn v1.0.5 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling ucd-trie v0.1.2 [INFO] [stderr] Compiling gcc v0.3.55 [INFO] [stderr] Compiling serde v1.0.101 [INFO] [stderr] Compiling maplit v1.0.2 [INFO] [stderr] Checking regex-syntax v0.6.12 [INFO] [stderr] Checking bitflags v0.7.0 [INFO] [stderr] Checking strsim v0.9.2 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Compiling kernel32-sys v0.2.2 [INFO] [stderr] Checking pest v2.1.1 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Compiling memchr v0.1.11 [INFO] [stderr] Compiling thread-id v2.0.0 [INFO] [stderr] Checking aho-corasick v0.7.6 [INFO] [stderr] Compiling thread_local v0.2.7 [INFO] [stderr] Compiling aho-corasick v0.5.3 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling regex v0.1.80 [INFO] [stderr] Compiling pest_meta v2.1.1 [INFO] [stderr] Checking regex v1.3.1 [INFO] [stderr] Compiling semver-parser v0.6.2 [INFO] [stderr] Compiling semver v0.4.1 [INFO] [stderr] Compiling pest_generator v2.1.0 [INFO] [stderr] Compiling serde_derive v1.0.101 [INFO] [stderr] Compiling llvm-sys v38.2.0 [INFO] [stderr] Compiling pest_derive v2.1.0 [INFO] [stderr] Checking docopt v1.1.0 [INFO] [stderr] Checking ruda v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/pool.rs (1 fix) [INFO] [stderr] Fixed src/parser.rs (1 fix) [INFO] [stderr] Fixed src/main.rs (2 fixes) [INFO] [stderr] Fixed src/llvm_gen.rs (2 fixes) [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/main.rs:155:46 [INFO] [stdout] | [INFO] [stdout] 155 | let mut ptr: *mut c_char = std::mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/main.rs:155:46 [INFO] [stdout] | [INFO] [stdout] 155 | let mut ptr: *mut c_char = std::mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `target_ref` is never read [INFO] [stdout] --> src/llvm_gen.rs:157:25 [INFO] [stdout] | [INFO] [stdout] 157 | let mut target_ref: LLVMValueRef = null_mut(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ret_val` is never read [INFO] [stdout] --> src/llvm_gen.rs:158:25 [INFO] [stdout] | [INFO] [stdout] 158 | let mut ret_val = TyName::Unit; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `target_ref` is never read [INFO] [stdout] --> src/llvm_gen.rs:157:25 [INFO] [stdout] | [INFO] [stdout] 157 | let mut target_ref: LLVMValueRef = null_mut(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ret_val` is never read [INFO] [stdout] --> src/llvm_gen.rs:158:25 [INFO] [stdout] | [INFO] [stdout] 158 | let mut ret_val = TyName::Unit; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/llvm_gen.rs:241:76 [INFO] [stdout] | [INFO] [stdout] 241 | let func_obj = unsafe { LLVMAddFunction(module, ident_str.unwrap().as_ptr(), func) }; [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/llvm_gen.rs:258:80 [INFO] [stdout] | [INFO] [stdout] 258 | let func_obj = unsafe { LLVMAddFunction(module, ident_str.unwrap().as_ptr(), func) }; [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/llvm_gen.rs:267:84 [INFO] [stdout] | [INFO] [stdout] 267 | let func_obj = unsafe { LLVMAddFunction(module, ident_str.unwrap().as_ptr(), func) }; [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/llvm_gen.rs:281:54 [INFO] [stdout] | [INFO] [stdout] 281 | LLVMSetValueName(val, param_str.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/llvm_gen.rs:328:58 [INFO] [stdout] | [INFO] [stdout] 328 | LLVMSetValueName(val, param_str.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/llvm_gen.rs:348:65 [INFO] [stdout] | [INFO] [stdout] 348 | }, [].as_mut_ptr(), 0, cstring.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: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/llvm_gen.rs:241:76 [INFO] [stdout] | [INFO] [stdout] 241 | let func_obj = unsafe { LLVMAddFunction(module, ident_str.unwrap().as_ptr(), func) }; [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/llvm_gen.rs:258:80 [INFO] [stdout] | [INFO] [stdout] 258 | let func_obj = unsafe { LLVMAddFunction(module, ident_str.unwrap().as_ptr(), func) }; [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/llvm_gen.rs:267:84 [INFO] [stdout] | [INFO] [stdout] 267 | let func_obj = unsafe { LLVMAddFunction(module, ident_str.unwrap().as_ptr(), func) }; [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/llvm_gen.rs:281:54 [INFO] [stdout] | [INFO] [stdout] 281 | LLVMSetValueName(val, param_str.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/llvm_gen.rs:328:58 [INFO] [stdout] | [INFO] [stdout] 328 | LLVMSetValueName(val, param_str.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/llvm_gen.rs:348:65 [INFO] [stdout] | [INFO] [stdout] 348 | }, [].as_mut_ptr(), 0, cstring.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: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 27.61s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Checking ruda v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/main.rs:155:46 [INFO] [stdout] | [INFO] [stdout] 155 | let mut ptr: *mut c_char = std::mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/main.rs:155:46 [INFO] [stdout] | [INFO] [stdout] 155 | let mut ptr: *mut c_char = std::mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `target_ref` is never read [INFO] [stdout] --> src/llvm_gen.rs:157:25 [INFO] [stdout] | [INFO] [stdout] 157 | let mut target_ref: LLVMValueRef = null_mut(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ret_val` is never read [INFO] [stdout] --> src/llvm_gen.rs:158:25 [INFO] [stdout] | [INFO] [stdout] 158 | let mut ret_val = TyName::Unit; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `target_ref` is never read [INFO] [stdout] --> src/llvm_gen.rs:157:25 [INFO] [stdout] | [INFO] [stdout] 157 | let mut target_ref: LLVMValueRef = null_mut(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ret_val` is never read [INFO] [stdout] --> src/llvm_gen.rs:158:25 [INFO] [stdout] | [INFO] [stdout] 158 | let mut ret_val = TyName::Unit; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/llvm_gen.rs:241:76 [INFO] [stdout] | [INFO] [stdout] 241 | let func_obj = unsafe { LLVMAddFunction(module, ident_str.unwrap().as_ptr(), func) }; [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/llvm_gen.rs:258:80 [INFO] [stdout] | [INFO] [stdout] 258 | let func_obj = unsafe { LLVMAddFunction(module, ident_str.unwrap().as_ptr(), func) }; [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/llvm_gen.rs:267:84 [INFO] [stdout] | [INFO] [stdout] 267 | let func_obj = unsafe { LLVMAddFunction(module, ident_str.unwrap().as_ptr(), func) }; [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/llvm_gen.rs:281:54 [INFO] [stdout] | [INFO] [stdout] 281 | LLVMSetValueName(val, param_str.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/llvm_gen.rs:328:58 [INFO] [stdout] | [INFO] [stdout] 328 | LLVMSetValueName(val, param_str.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/llvm_gen.rs:348:65 [INFO] [stdout] | [INFO] [stdout] 348 | }, [].as_mut_ptr(), 0, cstring.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/llvm_gen.rs:241:76 [INFO] [stdout] | [INFO] [stdout] 241 | let func_obj = unsafe { LLVMAddFunction(module, ident_str.unwrap().as_ptr(), func) }; [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/llvm_gen.rs:258:80 [INFO] [stdout] | [INFO] [stdout] 258 | let func_obj = unsafe { LLVMAddFunction(module, ident_str.unwrap().as_ptr(), func) }; [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: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/llvm_gen.rs:267:84 [INFO] [stdout] | [INFO] [stdout] 267 | let func_obj = unsafe { LLVMAddFunction(module, ident_str.unwrap().as_ptr(), func) }; [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/llvm_gen.rs:281:54 [INFO] [stdout] | [INFO] [stdout] 281 | LLVMSetValueName(val, param_str.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/llvm_gen.rs:328:58 [INFO] [stdout] | [INFO] [stdout] 328 | LLVMSetValueName(val, param_str.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/llvm_gen.rs:348:65 [INFO] [stdout] | [INFO] [stdout] 348 | }, [].as_mut_ptr(), 0, cstring.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: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.07s [INFO] running `Command { std: "docker" "inspect" "a0ae88af8e8810844d40739f214749d60e35d2487f09580be80fbeef514d5663", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a0ae88af8e8810844d40739f214749d60e35d2487f09580be80fbeef514d5663", kill_on_drop: false }` [INFO] [stdout] a0ae88af8e8810844d40739f214749d60e35d2487f09580be80fbeef514d5663