[INFO] fetching crate sqlx-adapter 0.2.6... [INFO] testing sqlx-adapter-0.2.6 against 1.45.2 for beta-1.46-1 [INFO] extracting crate sqlx-adapter 0.2.6 into /workspace/builds/worker-5/source [INFO] validating manifest of crates.io crate sqlx-adapter 0.2.6 on toolchain 1.45.2 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.45.2" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate sqlx-adapter 0.2.6 [INFO] finished tweaking crates.io crate sqlx-adapter 0.2.6 [INFO] tweaked toml for crates.io crate sqlx-adapter 0.2.6 written to /workspace/builds/worker-5/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.45.2" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.45.2" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+1.45.2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 46b96344ea59a2dc547a29d6bb392cc2502aa7275d0501a90c16a0c707be4e66 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "46b96344ea59a2dc547a29d6bb392cc2502aa7275d0501a90c16a0c707be4e66", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "46b96344ea59a2dc547a29d6bb392cc2502aa7275d0501a90c16a0c707be4e66", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "46b96344ea59a2dc547a29d6bb392cc2502aa7275d0501a90c16a0c707be4e66", kill_on_drop: false }` [INFO] [stdout] 46b96344ea59a2dc547a29d6bb392cc2502aa7275d0501a90c16a0c707be4e66 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+1.45.2" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bfaadd087e76d742568b9fa720c38b3e617c979fddddffa15fb037263e96bab5 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "bfaadd087e76d742568b9fa720c38b3e617c979fddddffa15fb037263e96bab5", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling send_wrapper v0.4.0 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling futures-channel v0.3.5 [INFO] [stderr] Compiling socket2 v0.3.12 [INFO] [stderr] Compiling futures-lite v0.1.10 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.67 [INFO] [stderr] Compiling async-attributes v1.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.20 [INFO] [stderr] Compiling mio v0.6.22 [INFO] [stderr] Compiling async-stream-impl v0.2.1 [INFO] [stderr] Compiling rhai v0.17.0 [INFO] [stderr] Compiling async-trait v0.1.36 [INFO] [stderr] Compiling digest v0.8.1 [INFO] [stderr] Compiling block-buffer v0.7.3 [INFO] [stderr] Compiling native-tls v0.2.4 [INFO] [stderr] Compiling sqlformat v0.1.0 [INFO] [stderr] Compiling hmac v0.7.1 [INFO] [stderr] Compiling sha-1 v0.8.2 [INFO] [stderr] Compiling sha2 v0.8.2 [INFO] [stderr] Compiling md-5 v0.8.0 [INFO] [stderr] Compiling futures-util v0.3.5 [INFO] [stderr] Compiling blocking v0.4.7 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.67 [INFO] [stderr] Compiling tokio v0.2.22 [INFO] [stderr] Compiling async-stream v0.2.1 [INFO] [stderr] Compiling thiserror v1.0.20 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.67 [INFO] [stderr] Compiling wasm-bindgen v0.2.67 [INFO] [stderr] Compiling js-sys v0.3.44 [INFO] [stderr] Compiling smol v0.1.18 [INFO] [stderr] Compiling futures-executor v0.3.5 [INFO] [stderr] Compiling futures v0.3.5 [INFO] [stderr] Compiling web-sys v0.3.44 [INFO] [stderr] Compiling gloo-timers v0.2.1 [INFO] [stderr] Compiling futures-timer v3.0.2 [INFO] [stderr] Compiling async-std v1.6.2 [INFO] [stderr] Compiling async-native-tls v0.3.3 [INFO] [stderr] Compiling casbin v1.1.2 [INFO] [stderr] Compiling sqlx-core v0.3.5 [INFO] [stderr] Compiling sqlx-macros v0.3.5 [INFO] [stderr] Compiling sqlx v0.3.5 [INFO] [stderr] Compiling sqlx-adapter v0.2.6 (/opt/rustwide/workdir) [INFO] [stdout] error: DATABASE_URL not set [INFO] [stdout] --> src/actions.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | / sqlx::query!( [INFO] [stdout] 17 | | "CREATE TABLE IF NOT EXISTS casbin_rules ( [INFO] [stdout] 18 | | id SERIAL PRIMARY KEY, [INFO] [stdout] 19 | | ptype VARCHAR NOT NULL, [INFO] [stdout] ... | [INFO] [stdout] 28 | | " [INFO] [stdout] 29 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: DATABASE_URL not set [INFO] [stdout] --> src/actions.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | / sqlx::query!( [INFO] [stdout] 60 | | "DELETE FROM casbin_rules WHERE [INFO] [stdout] 61 | | ptype = $1 AND [INFO] [stdout] 62 | | v0 = $2 AND [INFO] [stdout] ... | [INFO] [stdout] 74 | | rule[5] [INFO] [stdout] 75 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: DATABASE_URL not set [INFO] [stdout] --> src/actions.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | / sqlx::query!( [INFO] [stdout] 121 | | "DELETE FROM casbin_rules WHERE [INFO] [stdout] 122 | | ptype = $1 AND [INFO] [stdout] 123 | | v0 = $2 AND [INFO] [stdout] ... | [INFO] [stdout] 135 | | rule[5] [INFO] [stdout] 136 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: DATABASE_URL not set [INFO] [stdout] --> src/actions.rs:211:18 [INFO] [stdout] | [INFO] [stdout] 211 | Box::new(sqlx::query!( [INFO] [stdout] | __________________^ [INFO] [stdout] 212 | | "DELETE FROM casbin_rules WHERE [INFO] [stdout] 213 | | ptype = $1 AND [INFO] [stdout] 214 | | (v5 is NULL OR v5 = $2)", [INFO] [stdout] 215 | | pt.to_string(), [INFO] [stdout] 216 | | field_values[5] [INFO] [stdout] 217 | | )) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: DATABASE_URL not set [INFO] [stdout] --> src/actions.rs:219:18 [INFO] [stdout] | [INFO] [stdout] 219 | Box::new(sqlx::query!( [INFO] [stdout] | __________________^ [INFO] [stdout] 220 | | "DELETE FROM casbin_rules WHERE [INFO] [stdout] 221 | | ptype = $1 AND [INFO] [stdout] 222 | | (v4 is NULL OR v4 = $2) AND [INFO] [stdout] ... | [INFO] [stdout] 226 | | field_values[5] [INFO] [stdout] 227 | | )) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: DATABASE_URL not set [INFO] [stdout] --> src/actions.rs:229:18 [INFO] [stdout] | [INFO] [stdout] 229 | Box::new(sqlx::query!( [INFO] [stdout] | __________________^ [INFO] [stdout] 230 | | "DELETE FROM casbin_rules WHERE [INFO] [stdout] 231 | | ptype = $1 AND [INFO] [stdout] 232 | | (v3 is NULL OR v3 = $2) AND [INFO] [stdout] ... | [INFO] [stdout] 238 | | field_values[5] [INFO] [stdout] 239 | | )) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: DATABASE_URL not set [INFO] [stdout] --> src/actions.rs:241:18 [INFO] [stdout] | [INFO] [stdout] 241 | Box::new(sqlx::query!( [INFO] [stdout] | __________________^ [INFO] [stdout] 242 | | "DELETE FROM casbin_rules WHERE [INFO] [stdout] 243 | | ptype = $1 AND [INFO] [stdout] 244 | | (v2 is NULL OR v2 = $2) AND [INFO] [stdout] ... | [INFO] [stdout] 252 | | field_values[5] [INFO] [stdout] 253 | | )) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: DATABASE_URL not set [INFO] [stdout] --> src/actions.rs:255:18 [INFO] [stdout] | [INFO] [stdout] 255 | Box::new(sqlx::query!( [INFO] [stdout] | __________________^ [INFO] [stdout] 256 | | "DELETE FROM casbin_rules WHERE [INFO] [stdout] 257 | | ptype = $1 AND [INFO] [stdout] 258 | | (v1 is NULL OR v1 = $2) AND [INFO] [stdout] ... | [INFO] [stdout] 268 | | field_values[5] [INFO] [stdout] 269 | | )) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: DATABASE_URL not set [INFO] [stdout] --> src/actions.rs:271:18 [INFO] [stdout] | [INFO] [stdout] 271 | Box::new(sqlx::query!( [INFO] [stdout] | __________________^ [INFO] [stdout] 272 | | "DELETE FROM casbin_rules WHERE [INFO] [stdout] 273 | | ptype = $1 AND [INFO] [stdout] 274 | | (v0 is NULL OR v0 = $2) AND [INFO] [stdout] ... | [INFO] [stdout] 286 | | field_values[5] [INFO] [stdout] 287 | | )) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: DATABASE_URL not set [INFO] [stdout] --> src/actions.rs:394:41 [INFO] [stdout] | [INFO] [stdout] 394 | let casbin_rules: Vec = sqlx::query_as!(CasbinRule, "SELECT * from casbin_rules") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: DATABASE_URL not set [INFO] [stdout] --> src/actions.rs:421:5 [INFO] [stdout] | [INFO] [stdout] 421 | sqlx::query!("DELETE FROM casbin_rules") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: DATABASE_URL not set [INFO] [stdout] --> src/actions.rs:426:9 [INFO] [stdout] | [INFO] [stdout] 426 | / sqlx::query!( [INFO] [stdout] 427 | | "INSERT INTO casbin_rules ( ptype, v0, v1, v2, v3, v4, v5 ) [INFO] [stdout] 428 | | VALUES ( $1, $2, $3, $4, $5, $6, $7 )", [INFO] [stdout] 429 | | rule.ptype, [INFO] [stdout] ... | [INFO] [stdout] 435 | | rule.v5 [INFO] [stdout] 436 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: DATABASE_URL not set [INFO] [stdout] --> src/actions.rs:500:5 [INFO] [stdout] | [INFO] [stdout] 500 | / sqlx::query!( [INFO] [stdout] 501 | | "INSERT INTO casbin_rules ( ptype, v0, v1, v2, v3, v4, v5 ) [INFO] [stdout] 502 | | VALUES ( $1, $2, $3, $4, $5, $6, $7 )", [INFO] [stdout] 503 | | rule.ptype, [INFO] [stdout] ... | [INFO] [stdout] 509 | | rule.v5 [INFO] [stdout] 510 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: DATABASE_URL not set [INFO] [stdout] --> src/actions.rs:550:9 [INFO] [stdout] | [INFO] [stdout] 550 | / sqlx::query!( [INFO] [stdout] 551 | | "INSERT INTO casbin_rules ( ptype, v0, v1, v2, v3, v4, v5 ) [INFO] [stdout] 552 | | VALUES ( $1, $2, $3, $4, $5, $6, $7 )", [INFO] [stdout] 553 | | rule.ptype, [INFO] [stdout] ... | [INFO] [stdout] 559 | | rule.v5 [INFO] [stdout] 560 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0726]: implicit elided lifetime not allowed here [INFO] [stdout] --> src/adapter.rs:171:68 [INFO] [stdout] | [INFO] [stdout] 171 | async fn load_filtered_policy(&mut self, m: &mut dyn Model, f: Filter) -> Result<()> { [INFO] [stdout] | ^^^^^^- help: indicate the anonymous lifetime: `<'_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0195]: lifetime parameters or bounds on method `load_filtered_policy` do not match the trait declaration [INFO] [stdout] --> src/adapter.rs:149:1 [INFO] [stdout] | [INFO] [stdout] 149 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^ lifetimes do not match method in trait [INFO] [stdout] | [INFO] [stdout] = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds [INFO] [stdout] --> src/adapter.rs:171:79 [INFO] [stdout] | [INFO] [stdout] 171 | async fn load_filtered_policy(&mut self, m: &mut dyn Model, f: Filter) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: hidden type `impl std::future::Future` captures lifetime smaller than the function body [INFO] [stdout] --> src/adapter.rs:171:79 [INFO] [stdout] | [INFO] [stdout] 171 | async fn load_filtered_policy(&mut self, m: &mut dyn Model, f: Filter) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/adapter.rs:171:65 [INFO] [stdout] | [INFO] [stdout] 171 | async fn load_filtered_policy(&mut self, m: &mut dyn Model, f: Filter) -> Result<()> { [INFO] [stdout] | ^ lifetime mismatch [INFO] [stdout] | [INFO] [stdout] = note: expected struct `casbin::adapter::Filter<'static>` [INFO] [stdout] found struct `casbin::adapter::Filter<'_>` [INFO] [stdout] note: the anonymous lifetime #1 defined on the method body at 171:5... [INFO] [stdout] --> src/adapter.rs:171:5 [INFO] [stdout] | [INFO] [stdout] 171 | / async fn load_filtered_policy(&mut self, m: &mut dyn Model, f: Filter) -> Result<()> { [INFO] [stdout] 172 | | let rules = adapter::load_policy(&self.pool).await?; [INFO] [stdout] 173 | | [INFO] [stdout] 174 | | for casbin_rule in &rules { [INFO] [stdout] ... | [INFO] [stdout] 190 | | Ok(()) [INFO] [stdout] 191 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: ...does not necessarily outlive the static lifetime [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 18 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0195, E0308, E0700. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0195`. [INFO] [stdout] [INFO] [stderr] error: could not compile `sqlx-adapter`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "bfaadd087e76d742568b9fa720c38b3e617c979fddddffa15fb037263e96bab5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bfaadd087e76d742568b9fa720c38b3e617c979fddddffa15fb037263e96bab5", kill_on_drop: false }` [INFO] [stdout] bfaadd087e76d742568b9fa720c38b3e617c979fddddffa15fb037263e96bab5