[INFO] cloning repository https://github.com/rohanchauhan02/rust-crud-api
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rohanchauhan02/rust-crud-api" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frohanchauhan02%2Frust-crud-api", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frohanchauhan02%2Frust-crud-api'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] cbb6f303e76785120b2f8eb1f9d9f5e9a54504f1
[INFO] checking rohanchauhan02/rust-crud-api against try#6757d700f93f6d16c8b39cf79e96b019bd570e7d for pr-155299-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frohanchauhan02%2Frust-crud-api" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/rohanchauhan02/rust-crud-api
[INFO] finished tweaking git repo https://github.com/rohanchauhan02/rust-crud-api
[INFO] tweaked toml for git repo https://github.com/rohanchauhan02/rust-crud-api written to /workspace/builds/worker-1-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/rohanchauhan02/rust-crud-api on toolchain 6757d700f93f6d16c8b39cf79e96b019bd570e7d
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+6757d700f93f6d16c8b39cf79e96b019bd570e7d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/rohanchauhan02/rust-crud-api 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" "+6757d700f93f6d16c8b39cf79e96b019bd570e7d" "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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+6757d700f93f6d16c8b39cf79e96b019bd570e7d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 4387314b167dcfb0589a45776241c0512296e8d67ecab3907595603c475d4cc7
[INFO] running `Command { std: "docker" "start" "-a" "4387314b167dcfb0589a45776241c0512296e8d67ecab3907595603c475d4cc7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "4387314b167dcfb0589a45776241c0512296e8d67ecab3907595603c475d4cc7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4387314b167dcfb0589a45776241c0512296e8d67ecab3907595603c475d4cc7", kill_on_drop: false }`
[INFO] [stdout] 4387314b167dcfb0589a45776241c0512296e8d67ecab3907595603c475d4cc7
[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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+6757d700f93f6d16c8b39cf79e96b019bd570e7d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] f12b09de8d893f33b279c10632940a1e71c49350572418af5ef9dbc568b9e74f
[INFO] running `Command { std: "docker" "start" "-a" "f12b09de8d893f33b279c10632940a1e71c49350572418af5ef9dbc568b9e74f", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.148
[INFO] [stderr]    Compiling typenum v1.17.0
[INFO] [stderr]    Compiling version_check v0.9.4
[INFO] [stderr]    Compiling autocfg v1.1.0
[INFO] [stderr]    Compiling proc-macro2 v1.0.67
[INFO] [stderr]    Compiling unicode-ident v1.0.12
[INFO] [stderr]     Checking subtle v2.5.0
[INFO] [stderr]     Checking tinyvec_macros v0.1.1
[INFO] [stderr]    Compiling futures-core v0.3.28
[INFO] [stderr]     Checking ppv-lite86 v0.2.17
[INFO] [stderr]     Checking pin-project-lite v0.2.13
[INFO] [stderr]     Checking bytes v1.5.0
[INFO] [stderr]     Checking once_cell v1.18.0
[INFO] [stderr]     Checking cpufeatures v0.2.9
[INFO] [stderr]    Compiling futures-task v0.3.28
[INFO] [stderr]     Checking unicode-bidi v0.3.13
[INFO] [stderr]    Compiling parking_lot_core v0.9.8
[INFO] [stderr]     Checking tinyvec v1.6.0
[INFO] [stderr]     Checking futures-sink v0.3.28
[INFO] [stderr]     Checking finl_unicode v1.2.0
[INFO] [stderr]     Checking tracing-core v0.1.31
[INFO] [stderr]     Checking byteorder v1.4.3
[INFO] [stderr]     Checking siphasher v0.3.11
[INFO] [stderr]    Compiling futures-channel v0.3.28
[INFO] [stderr]    Compiling async-trait v0.1.73
[INFO] [stderr]    Compiling generic-array v0.14.7
[INFO] [stderr]     Checking memchr v2.6.3
[INFO] [stderr]    Compiling lock_api v0.4.10
[INFO] [stderr]    Compiling slab v0.4.9
[INFO] [stderr]     Checking base64 v0.21.4
[INFO] [stderr]     Checking fallible-iterator v0.2.0
[INFO] [stderr]     Checking smallvec v1.11.0
[INFO] [stderr]    Compiling futures-util v0.3.28
[INFO] [stderr]     Checking phf_shared v0.11.2
[INFO] [stderr]    Compiling serde v1.0.188
[INFO] [stderr]     Checking pin-utils v0.1.0
[INFO] [stderr]     Checking phf v0.11.2
[INFO] [stderr]     Checking whoami v1.4.1
[INFO] [stderr]     Checking log v0.4.20
[INFO] [stderr]     Checking tracing v0.1.37
[INFO] [stderr]     Checking percent-encoding v2.3.0
[INFO] [stderr]    Compiling serde_json v1.0.107
[INFO] [stderr]     Checking ryu v1.0.15
[INFO] [stderr]     Checking itoa v1.0.9
[INFO] [stderr]     Checking lazy_static v1.4.0
[INFO] [stderr]     Checking dotenv v0.15.0
[INFO] [stderr]    Compiling quote v1.0.33
[INFO] [stderr]    Compiling syn v2.0.37
[INFO] [stderr]     Checking getrandom v0.2.10
[INFO] [stderr]     Checking mio v0.8.8
[INFO] [stderr]     Checking socket2 v0.5.4
[INFO] [stderr]     Checking unicode-normalization v0.1.22
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]     Checking parking_lot v0.12.1
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking tokio v1.32.0
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]     Checking stringprep v0.1.4
[INFO] [stderr]     Checking crypto-common v0.1.6
[INFO] [stderr]     Checking block-buffer v0.10.4
[INFO] [stderr]     Checking digest v0.10.7
[INFO] [stderr]     Checking md-5 v0.10.5
[INFO] [stderr]     Checking sha2 v0.10.7
[INFO] [stderr]     Checking hmac v0.12.1
[INFO] [stderr]     Checking postgres-protocol v0.6.6
[INFO] [stderr]     Checking postgres-types v0.2.6
[INFO] [stderr]    Compiling futures-macro v0.3.28
[INFO] [stderr]    Compiling serde_derive v1.0.188
[INFO] [stderr]     Checking tokio-util v0.7.8
[INFO] [stderr]     Checking tokio-postgres v0.7.10
[INFO] [stderr]     Checking postgres v0.19.7
[INFO] [stderr]     Checking rust-crud-api v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error: environment variable `DATABASE_URL` not defined at compile time
[INFO] [stdout]    --> src/main.rs:103:22
[INFO] [stdout]     |
[INFO] [stdout] 103 | const DB_URL: &str = env!("DATABASE_URL");
[INFO] [stdout]     |                      ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: use `std::env::var("DATABASE_URL")` to read the variable at run time
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: environment variable `DATABASE_URL` not defined at compile time
[INFO] [stdout]    --> src/main.rs:103:22
[INFO] [stdout]     |
[INFO] [stdout] 103 | const DB_URL: &str = env!("DATABASE_URL");
[INFO] [stdout]     |                      ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: use `std::env::var("DATABASE_URL")` to read the variable at run time
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0015]: cannot call non-const function `std::env::var::<&str>` in constants
[INFO] [stdout]   --> src/main.rs:84:28
[INFO] [stdout]    |
[INFO] [stdout] 84 |     const DB_URL: String = env::var("DATABASE_URL").expect("HELLO");
[INFO] [stdout]    |                            ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] note: function `var` is not const
[INFO] [stdout]   --> /rustc/6757d700f93f6d16c8b39cf79e96b019bd570e7d/library/std/src/env.rs:222:0
[INFO] [stdout]    = note: calls in constants are limited to constant functions, tuple structs and tuple variants
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0015]: cannot call non-const method `Result::<std::string::String, VarError>::expect` in constants
[INFO] [stdout]   --> src/main.rs:84:53
[INFO] [stdout]    |
[INFO] [stdout] 84 |     const DB_URL: String = env::var("DATABASE_URL").expect("HELLO");
[INFO] [stdout]    |                                                     ^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: calls in constants are limited to constant functions, tuple structs and tuple variants
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0015]: cannot call non-const function `std::env::var::<&str>` in constants
[INFO] [stdout]   --> src/main.rs:84:28
[INFO] [stdout]    |
[INFO] [stdout] 84 |     const DB_URL: String = env::var("DATABASE_URL").expect("HELLO");
[INFO] [stdout]    |                            ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] note: function `var` is not const
[INFO] [stdout]   --> /rustc/6757d700f93f6d16c8b39cf79e96b019bd570e7d/library/std/src/env.rs:222:0
[INFO] [stdout]    = note: calls in constants are limited to constant functions, tuple structs and tuple variants
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0015`.
[INFO] [stdout] 
[INFO] [stdout] error[E0015]: cannot call non-const method `Result::<std::string::String, VarError>::expect` in constants
[INFO] [stdout]   --> src/main.rs:84:53
[INFO] [stdout]    |
[INFO] [stdout] 84 |     const DB_URL: String = env::var("DATABASE_URL").expect("HELLO");
[INFO] [stdout]    |                                                     ^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: calls in constants are limited to constant functions, tuple structs and tuple variants
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust-crud-api` (bin "rust-crud-api") due to 3 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] For more information about this error, try `rustc --explain E0015`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust-crud-api` (bin "rust-crud-api" test) due to 3 previous errors
[INFO] running `Command { std: "docker" "inspect" "f12b09de8d893f33b279c10632940a1e71c49350572418af5ef9dbc568b9e74f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f12b09de8d893f33b279c10632940a1e71c49350572418af5ef9dbc568b9e74f", kill_on_drop: false }`
[INFO] [stdout] f12b09de8d893f33b279c10632940a1e71c49350572418af5ef9dbc568b9e74f
