[INFO] fetching crate butane_rocket_pool 0.5.3... [INFO] testing butane_rocket_pool-0.5.3 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate butane_rocket_pool 0.5.3 into /workspace/builds/worker-6-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-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate butane_rocket_pool 0.5.3 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 260 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rocket_sync_db_pools_codegen v0.1.0 [INFO] [stderr] Downloaded rocket_sync_db_pools v0.1.0 [INFO] [stderr] Downloaded devise_codegen v0.4.2 [INFO] [stderr] Downloaded pear_codegen v0.2.9 [INFO] [stderr] Downloaded devise_core v0.4.2 [INFO] [stderr] Downloaded state v0.6.0 [INFO] [stderr] Downloaded binascii v0.1.4 [INFO] [stderr] Downloaded ubyte v0.10.4 [INFO] [stderr] Downloaded devise v0.4.2 [INFO] [stderr] Downloaded butane_codegen v0.6.1 [INFO] [stderr] Downloaded r2d2 v0.8.10 [INFO] [stderr] Downloaded butane v0.6.1 [INFO] [stderr] Downloaded generator v0.7.5 [INFO] [stderr] Downloaded postgres v0.19.10 [INFO] [stderr] Downloaded butane_core v0.6.1 [INFO] [stderr] Downloaded scheduled-thread-pool v0.2.7 [INFO] [stderr] Downloaded tokio-postgres v0.7.13 [INFO] [stderr] Downloaded figment v0.10.19 [INFO] [stderr] Downloaded rocket_http v0.5.1 [INFO] [stderr] Downloaded rusqlite v0.29.0 [INFO] [stderr] Downloaded rocket_codegen v0.5.1 [INFO] [stderr] Downloaded rocket v0.5.1 [INFO] [stderr] Downloaded atomic v0.5.3 [INFO] [stderr] Downloaded pear v0.2.9 [INFO] [stderr] Downloaded stable-pattern v0.1.0 [INFO] [stderr] Downloaded uncased v0.9.10 [INFO] [stderr] Downloaded loom v0.5.6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b0c96e2ce3cd3f2126d8680fab76ad905d57545b2a1d05b5de5d302d84de2056 [INFO] running `Command { std: "docker" "start" "-a" "b0c96e2ce3cd3f2126d8680fab76ad905d57545b2a1d05b5de5d302d84de2056", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b0c96e2ce3cd3f2126d8680fab76ad905d57545b2a1d05b5de5d302d84de2056", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b0c96e2ce3cd3f2126d8680fab76ad905d57545b2a1d05b5de5d302d84de2056", kill_on_drop: false }` [INFO] [stdout] b0c96e2ce3cd3f2126d8680fab76ad905d57545b2a1d05b5de5d302d84de2056 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3ad10bbf400a95e09fd6b5fb34f8391011957a8aa392e23fba8a3e833b42dacc [INFO] running `Command { std: "docker" "start" "-a" "3ad10bbf400a95e09fd6b5fb34f8391011957a8aa392e23fba8a3e833b42dacc", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling inlinable_string v0.1.15 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling time-macros v0.2.23 [INFO] [stderr] Compiling bitflags v2.9.3 [INFO] [stderr] Compiling ref-cast v1.0.24 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling uncased v0.9.10 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling time v0.3.42 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Compiling state v0.6.0 [INFO] [stderr] Compiling winnow v0.7.13 [INFO] [stderr] Compiling rustix v1.0.8 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling regex-automata v0.4.10 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling scheduled-thread-pool v0.2.7 [INFO] [stderr] Compiling indexmap v2.11.0 [INFO] [stderr] Compiling fs2 v0.4.3 [INFO] [stderr] Compiling figment v0.10.19 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling fallible-streaming-iterator v0.1.9 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling uuid v1.18.0 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling fallible-iterator v0.2.0 [INFO] [stderr] Compiling r2d2 v0.8.10 [INFO] [stderr] Compiling regex v1.11.2 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling devise_core v0.4.2 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling rocket v0.5.1 [INFO] [stderr] Compiling glob v0.3.3 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling num_cpus v1.17.0 [INFO] [stderr] Compiling rocket_sync_db_pools v0.1.0 [INFO] [stderr] Compiling butane v0.6.1 [INFO] [stderr] Compiling atomic v0.5.3 [INFO] [stderr] Compiling binascii v0.1.4 [INFO] [stderr] Compiling tempfile v3.21.0 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling pear_codegen v0.2.9 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling ref-cast-impl v1.0.24 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling devise_codegen v0.4.2 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling devise v0.4.2 [INFO] [stderr] Compiling pear v0.2.9 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling rocket_sync_db_pools_codegen v0.1.0 [INFO] [stderr] Compiling rocket_http v0.5.1 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling rocket_codegen v0.5.1 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling ubyte v0.10.4 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling butane_core v0.6.1 [INFO] [stderr] Compiling tokio-stream v0.1.17 [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 2m 28s [INFO] running `Command { std: "docker" "inspect" "3ad10bbf400a95e09fd6b5fb34f8391011957a8aa392e23fba8a3e833b42dacc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3ad10bbf400a95e09fd6b5fb34f8391011957a8aa392e23fba8a3e833b42dacc", kill_on_drop: false }` [INFO] [stdout] 3ad10bbf400a95e09fd6b5fb34f8391011957a8aa392e23fba8a3e833b42dacc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0db57b3b721639448d8255d498f22c534cc15e1a5906cfae80f01921631b8bb3 [INFO] running `Command { std: "docker" "start" "-a" "0db57b3b721639448d8255d498f22c534cc15e1a5906cfae80f01921631b8bb3", 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 0.96s [INFO] running `Command { std: "docker" "inspect" "0db57b3b721639448d8255d498f22c534cc15e1a5906cfae80f01921631b8bb3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0db57b3b721639448d8255d498f22c534cc15e1a5906cfae80f01921631b8bb3", kill_on_drop: false }` [INFO] [stdout] 0db57b3b721639448d8255d498f22c534cc15e1a5906cfae80f01921631b8bb3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] b041693ee58b17e0d4c39b436fd1ff536d01314088d52377d7affa8936570a84 [INFO] running `Command { std: "docker" "start" "-a" "b041693ee58b17e0d4c39b436fd1ff536d01314088d52377d7affa8936570a84", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.29s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/butane_rocket_pool-60c6676fc23e67c9) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests butane_rocket_pool [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test src/lib.rs - (line 13) ... FAILED [INFO] [stdout] test src/lib.rs - (line 26) ... FAILED [INFO] [stdout] test src/lib.rs - Connection (line 62) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [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] 8 | #[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] 10 | 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] 5 | #[database("test")] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use rocket_sync_db_pools::database; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: function `rocket` is not a crate or module [INFO] [stdout] --> src/lib.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 10 | 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] 2 + use rocket_sync_db_pools::rocket; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `fairing` found for struct `DbConn` in the current scope [INFO] [stdout] --> src/lib.rs:21:21 [INFO] [stdout] | [INFO] [stdout] 6 | struct DbConn(butane_rocket_pool::Connection); [INFO] [stdout] | ------------- function or associated item `fairing` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 11 | .attach(DbConn::fairing()) [INFO] [stdout] | ^^^^^^^ function or associated item 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] 9 | 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 - (line 26) stdout ---- [INFO] [stdout] error: cannot find attribute `post` in this scope [INFO] [stdout] --> src/lib.rs:27:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[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] 12 | 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] 16 | Err(err) => (Status::InternalServerError, json!({ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DbConn` in this scope [INFO] [stdout] --> src/lib.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 4 | async fn create(db: DbConn, post: Json) -> (Status, Value) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Json` in this scope [INFO] [stdout] --> src/lib.rs:28:35 [INFO] [stdout] | [INFO] [stdout] 4 | 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] 4 - async fn create(db: DbConn, post: Json) -> (Status, Value) { [INFO] [stdout] 4 + async fn create(db: DbConn, post: butane::SqlType) -> (Status, Value) { [INFO] [stdout] | [INFO] [stdout] 4 - async fn create(db: DbConn, post: Json) -> (Status, Value) { [INFO] [stdout] 4 + async fn create(db: DbConn, post: butane::SqlVal) -> (Status, Value) { [INFO] [stdout] | [INFO] [stdout] 4 - async fn create(db: DbConn, post: Json) -> (Status, Value) { [INFO] [stdout] 4 + async fn create(db: DbConn, post: butane::SqlValRef) -> (Status, Value) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Post` in this scope [INFO] [stdout] --> src/lib.rs:28:40 [INFO] [stdout] | [INFO] [stdout] 4 | 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] 4 | async fn create(db: DbConn, post: Json) -> (Status, Value) { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Status` in this scope [INFO] [stdout] --> src/lib.rs:28:51 [INFO] [stdout] | [INFO] [stdout] 4 | async fn create(db: DbConn, post: Json) -> (Status, Value) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Value` in this scope [INFO] [stdout] --> src/lib.rs:28:59 [INFO] [stdout] | [INFO] [stdout] 4 | async fn create(db: DbConn, post: Json) -> (Status, Value) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Post` in this scope [INFO] [stdout] --> src/lib.rs:29:45 [INFO] [stdout] | [INFO] [stdout] 5 | 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] 4 | async fn create(db: DbConn, post: Json) -> (Status, Value) { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Post` [INFO] [stdout] --> src/lib.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 8 | Post::get(&**db, result.id) [INFO] [stdout] | ^^^^ use of undeclared type `Post` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Status` [INFO] [stdout] --> src/lib.rs:36:21 [INFO] [stdout] | [INFO] [stdout] 12 | Ok(res) => (Status::Created, json!({ [INFO] [stdout] | ^^^^^^ use of undeclared type `Status` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Status` [INFO] [stdout] --> src/lib.rs:40:22 [INFO] [stdout] | [INFO] [stdout] 16 | 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: E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [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] 8 | #[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] 17 | 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] 21 | 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] 5 | #[database("test")] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use rocket_sync_db_pools::database; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Json` in this scope [INFO] [stdout] --> src/lib.rs:68:31 [INFO] [stdout] | [INFO] [stdout] 9 | 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] 9 - async fn create(db: Db, post: Json) -> (Status, Value) { [INFO] [stdout] 9 + async fn create(db: Db, post: butane::SqlType) -> (Status, Value) { [INFO] [stdout] | [INFO] [stdout] 9 - async fn create(db: Db, post: Json) -> (Status, Value) { [INFO] [stdout] 9 + async fn create(db: Db, post: butane::SqlVal) -> (Status, Value) { [INFO] [stdout] | [INFO] [stdout] 9 - async fn create(db: Db, post: Json) -> (Status, Value) { [INFO] [stdout] 9 + async fn create(db: Db, post: butane::SqlValRef) -> (Status, Value) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Post` in this scope [INFO] [stdout] --> src/lib.rs:68:36 [INFO] [stdout] | [INFO] [stdout] 9 | 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] 9 | async fn create(db: Db, post: Json) -> (Status, Value) { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Status` in this scope [INFO] [stdout] --> src/lib.rs:68:47 [INFO] [stdout] | [INFO] [stdout] 9 | async fn create(db: Db, post: Json) -> (Status, Value) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Value` in this scope [INFO] [stdout] --> src/lib.rs:68:55 [INFO] [stdout] | [INFO] [stdout] 9 | async fn create(db: Db, post: Json) -> (Status, Value) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Post` in this scope [INFO] [stdout] --> src/lib.rs:69:45 [INFO] [stdout] | [INFO] [stdout] 10 | 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] 9 | 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] 6 | struct Db(butane_rocket_pool::Connection); [INFO] [stdout] | --------- method `run` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 10 | let result = db.run(move |db| -> Result { [INFO] [stdout] | ---^^^ method not found in `Db` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Post` [INFO] [stdout] --> src/lib.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 13 | Post::get(&**db, result.id) [INFO] [stdout] | ^^^^ use of undeclared type `Post` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Status` [INFO] [stdout] --> src/lib.rs:76:21 [INFO] [stdout] | [INFO] [stdout] 17 | Ok(res) => (Status::Created, json!({ [INFO] [stdout] | ^^^^^^ use of undeclared type `Status` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Status` [INFO] [stdout] --> src/lib.rs:80:22 [INFO] [stdout] | [INFO] [stdout] 21 | 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: E0412, E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [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] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.57s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "b041693ee58b17e0d4c39b436fd1ff536d01314088d52377d7affa8936570a84", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b041693ee58b17e0d4c39b436fd1ff536d01314088d52377d7affa8936570a84", kill_on_drop: false }` [INFO] [stdout] b041693ee58b17e0d4c39b436fd1ff536d01314088d52377d7affa8936570a84