[INFO] fetching crate butane_rocket_pool 0.5.3... [INFO] testing butane_rocket_pool-0.5.3 against master#ec6f9a5b4413f74386267ef8efc93712c2ce6db6 for pr-155739 [INFO] extracting crate butane_rocket_pool 0.5.3 into /workspace/builds/worker-1-tc1/source [INFO] started tweaking crates.io crate butane_rocket_pool 0.5.3 [INFO] finished tweaking crates.io crate butane_rocket_pool 0.5.3 [INFO] tweaked toml for crates.io crate butane_rocket_pool 0.5.3 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate butane_rocket_pool 0.5.3 on toolchain ec6f9a5b4413f74386267ef8efc93712c2ce6db6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ec6f9a5b4413f74386267ef8efc93712c2ce6db6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ec6f9a5b4413f74386267ef8efc93712c2ce6db6" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 263 packages to latest compatible versions [INFO] [stderr] Adding butane v0.6.1 (available: v0.8.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ec6f9a5b4413f74386267ef8efc93712c2ce6db6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded devise_core v0.4.2 [INFO] [stderr] Downloaded devise v0.4.2 [INFO] [stderr] Downloaded rocket_sync_db_pools_codegen v0.1.0 [INFO] [stderr] Downloaded devise_codegen v0.4.2 [INFO] [stderr] Downloaded rocket_sync_db_pools v0.1.0 [INFO] [stderr] Downloaded uncased v0.9.10 [INFO] [stderr] Downloaded pear_codegen v0.2.9 [INFO] [stderr] Downloaded ubyte v0.10.4 [INFO] [stderr] Downloaded pear v0.2.9 [INFO] [stderr] Downloaded inlinable_string v0.1.15 [INFO] [stderr] Downloaded rocket_http v0.5.1 [INFO] [stderr] Downloaded atomic v0.5.3 [INFO] [stderr] Downloaded generator v0.7.5 [INFO] [stderr] Downloaded stable-pattern v0.1.0 [INFO] [stderr] Downloaded binascii v0.1.4 [INFO] [stderr] Downloaded state v0.6.0 [INFO] [stderr] Downloaded cookie v0.18.1 [INFO] [stderr] Downloaded multer v3.1.0 [INFO] [stderr] Downloaded butane_core v0.6.1 [INFO] [stderr] Downloaded figment v0.10.19 [INFO] [stderr] Downloaded loom v0.5.6 [INFO] [stderr] Downloaded postgres v0.19.13 [INFO] [stderr] Downloaded whoami v2.1.2 [INFO] [stderr] Downloaded rocket_codegen v0.5.1 [INFO] [stderr] Downloaded tokio-postgres v0.7.17 [INFO] [stderr] Downloaded crypto-common v0.2.1 [INFO] [stderr] Downloaded postgres-protocol v0.6.11 [INFO] [stderr] Downloaded digest v0.11.3 [INFO] [stderr] Downloaded block-buffer v0.12.0 [INFO] [stderr] Downloaded siphasher v1.0.3 [INFO] [stderr] Downloaded ctutils v0.4.2 [INFO] [stderr] Downloaded md-5 v0.11.0 [INFO] [stderr] Downloaded sha2 v0.11.0 [INFO] [stderr] Downloaded cmov v0.5.3 [INFO] [stderr] Downloaded hybrid-array v0.4.12 [INFO] [stderr] Downloaded const-oid v0.10.2 [INFO] [stderr] Downloaded hmac v0.13.0 [INFO] [stderr] Downloaded butane_codegen v0.6.1 [INFO] [stderr] Downloaded rusqlite v0.29.0 [INFO] [stderr] Downloaded postgres-types v0.2.13 [INFO] [stderr] Downloaded rocket v0.5.1 [INFO] [stderr] Downloaded libsqlite3-sys v0.26.0 [INFO] [stderr] Downloaded butane v0.6.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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" "+ec6f9a5b4413f74386267ef8efc93712c2ce6db6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a0d19c4ab4b7402ad3e171c8aa8b81906c627940aa2826305f7af6ab99390041 [INFO] running `Command { std: "docker" "start" "-a" "a0d19c4ab4b7402ad3e171c8aa8b81906c627940aa2826305f7af6ab99390041", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a0d19c4ab4b7402ad3e171c8aa8b81906c627940aa2826305f7af6ab99390041", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a0d19c4ab4b7402ad3e171c8aa8b81906c627940aa2826305f7af6ab99390041", kill_on_drop: false }` [INFO] [stdout] a0d19c4ab4b7402ad3e171c8aa8b81906c627940aa2826305f7af6ab99390041 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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" "+ec6f9a5b4413f74386267ef8efc93712c2ce6db6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] df2768b52e8b2cb0234232441625b984a4c12962786d5151c743e6089c334db5 [INFO] running `Command { std: "docker" "start" "-a" "df2768b52e8b2cb0234232441625b984a4c12962786d5151c743e6089c334db5", kill_on_drop: false }` [INFO] [stderr] Compiling quote v1.0.45 [INFO] [stderr] Compiling itoa v1.0.18 [INFO] [stderr] Compiling once_cell v1.21.4 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Compiling hashbrown v0.17.1 [INFO] [stderr] Compiling futures-sink v0.3.32 [INFO] [stderr] Compiling inlinable_string v0.1.15 [INFO] [stderr] Compiling futures-core v0.3.32 [INFO] [stderr] Compiling socket2 v0.6.3 [INFO] [stderr] Compiling mio v1.2.0 [INFO] [stderr] Compiling errno v0.3.14 [INFO] [stderr] Compiling zmij v1.0.21 [INFO] [stderr] Compiling num-conv v0.2.1 [INFO] [stderr] Compiling time-core v0.1.8 [INFO] [stderr] Compiling futures-channel v0.3.32 [INFO] [stderr] Compiling signal-hook-registry v1.4.8 [INFO] [stderr] Compiling deranged v0.5.8 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling tracing-core v0.1.36 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling futures-task v0.3.32 [INFO] [stderr] Compiling bitflags v2.11.1 [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Compiling tracing v0.1.44 [INFO] [stderr] Compiling time-macros v0.2.27 [INFO] [stderr] Compiling slab v0.4.12 [INFO] [stderr] Compiling zerocopy v0.8.48 [INFO] [stderr] Compiling ref-cast v1.0.25 [INFO] [stderr] Compiling futures-io v0.3.32 [INFO] [stderr] Compiling futures-util v0.3.32 [INFO] [stderr] Compiling indexmap v2.14.0 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling is-terminal v0.4.17 [INFO] [stderr] Compiling uncased v0.9.10 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling proc-macro2 v1.0.106 [INFO] [stderr] Compiling regex-automata v0.4.14 [INFO] [stderr] Compiling tokio v1.52.3 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling getrandom v0.2.17 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Compiling winnow v0.7.15 [INFO] [stderr] Compiling toml_write v0.1.2 [INFO] [stderr] Compiling getrandom v0.4.2 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling state v0.6.0 [INFO] [stderr] Compiling rustix v1.1.4 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling futures v0.3.32 [INFO] [stderr] Compiling scheduled-thread-pool v0.2.7 [INFO] [stderr] Compiling fs2 v0.4.3 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling figment v0.10.19 [INFO] [stderr] Compiling linux-raw-sys v0.12.1 [INFO] [stderr] Compiling fallible-iterator v0.2.0 [INFO] [stderr] Compiling uuid v1.23.1 [INFO] [stderr] Compiling log v0.4.29 [INFO] [stderr] Compiling r2d2 v0.8.10 [INFO] [stderr] Compiling http v1.4.0 [INFO] [stderr] Compiling time v0.3.47 [INFO] [stderr] Compiling rocket v0.5.1 [INFO] [stderr] Compiling glob v0.3.3 [INFO] [stderr] Compiling fastrand v2.4.1 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling num_cpus v1.17.0 [INFO] [stderr] Compiling rocket_sync_db_pools v0.1.0 [INFO] [stderr] Compiling binascii v0.1.4 [INFO] [stderr] Compiling atomic v0.5.3 [INFO] [stderr] Compiling butane v0.6.1 [INFO] [stderr] Compiling tempfile v3.27.0 [INFO] [stderr] Compiling regex v1.12.3 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling devise_core v0.4.2 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling pear_codegen v0.2.9 [INFO] [stderr] Compiling tokio-macros v2.7.0 [INFO] [stderr] Compiling ref-cast-impl v1.0.25 [INFO] [stderr] Compiling devise_codegen v0.4.2 [INFO] [stderr] Compiling pin-project-internal v1.1.12 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling pear v0.2.9 [INFO] [stderr] Compiling devise v0.4.2 [INFO] [stderr] Compiling rocket_sync_db_pools_codegen v0.1.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling pin-project v1.1.12 [INFO] [stderr] Compiling rocket_http v0.5.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.6 [INFO] [stderr] Compiling rocket_codegen v0.5.1 [INFO] [stderr] Compiling chrono v0.4.44 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling ubyte v0.10.4 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling butane_core v0.6.1 [INFO] [stderr] Compiling tokio-util v0.7.18 [INFO] [stderr] Compiling tokio-stream v0.1.18 [INFO] [stderr] Compiling toml v0.8.23 [INFO] [stderr] Compiling butane_codegen v0.6.1 [INFO] [stderr] Compiling butane_rocket_pool v0.5.3 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 15s [INFO] running `Command { std: "docker" "inspect" "df2768b52e8b2cb0234232441625b984a4c12962786d5151c743e6089c334db5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "df2768b52e8b2cb0234232441625b984a4c12962786d5151c743e6089c334db5", kill_on_drop: false }` [INFO] [stdout] df2768b52e8b2cb0234232441625b984a4c12962786d5151c743e6089c334db5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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" "+ec6f9a5b4413f74386267ef8efc93712c2ce6db6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fd3ed4a76e6d1c87d79b192b7a669843f553226cfaa15f8a9fe36b9e1391a7a1 [INFO] running `Command { std: "docker" "start" "-a" "fd3ed4a76e6d1c87d79b192b7a669843f553226cfaa15f8a9fe36b9e1391a7a1", kill_on_drop: false }` [INFO] [stderr] Compiling butane_rocket_pool v0.5.3 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.12s [INFO] running `Command { std: "docker" "inspect" "fd3ed4a76e6d1c87d79b192b7a669843f553226cfaa15f8a9fe36b9e1391a7a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fd3ed4a76e6d1c87d79b192b7a669843f553226cfaa15f8a9fe36b9e1391a7a1", kill_on_drop: false }` [INFO] [stdout] fd3ed4a76e6d1c87d79b192b7a669843f553226cfaa15f8a9fe36b9e1391a7a1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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" "+ec6f9a5b4413f74386267ef8efc93712c2ce6db6" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 75d21f22c8ffca657849428e8b84c9182aa57b1f7ea024ead9d6bd0bd9c08fc9 [INFO] running `Command { std: "docker" "start" "-a" "75d21f22c8ffca657849428e8b84c9182aa57b1f7ea024ead9d6bd0bd9c08fc9", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.25s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/butane_rocket_pool-d9134fc5132e5244) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stderr] Doc-tests butane_rocket_pool [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test src/lib.rs - (line 26) ... FAILED [INFO] [stdout] test src/lib.rs - (line 13) ... FAILED [INFO] [stdout] test src/lib.rs - Connection (line 62) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 26) stdout ---- [INFO] [stdout] error: cannot find attribute `post` in this scope [INFO] [stdout] --> src/lib.rs:27:3 [INFO] [stdout] | [INFO] [stdout] 27 | #[post("/", data = "")] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find macro `json` in this scope [INFO] [stdout] --> src/lib.rs:36:38 [INFO] [stdout] | [INFO] [stdout] 36 | Ok(res) => (Status::Created, json!({ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find macro `json` in this scope [INFO] [stdout] --> src/lib.rs:40:51 [INFO] [stdout] | [INFO] [stdout] 40 | Err(err) => (Status::InternalServerError, json!({ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `DbConn` in this scope [INFO] [stdout] --> src/lib.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | async fn create(db: DbConn, post: Json) -> (Status, Value) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Json` in this scope [INFO] [stdout] --> src/lib.rs:28:35 [INFO] [stdout] | [INFO] [stdout] 28 | async fn create(db: DbConn, post: Json) -> (Status, Value) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `butane::SqlType::Json` and 3 others; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 28 - async fn create(db: DbConn, post: Json) -> (Status, Value) { [INFO] [stdout] 28 + async fn create(db: DbConn, post: butane::SqlType) -> (Status, Value) { [INFO] [stdout] | [INFO] [stdout] 28 - async fn create(db: DbConn, post: Json) -> (Status, Value) { [INFO] [stdout] 28 + async fn create(db: DbConn, post: butane::SqlVal) -> (Status, Value) { [INFO] [stdout] | [INFO] [stdout] 28 - async fn create(db: DbConn, post: Json) -> (Status, Value) { [INFO] [stdout] 28 + async fn create(db: DbConn, post: butane::SqlValRef) -> (Status, Value) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Post` in this scope [INFO] [stdout] --> src/lib.rs:28:40 [INFO] [stdout] | [INFO] [stdout] 28 | async fn create(db: DbConn, post: Json) -> (Status, Value) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 28 | async fn create(db: DbConn, post: Json) -> (Status, Value) { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Status` in this scope [INFO] [stdout] --> src/lib.rs:28:51 [INFO] [stdout] | [INFO] [stdout] 28 | async fn create(db: DbConn, post: Json) -> (Status, Value) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Value` in this scope [INFO] [stdout] --> src/lib.rs:28:59 [INFO] [stdout] | [INFO] [stdout] 28 | async fn create(db: DbConn, post: Json) -> (Status, Value) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Post` in this scope [INFO] [stdout] --> src/lib.rs:29:45 [INFO] [stdout] | [INFO] [stdout] 29 | let result = db.run(move |db| -> Result { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 28 | async fn create(db: DbConn, post: Json) -> (Status, Value) { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `Post` in this scope [INFO] [stdout] --> src/lib.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | Post::get(&**db, result.id) [INFO] [stdout] | ^^^^ use of undeclared type `Post` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `Status` in this scope [INFO] [stdout] --> src/lib.rs:36:21 [INFO] [stdout] | [INFO] [stdout] 36 | Ok(res) => (Status::Created, json!({ [INFO] [stdout] | ^^^^^^ use of undeclared type `Status` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `Status` in this scope [INFO] [stdout] --> src/lib.rs:40:22 [INFO] [stdout] | [INFO] [stdout] 40 | Err(err) => (Status::InternalServerError, json!({ [INFO] [stdout] | ^^^^^^ use of undeclared type `Status` [INFO] [stdout] [INFO] [stdout] error: aborting due to 12 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 13) stdout ---- [INFO] [stdout] error: cannot find attribute `launch` in this scope [INFO] [stdout] --> src/lib.rs:18:3 [INFO] [stdout] | [INFO] [stdout] 18 | #[launch] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find macro `routes` in this scope [INFO] [stdout] --> src/lib.rs:20:32 [INFO] [stdout] | [INFO] [stdout] 20 | rocket::build().mount("/", routes![create]) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `database` in this scope [INFO] [stdout] --> src/lib.rs:15:3 [INFO] [stdout] | [INFO] [stdout] 15 | #[database("test")] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 12 + use rocket_sync_db_pools::database; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `rocket` in this scope [INFO] [stdout] --> src/lib.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | rocket::build().mount("/", routes![create]) [INFO] [stdout] | ^^^^^^ function `rocket` is not a crate or module [INFO] [stdout] | [INFO] [stdout] help: consider importing this crate [INFO] [stdout] | [INFO] [stdout] 12 + use rocket_sync_db_pools::rocket; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated function or constant named `fairing` found for struct `DbConn` in the current scope [INFO] [stdout] --> src/lib.rs:21:21 [INFO] [stdout] | [INFO] [stdout] 16 | struct DbConn(butane_rocket_pool::Connection); [INFO] [stdout] | ------------- associated function or constant `fairing` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 21 | .attach(DbConn::fairing()) [INFO] [stdout] | ^^^^^^^ associated function or constant not found in `DbConn` [INFO] [stdout] [INFO] [stdout] error[E0121]: the placeholder `_` is not allowed within types on item signatures for return types [INFO] [stdout] --> src/lib.rs:19:16 [INFO] [stdout] | [INFO] [stdout] 19 | fn rocket() -> _ { [INFO] [stdout] | ^ not allowed in type signatures [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0121, E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0121`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Connection (line 62) stdout ---- [INFO] [stdout] error: cannot find attribute `post` in this scope [INFO] [stdout] --> src/lib.rs:67:3 [INFO] [stdout] | [INFO] [stdout] 67 | #[post("/", data = "")] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find macro `json` in this scope [INFO] [stdout] --> src/lib.rs:76:38 [INFO] [stdout] | [INFO] [stdout] 76 | Ok(res) => (Status::Created, json!({ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find macro `json` in this scope [INFO] [stdout] --> src/lib.rs:80:51 [INFO] [stdout] | [INFO] [stdout] 80 | Err(err) => (Status::InternalServerError, json!({ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `database` in this scope [INFO] [stdout] --> src/lib.rs:64:3 [INFO] [stdout] | [INFO] [stdout] 64 | #[database("test")] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 61 + use rocket_sync_db_pools::database; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Json` in this scope [INFO] [stdout] --> src/lib.rs:68:31 [INFO] [stdout] | [INFO] [stdout] 68 | async fn create(db: Db, post: Json) -> (Status, Value) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `butane::SqlType::Json` and 3 others; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 68 - async fn create(db: Db, post: Json) -> (Status, Value) { [INFO] [stdout] 68 + async fn create(db: Db, post: butane::SqlType) -> (Status, Value) { [INFO] [stdout] | [INFO] [stdout] 68 - async fn create(db: Db, post: Json) -> (Status, Value) { [INFO] [stdout] 68 + async fn create(db: Db, post: butane::SqlVal) -> (Status, Value) { [INFO] [stdout] | [INFO] [stdout] 68 - async fn create(db: Db, post: Json) -> (Status, Value) { [INFO] [stdout] 68 + async fn create(db: Db, post: butane::SqlValRef) -> (Status, Value) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Post` in this scope [INFO] [stdout] --> src/lib.rs:68:36 [INFO] [stdout] | [INFO] [stdout] 68 | async fn create(db: Db, post: Json) -> (Status, Value) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 68 | async fn create(db: Db, post: Json) -> (Status, Value) { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Status` in this scope [INFO] [stdout] --> src/lib.rs:68:47 [INFO] [stdout] | [INFO] [stdout] 68 | async fn create(db: Db, post: Json) -> (Status, Value) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Value` in this scope [INFO] [stdout] --> src/lib.rs:68:55 [INFO] [stdout] | [INFO] [stdout] 68 | async fn create(db: Db, post: Json) -> (Status, Value) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Post` in this scope [INFO] [stdout] --> src/lib.rs:69:45 [INFO] [stdout] | [INFO] [stdout] 69 | let result = db.run(move |db| -> Result { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 68 | async fn create(db: Db, post: Json) -> (Status, Value) { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `run` found for struct `Db` in the current scope [INFO] [stdout] --> src/lib.rs:69:21 [INFO] [stdout] | [INFO] [stdout] 65 | struct Db(butane_rocket_pool::Connection); [INFO] [stdout] | --------- method `run` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 69 | let result = db.run(move |db| -> Result { [INFO] [stdout] | ---^^^ method not found in `Db` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `Post` in this scope [INFO] [stdout] --> src/lib.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | Post::get(&**db, result.id) [INFO] [stdout] | ^^^^ use of undeclared type `Post` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `Status` in this scope [INFO] [stdout] --> src/lib.rs:76:21 [INFO] [stdout] | [INFO] [stdout] 76 | Ok(res) => (Status::Created, json!({ [INFO] [stdout] | ^^^^^^ use of undeclared type `Status` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `Status` in this scope [INFO] [stdout] --> src/lib.rs:80:22 [INFO] [stdout] | [INFO] [stdout] 80 | Err(err) => (Status::InternalServerError, json!({ [INFO] [stdout] | ^^^^^^ use of undeclared type `Status` [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 13) [INFO] [stdout] src/lib.rs - (line 26) [INFO] [stdout] src/lib.rs - Connection (line 62) [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.53s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "75d21f22c8ffca657849428e8b84c9182aa57b1f7ea024ead9d6bd0bd9c08fc9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "75d21f22c8ffca657849428e8b84c9182aa57b1f7ea024ead9d6bd0bd9c08fc9", kill_on_drop: false }` [INFO] [stdout] 75d21f22c8ffca657849428e8b84c9182aa57b1f7ea024ead9d6bd0bd9c08fc9