[INFO] cloning repository https://github.com/Hzqi/rust-crud-toy [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Hzqi/rust-crud-toy" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHzqi%2Frust-crud-toy", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHzqi%2Frust-crud-toy'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ce70a7b2dabf862b3768c18f7ad6e9af7da2cd5d [INFO] checking Hzqi/rust-crud-toy against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHzqi%2Frust-crud-toy" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Hzqi/rust-crud-toy on toolchain 23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Hzqi/rust-crud-toy [INFO] finished tweaking git repo https://github.com/Hzqi/rust-crud-toy [INFO] tweaked toml for git repo https://github.com/Hzqi/rust-crud-toy written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Hzqi/rust-crud-toy already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3d630a343415147f8754f0b469c2c7bf9c9e1a4d9351a6ab76cacaf157a08da0 [INFO] running `Command { std: "docker" "start" "-a" "3d630a343415147f8754f0b469c2c7bf9c9e1a4d9351a6ab76cacaf157a08da0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3d630a343415147f8754f0b469c2c7bf9c9e1a4d9351a6ab76cacaf157a08da0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3d630a343415147f8754f0b469c2c7bf9c9e1a4d9351a6ab76cacaf157a08da0", kill_on_drop: false }` [INFO] [stdout] 3d630a343415147f8754f0b469c2c7bf9c9e1a4d9351a6ab76cacaf157a08da0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f6b6ac269f531cd2aec1c4144a1494ba3a1259834c6fb7515c12c96fa90b38b0 [INFO] running `Command { std: "docker" "start" "-a" "f6b6ac269f531cd2aec1c4144a1494ba3a1259834c6fb7515c12c96fa90b38b0", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.96 [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling syn v1.0.73 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Checking once_cell v1.7.2 [INFO] [stderr] Checking bytes v1.0.1 [INFO] [stderr] Checking pin-project-lite v0.2.6 [INFO] [stderr] Compiling futures-core v0.3.15 [INFO] [stderr] Compiling typenum v1.13.0 [INFO] [stderr] Checking instant v0.1.9 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Checking itoa v0.4.7 [INFO] [stderr] Compiling tokio v1.6.1 [INFO] [stderr] Compiling futures-macro v0.3.15 [INFO] [stderr] Compiling futures-task v0.3.15 [INFO] [stderr] Checking futures-sink v0.3.15 [INFO] [stderr] Compiling futures-util v0.3.15 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Checking slab v0.4.3 [INFO] [stderr] Checking futures-io v0.3.15 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Checking tinyvec v1.2.0 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Compiling cc v1.0.68 [INFO] [stderr] Checking unicode-bidi v0.3.5 [INFO] [stderr] Compiling indexmap v1.6.2 [INFO] [stderr] Checking http v0.2.4 [INFO] [stderr] Compiling futures-channel v0.3.15 [INFO] [stderr] Compiling httparse v1.4.1 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Checking hashbrown v0.9.1 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Checking tracing-core v0.1.18 [INFO] [stderr] Checking cpufeatures v0.1.4 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling unicode-segmentation v1.7.1 [INFO] [stderr] Compiling async-trait v0.1.50 [INFO] [stderr] Checking tracing v0.1.26 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling ahash v0.7.4 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking parking_lot_core v0.8.3 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking mio v0.7.11 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking rand_core v0.6.2 [INFO] [stderr] Checking unicode-normalization v0.1.19 [INFO] [stderr] Checking parking_lot v0.11.1 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking socket2 v0.4.0 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking ipnet v2.3.0 [INFO] [stderr] Checking subtle v2.4.0 [INFO] [stderr] Checking match_cfg v0.1.0 [INFO] [stderr] Compiling encoding_rs v0.8.28 [INFO] [stderr] Checking hostname v0.3.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Checking input_buffer v0.4.0 [INFO] [stderr] Checking safemem v0.3.3 [INFO] [stderr] Checking rand v0.8.3 [INFO] [stderr] Checking data-encoding v2.3.2 [INFO] [stderr] Checking buf_redux v0.8.4 [INFO] [stderr] Checking resolv-conf v0.7.0 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking lru-cache v0.1.2 [INFO] [stderr] Checking uuid v0.8.2 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking twoway v0.1.8 [INFO] [stderr] Checking humantime v1.3.0 [INFO] [stderr] Checking os_info v3.0.6 [INFO] [stderr] Checking version_check v0.9.3 [INFO] [stderr] Checking take_mut v0.2.2 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Checking num-integer v0.1.44 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Checking stringprep v0.1.2 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking http-body v0.4.2 [INFO] [stderr] Checking headers-core v0.2.0 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking crypto-mac v0.10.0 [INFO] [stderr] Checking tempfile v3.2.0 [INFO] [stderr] Checking pbkdf2 v0.7.5 [INFO] [stderr] Checking hmac v0.10.1 [INFO] [stderr] Checking sha-1 v0.9.6 [INFO] [stderr] Checking md-5 v0.9.1 [INFO] [stderr] Checking sha2 v0.9.5 [INFO] [stderr] Checking headers v0.3.4 [INFO] [stderr] Checking multipart v0.17.1 [INFO] [stderr] Checking url v2.2.2 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Checking tungstenite v0.12.0 [INFO] [stderr] Checking pretty_env_logger v0.4.0 [INFO] [stderr] Checking webpki v0.21.4 [INFO] [stderr] Checking sct v0.6.1 [INFO] [stderr] Checking rustls v0.19.1 [INFO] [stderr] Checking webpki-roots v0.21.1 [INFO] [stderr] Compiling darling_core v0.13.0 [INFO] [stderr] Compiling tokio-macros v1.2.0 [INFO] [stderr] Compiling thiserror-impl v1.0.25 [INFO] [stderr] Compiling pin-project-internal v1.0.7 [INFO] [stderr] Compiling enum-as-inner v0.3.3 [INFO] [stderr] Compiling typed-builder v0.9.0 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling darling_macro v0.13.0 [INFO] [stderr] Checking thiserror v1.0.25 [INFO] [stderr] Checking pin-project v1.0.7 [INFO] [stderr] Compiling darling v0.13.0 [INFO] [stderr] Compiling serde_with_macros v1.4.2 [INFO] [stderr] Checking futures-executor v0.3.15 [INFO] [stderr] Checking futures v0.3.15 [INFO] [stderr] Checking tokio-util v0.6.7 [INFO] [stderr] Checking tokio-rustls v0.22.0 [INFO] [stderr] Checking trust-dns-proto v0.20.3 [INFO] [stderr] Checking tokio-stream v0.1.6 [INFO] [stderr] Checking tokio-tungstenite v0.13.0 [INFO] [stderr] Checking h2 v0.3.3 [INFO] [stderr] Checking trust-dns-resolver v0.20.3 [INFO] [stderr] Checking serde_urlencoded v0.7.0 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking serde_with v1.9.2 [INFO] [stderr] Checking serde_bytes v0.11.5 [INFO] [stderr] Checking bson v2.0.0-beta.1 [INFO] [stderr] Checking hyper v0.14.9 [INFO] [stderr] Checking hyper-rustls v0.22.1 [INFO] [stderr] Checking warp v0.3.1 [INFO] [stderr] Checking reqwest v0.11.3 [INFO] [stderr] Checking mongodb v2.0.0-beta.1 (https://github.com/mongodb/mongo-rust-driver#7158ad65) [INFO] [stderr] Checking crud-toy v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trailing semicolon in macro used in expression position [INFO] [stdout] --> src/lib.rs:10:96 [INFO] [stdout] | [INFO] [stdout] 10 | std::env::var($key).expect(&format!("missing required environment variable: {}", $key)); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] ::: src/route/mod.rs:92:15 [INFO] [stdout] | [INFO] [stdout] 92 | let uri = env_var!("MONGODB_URI"); [INFO] [stdout] | ----------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79813 [INFO] [stdout] = note: `#[warn(semicolon_in_expressions_from_macros)]` on by default [INFO] [stdout] = note: this warning originates in the macro `env_var` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trailing semicolon in macro used in expression position [INFO] [stdout] --> src/lib.rs:10:96 [INFO] [stdout] | [INFO] [stdout] 10 | std::env::var($key).expect(&format!("missing required environment variable: {}", $key)); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] ::: src/route/mod.rs:92:15 [INFO] [stdout] | [INFO] [stdout] 92 | let uri = env_var!("MONGODB_URI"); [INFO] [stdout] | ----------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79813 [INFO] [stdout] = note: `#[warn(semicolon_in_expressions_from_macros)]` on by default [INFO] [stdout] = note: this warning originates in the macro `env_var` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/route/workspace.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | // Response:: { [INFO] [stdout] 19 | || success: true, [INFO] [stdout] 20 | || data: res, [INFO] [stdout] 21 | || } [INFO] [stdout] | ||_____- temporary value created here [INFO] [stdout] 22 | | .to_http_reply() [INFO] [stdout] | |_____________________^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/route/workspace.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | // Response::> { [INFO] [stdout] 31 | || success: true, [INFO] [stdout] 32 | || data: res, [INFO] [stdout] 33 | || } [INFO] [stdout] | ||_____- temporary value created here [INFO] [stdout] 34 | | .to_http_reply() [INFO] [stdout] | |_____________________^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/route/workspace.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | // Response:: { [INFO] [stdout] 44 | || success: true, [INFO] [stdout] 45 | || data: res, [INFO] [stdout] 46 | || } [INFO] [stdout] | ||_____- temporary value created here [INFO] [stdout] 47 | | .to_http_reply() [INFO] [stdout] | |_____________________^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/route/workspace.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | // Response::<()> { [INFO] [stdout] 60 | || success: res, [INFO] [stdout] 61 | || data: (), [INFO] [stdout] 62 | || } [INFO] [stdout] | ||_____- temporary value created here [INFO] [stdout] 63 | | .to_http_reply() [INFO] [stdout] | |_____________________^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/route/workspace.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | // Response::<()> { [INFO] [stdout] 73 | || success: res, [INFO] [stdout] 74 | || data: (), [INFO] [stdout] 75 | || } [INFO] [stdout] | ||_____- temporary value created here [INFO] [stdout] 76 | | .to_http_reply() [INFO] [stdout] | |_____________________^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/route/workspace.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | // Response:: { [INFO] [stdout] 19 | || success: true, [INFO] [stdout] 20 | || data: res, [INFO] [stdout] 21 | || } [INFO] [stdout] | ||_____- temporary value created here [INFO] [stdout] 22 | | .to_http_reply() [INFO] [stdout] | |_____________________^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/route/workspace.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | // Response::> { [INFO] [stdout] 31 | || success: true, [INFO] [stdout] 32 | || data: res, [INFO] [stdout] 33 | || } [INFO] [stdout] | ||_____- temporary value created here [INFO] [stdout] 34 | | .to_http_reply() [INFO] [stdout] | |_____________________^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/route/workspace.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | // Response:: { [INFO] [stdout] 44 | || success: true, [INFO] [stdout] 45 | || data: res, [INFO] [stdout] 46 | || } [INFO] [stdout] | ||_____- temporary value created here [INFO] [stdout] 47 | | .to_http_reply() [INFO] [stdout] | |_____________________^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/route/workspace.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | // Response::<()> { [INFO] [stdout] 60 | || success: res, [INFO] [stdout] 61 | || data: (), [INFO] [stdout] 62 | || } [INFO] [stdout] | ||_____- temporary value created here [INFO] [stdout] 63 | | .to_http_reply() [INFO] [stdout] | |_____________________^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/route/workspace.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | // Response::<()> { [INFO] [stdout] 73 | || success: res, [INFO] [stdout] 74 | || data: (), [INFO] [stdout] 75 | || } [INFO] [stdout] | ||_____- temporary value created here [INFO] [stdout] 76 | | .to_http_reply() [INFO] [stdout] | |_____________________^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0515`. [INFO] [stdout] [INFO] [stderr] error: could not compile `crud-toy` (lib) due to 6 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 5 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0515`. [INFO] [stdout] [INFO] [stderr] error: could not compile `crud-toy` (lib test) due to 6 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "f6b6ac269f531cd2aec1c4144a1494ba3a1259834c6fb7515c12c96fa90b38b0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f6b6ac269f531cd2aec1c4144a1494ba3a1259834c6fb7515c12c96fa90b38b0", kill_on_drop: false }` [INFO] [stdout] f6b6ac269f531cd2aec1c4144a1494ba3a1259834c6fb7515c12c96fa90b38b0