[INFO] cloning repository https://github.com/musou1500/intro-llvm-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/musou1500/intro-llvm-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmusou1500%2Fintro-llvm-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmusou1500%2Fintro-llvm-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 896f4e3b4b266b7af10fef559c52d588f05523a2 [INFO] building musou1500/intro-llvm-rs against master#ee1c3b385b6673b6ef37d80dfabe048e993c2ae2 for pr-102832-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmusou1500%2Fintro-llvm-rs" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/musou1500/intro-llvm-rs on toolchain ee1c3b385b6673b6ef37d80dfabe048e993c2ae2 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ee1c3b385b6673b6ef37d80dfabe048e993c2ae2" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/musou1500/intro-llvm-rs [INFO] finished tweaking git repo https://github.com/musou1500/intro-llvm-rs [INFO] tweaked toml for git repo https://github.com/musou1500/intro-llvm-rs written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/musou1500/intro-llvm-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ee1c3b385b6673b6ef37d80dfabe048e993c2ae2" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded redox_syscall v0.1.40 [INFO] [stderr] Downloaded rand_core v0.2.1 [INFO] [stderr] Downloaded remove_dir_all v0.5.1 [INFO] [stderr] Downloaded libc v0.2.43 [INFO] [stderr] Downloaded rustc-demangle v0.1.9 [INFO] [stderr] Downloaded memoffset v0.2.1 [INFO] [stderr] Downloaded quote v0.6.8 [INFO] [stderr] Downloaded unicode-width v0.1.5 [INFO] [stderr] Downloaded cfg-if v0.1.5 [INFO] [stderr] Downloaded wincolor v1.0.1 [INFO] [stderr] Downloaded log v0.4.5 [INFO] [stderr] Downloaded tokio-tls v0.1.4 [INFO] [stderr] Downloaded parking_lot_core v0.3.1 [INFO] [stderr] Downloaded humantime v1.1.1 [INFO] [stderr] Downloaded memchr v2.0.2 [INFO] [stderr] Downloaded regex-syntax v0.6.2 [INFO] [stderr] Downloaded adler32 v1.0.3 [INFO] [stderr] Downloaded time v0.1.40 [INFO] [stderr] Downloaded want v0.0.4 [INFO] [stderr] Downloaded utf8-ranges v1.0.1 [INFO] [stderr] Downloaded either v1.5.0 [INFO] [stderr] Downloaded base64 v0.9.2 [INFO] [stderr] Downloaded aho-corasick v0.6.8 [INFO] [stderr] Downloaded quick-error v1.2.2 [INFO] [stderr] Downloaded gcc v0.3.54 [INFO] [stderr] Downloaded crc v1.8.1 [INFO] [stderr] Downloaded safemem v0.2.0 [INFO] [stderr] Downloaded hyper-tls v0.1.4 [INFO] [stderr] Downloaded schannel v0.1.13 [INFO] [stderr] Downloaded synstructure v0.9.0 [INFO] [stderr] Downloaded itertools v0.7.8 [INFO] [stderr] Downloaded futures-cpupool v0.1.8 [INFO] [stderr] Downloaded failure v0.1.2 [INFO] [stderr] Downloaded llvm-sys v60.2.0 [INFO] [stderr] Downloaded regex v1.0.5 [INFO] [stderr] Downloaded nodrop v0.1.12 [INFO] [stderr] Downloaded tokio-service v0.1.0 [INFO] [stderr] Downloaded encoding_rs v0.8.6 [INFO] [stderr] Downloaded tempdir v0.3.7 [INFO] [stderr] Downloaded kernel32-sys v0.2.2 [INFO] [stderr] Downloaded net2 v0.2.33 [INFO] [stderr] Downloaded idna v0.1.5 [INFO] [stderr] Downloaded winapi-util v0.1.1 [INFO] [stderr] Downloaded serde v1.0.78 [INFO] [stderr] Downloaded toml v0.4.6 [INFO] [stderr] Downloaded unicode-bidi v0.3.4 [INFO] [stderr] Downloaded lazy_static v0.2.11 [INFO] [stderr] Downloaded try-lock v0.1.0 [INFO] [stderr] Downloaded owning_ref v0.3.3 [INFO] [stderr] Downloaded percent-encoding v1.0.1 [INFO] [stderr] Downloaded num_cpus v1.8.0 [INFO] [stderr] Downloaded arrayvec v0.4.7 [INFO] [stderr] Downloaded mio-uds v0.6.7 [INFO] [stderr] Downloaded crossbeam-utils v0.5.0 [INFO] [stderr] Downloaded futures v0.1.24 [INFO] [stderr] Downloaded ryu v0.2.6 [INFO] [stderr] Downloaded winapi v0.2.8 [INFO] [stderr] Downloaded unicode-normalization v0.1.7 [INFO] [stderr] Downloaded stable_deref_trait v1.1.1 [INFO] [stderr] Downloaded ws2_32-sys v0.2.1 [INFO] [stderr] Downloaded syn v0.15.3 [INFO] [stderr] Downloaded tokio-udp v0.1.2 [INFO] [stderr] Downloaded vcpkg v0.2.6 [INFO] [stderr] Downloaded tokio-fs v0.1.3 [INFO] [stderr] Downloaded tokio-reactor v0.1.5 [INFO] [stderr] Downloaded llvmenv v0.1.8 [INFO] [stderr] Downloaded lazycell v1.1.0 [INFO] [stderr] Downloaded tempfile v3.0.3 [INFO] [stderr] Downloaded winapi v0.3.5 [INFO] [stderr] Downloaded uuid v0.6.5 [INFO] [stderr] Downloaded termion v1.5.1 [INFO] [stderr] Downloaded unicase v2.1.0 [INFO] [stderr] Downloaded redox_termios v0.1.1 [INFO] [stderr] Downloaded atty v0.2.11 [INFO] [stderr] Downloaded strsim v0.7.0 [INFO] [stderr] Downloaded fuchsia-zircon-sys v0.3.3 [INFO] [stderr] Downloaded fuchsia-zircon v0.3.3 [INFO] [stderr] Downloaded language-tags v0.2.2 [INFO] [stderr] Downloaded bitflags v0.9.1 [INFO] [stderr] Downloaded security-framework v0.1.16 [INFO] [stderr] Downloaded tokio-uds v0.2.1 [INFO] [stderr] Downloaded failure_derive v0.1.2 [INFO] [stderr] Downloaded siphasher v0.2.3 [INFO] [stderr] Downloaded unicase v1.4.2 [INFO] [stderr] Downloaded core-foundation v0.2.3 [INFO] [stderr] Downloaded lazy_static v1.1.0 [INFO] [stderr] Downloaded lock_api v0.1.3 [INFO] [stderr] Downloaded tokio-core v0.1.17 [INFO] [stderr] Downloaded syn v0.14.9 [INFO] [stderr] Downloaded dtoa v0.4.3 [INFO] [stderr] Downloaded tokio-threadpool v0.1.6 [INFO] [stderr] Downloaded serde_json v1.0.27 [INFO] [stderr] Downloaded mime v0.3.9 [INFO] [stderr] Downloaded phf_codegen v0.7.23 [INFO] [stderr] Downloaded winapi-build v0.1.1 [INFO] [stderr] Downloaded matches v0.1.8 [INFO] [stderr] Downloaded crossbeam-deque v0.6.1 [INFO] [stderr] Downloaded cc v1.0.24 [INFO] [stderr] Downloaded tokio-io v0.1.8 [INFO] [stderr] Downloaded smallvec v0.6.5 [INFO] [stderr] Downloaded httparse v1.3.2 [INFO] [stderr] Downloaded serde_urlencoded v0.5.3 [INFO] [stderr] Downloaded openssl-sys v0.9.35 [INFO] [stderr] Downloaded relay v0.1.1 [INFO] [stderr] Downloaded hyper v0.11.27 [INFO] [stderr] Downloaded itoa v0.4.3 [INFO] [stderr] Downloaded openssl v0.9.24 [INFO] [stderr] Downloaded tokio-timer v0.2.6 [INFO] [stderr] Downloaded tokio-current-thread v0.1.1 [INFO] [stderr] Downloaded crossbeam-epoch v0.5.2 [INFO] [stderr] Downloaded libflate v0.1.16 [INFO] [stderr] Downloaded core-foundation-sys v0.2.3 [INFO] [stderr] Downloaded tokio-tcp v0.1.1 [INFO] [stderr] Downloaded build_const v0.2.1 [INFO] [stderr] Downloaded phf v0.7.23 [INFO] [stderr] Downloaded phf_generator v0.7.23 [INFO] [stderr] Downloaded phf_shared v0.7.23 [INFO] [stderr] Downloaded mime_guess v2.0.0-alpha.6 [INFO] [stderr] Downloaded native-tls v0.1.5 [INFO] [stderr] Downloaded scoped-tls v0.1.2 [INFO] [stderr] Downloaded tokio v0.1.8 [INFO] [stderr] Downloaded tokio-codec v0.1.0 [INFO] [stderr] Downloaded tokio-executor v0.1.4 [INFO] [stderr] Downloaded version_check v0.1.4 [INFO] [stderr] Downloaded mio v0.6.16 [INFO] [stderr] Downloaded serde_derive v1.0.78 [INFO] [stderr] Downloaded ucd-util v0.1.1 [INFO] [stderr] Downloaded backtrace-sys v0.1.24 [INFO] [stderr] Downloaded miow v0.2.1 [INFO] [stderr] Downloaded structopt v0.2.10 [INFO] [stderr] Downloaded parking_lot v0.6.4 [INFO] [stderr] Downloaded slab v0.4.1 [INFO] [stderr] Downloaded url v1.7.1 [INFO] [stderr] Downloaded termcolor v1.0.3 [INFO] [stderr] Downloaded backtrace v0.3.9 [INFO] [stderr] Downloaded byteorder v1.2.6 [INFO] [stderr] Downloaded bytes v0.4.10 [INFO] [stderr] Downloaded reqwest v0.8.8 [INFO] [stderr] Downloaded rand v0.4.3 [INFO] [stderr] Downloaded textwrap v0.10.0 [INFO] [stderr] Downloaded clap v2.32.0 [INFO] [stderr] Downloaded proc-macro2 v0.4.19 [INFO] [stderr] Downloaded structopt-derive v0.2.10 [INFO] [stderr] Downloaded scopeguard v0.3.3 [INFO] [stderr] Downloaded semver-parser v0.7.0 [INFO] [stderr] Downloaded semver v0.9.0 [INFO] [stderr] Downloaded rustc_version v0.2.3 [INFO] [stderr] Downloaded void v1.0.2 [INFO] [stderr] Downloaded unreachable v1.0.0 [INFO] [stderr] Downloaded iovec v0.1.2 [INFO] [stderr] Downloaded ansi_term v0.11.0 [INFO] [stderr] Downloaded vec_map v0.8.1 [INFO] [stderr] Downloaded cloudabi v0.0.3 [INFO] [stderr] Downloaded security-framework-sys v0.1.16 [INFO] [stderr] Downloaded rand v0.5.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:83125433e4fff17b1ac56874832f668d9df75ee638575aca552b68e127bedee9" "/opt/rustwide/cargo-home/bin/cargo" "+ee1c3b385b6673b6ef37d80dfabe048e993c2ae2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bbdedbbb762dbcbbf7c34647b76bfbf6062a2411f809f314ee6aac1725084ec6 [INFO] running `Command { std: "docker" "start" "-a" "bbdedbbb762dbcbbf7c34647b76bfbf6062a2411f809f314ee6aac1725084ec6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bbdedbbb762dbcbbf7c34647b76bfbf6062a2411f809f314ee6aac1725084ec6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bbdedbbb762dbcbbf7c34647b76bfbf6062a2411f809f314ee6aac1725084ec6", kill_on_drop: false }` [INFO] [stdout] bbdedbbb762dbcbbf7c34647b76bfbf6062a2411f809f314ee6aac1725084ec6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:83125433e4fff17b1ac56874832f668d9df75ee638575aca552b68e127bedee9" "/opt/rustwide/cargo-home/bin/cargo" "+ee1c3b385b6673b6ef37d80dfabe048e993c2ae2" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 979adfeeca1148dcb3bef49117ec6dde962cb6dee55abe9a510c48914f35ac85 [INFO] running `Command { std: "docker" "start" "-a" "979adfeeca1148dcb3bef49117ec6dde962cb6dee55abe9a510c48914f35ac85", kill_on_drop: false }` [INFO] [stderr] warning: intro-llvm-rs v0.1.0 (/opt/rustwide/workdir) ignoring invalid dependency `llvmenv` which is missing a lib target [INFO] [stderr] Compiling version_check v0.1.4 [INFO] [stderr] Compiling libc v0.2.43 [INFO] [stderr] Compiling regex v0.2.11 [INFO] [stderr] Compiling ucd-util v0.1.1 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling utf8-ranges v1.0.1 [INFO] [stderr] Compiling gcc v0.3.54 [INFO] [stderr] Compiling regex-syntax v0.5.6 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling memchr v2.0.2 [INFO] [stderr] Compiling lazy_static v1.1.0 [INFO] [stderr] Compiling aho-corasick v0.6.8 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling llvm-sys v60.2.0 [INFO] [stderr] Compiling intro-llvm-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/main.rs:53:31 [INFO] [stdout] | [INFO] [stdout] 53 | let mut engine = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/main.rs:13:77 [INFO] [stdout] | [INFO] [stdout] 13 | let module = LLVMModuleCreateWithName(CString::new("main").unwrap().as_ptr()); [INFO] [stdout] | ----------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/main.rs:21:43 [INFO] [stdout] | [INFO] [stdout] 21 | CString::new("main").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/main.rs:27:44 [INFO] [stdout] | [INFO] [stdout] 27 | CString::new("entry").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/main.rs:34:40 [INFO] [stdout] | [INFO] [stdout] 34 | CString::new("a").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/main.rs:40:40 [INFO] [stdout] | [INFO] [stdout] 40 | CString::new("b").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/main.rs:44:78 [INFO] [stdout] | [INFO] [stdout] 44 | let a_val = LLVMBuildLoad(builder, a, CString::new("a_val").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/main.rs:45:78 [INFO] [stdout] | [INFO] [stdout] 45 | let b_val = LLVMBuildLoad(builder, b, CString::new("b_val").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/main.rs:47:84 [INFO] [stdout] | [INFO] [stdout] 47 | let sum = LLVMBuildAdd(builder, a_val, b_val, CString::new("sum").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: the type `*mut LLVMOpaqueExecutionEngine` does not permit being left uninitialized [INFO] [stdout] --> src/main.rs:53:26 [INFO] [stdout] | [INFO] [stdout] 53 | let mut engine = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: raw pointers must not be uninitialized [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/main.rs:61:81 [INFO] [stdout] | [INFO] [stdout] 61 | let addr = LLVMGetFunctionAddress(engine, CString::new("main").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: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 8.82s [INFO] running `Command { std: "docker" "inspect" "979adfeeca1148dcb3bef49117ec6dde962cb6dee55abe9a510c48914f35ac85", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "979adfeeca1148dcb3bef49117ec6dde962cb6dee55abe9a510c48914f35ac85", kill_on_drop: false }` [INFO] [stdout] 979adfeeca1148dcb3bef49117ec6dde962cb6dee55abe9a510c48914f35ac85 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:83125433e4fff17b1ac56874832f668d9df75ee638575aca552b68e127bedee9" "/opt/rustwide/cargo-home/bin/cargo" "+ee1c3b385b6673b6ef37d80dfabe048e993c2ae2" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 32d8cd4776ba5e3dc225cec9572d007cfc95d17c108185baff877678444a367d [INFO] running `Command { std: "docker" "start" "-a" "32d8cd4776ba5e3dc225cec9572d007cfc95d17c108185baff877678444a367d", kill_on_drop: false }` [INFO] [stderr] warning: intro-llvm-rs v0.1.0 (/opt/rustwide/workdir) ignoring invalid dependency `llvmenv` which is missing a lib target [INFO] [stderr] Compiling intro-llvm-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/main.rs:53:31 [INFO] [stdout] | [INFO] [stdout] 53 | let mut engine = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/main.rs:13:77 [INFO] [stdout] | [INFO] [stdout] 13 | let module = LLVMModuleCreateWithName(CString::new("main").unwrap().as_ptr()); [INFO] [stdout] | ----------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/main.rs:21:43 [INFO] [stdout] | [INFO] [stdout] 21 | CString::new("main").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/main.rs:27:44 [INFO] [stdout] | [INFO] [stdout] 27 | CString::new("entry").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/main.rs:34:40 [INFO] [stdout] | [INFO] [stdout] 34 | CString::new("a").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/main.rs:40:40 [INFO] [stdout] | [INFO] [stdout] 40 | CString::new("b").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/main.rs:44:78 [INFO] [stdout] | [INFO] [stdout] 44 | let a_val = LLVMBuildLoad(builder, a, CString::new("a_val").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/main.rs:45:78 [INFO] [stdout] | [INFO] [stdout] 45 | let b_val = LLVMBuildLoad(builder, b, CString::new("b_val").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/main.rs:47:84 [INFO] [stdout] | [INFO] [stdout] 47 | let sum = LLVMBuildAdd(builder, a_val, b_val, CString::new("sum").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: the type `*mut LLVMOpaqueExecutionEngine` does not permit being left uninitialized [INFO] [stdout] --> src/main.rs:53:26 [INFO] [stdout] | [INFO] [stdout] 53 | let mut engine = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: raw pointers must not be uninitialized [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/main.rs:61:81 [INFO] [stdout] | [INFO] [stdout] 61 | let addr = LLVMGetFunctionAddress(engine, CString::new("main").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: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.31s [INFO] running `Command { std: "docker" "inspect" "32d8cd4776ba5e3dc225cec9572d007cfc95d17c108185baff877678444a367d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "32d8cd4776ba5e3dc225cec9572d007cfc95d17c108185baff877678444a367d", kill_on_drop: false }` [INFO] [stdout] 32d8cd4776ba5e3dc225cec9572d007cfc95d17c108185baff877678444a367d