[INFO] fetching crate butane_rocket_pool 0.5.3... [INFO] testing butane_rocket_pool-0.5.3 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] extracting crate butane_rocket_pool 0.5.3 into /workspace/builds/worker-7-tc2/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-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate butane_rocket_pool 0.5.3 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 251 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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e8832a922260dd846156f4b8fb32104daaf62aa8c212b87d8f522a3573035925 [INFO] running `Command { std: "docker" "start" "-a" "e8832a922260dd846156f4b8fb32104daaf62aa8c212b87d8f522a3573035925", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e8832a922260dd846156f4b8fb32104daaf62aa8c212b87d8f522a3573035925", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e8832a922260dd846156f4b8fb32104daaf62aa8c212b87d8f522a3573035925", kill_on_drop: false }` [INFO] [stdout] e8832a922260dd846156f4b8fb32104daaf62aa8c212b87d8f522a3573035925 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 77a9b05d10c590388938ff8369b2c9534f5a5e1345516eaa8e73ef6fdf5993ce [INFO] running `Command { std: "docker" "start" "-a" "77a9b05d10c590388938ff8369b2c9534f5a5e1345516eaa8e73ef6fdf5993ce", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.22 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling time-core v0.1.6 [INFO] [stderr] Compiling inlinable_string v0.1.15 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling deranged v0.5.5 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling proc-macro2 v1.0.103 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling time-macros v0.2.24 [INFO] [stderr] Compiling bitflags v2.10.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling quote v1.0.42 [INFO] [stderr] Compiling indexmap v2.12.0 [INFO] [stderr] Compiling syn v2.0.110 [INFO] [stderr] Compiling uncased v0.9.10 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Compiling tokio v1.48.0 [INFO] [stderr] Compiling time v0.3.44 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Compiling state v0.6.0 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling winnow v0.7.13 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling scheduled-thread-pool v0.2.7 [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-iterator v0.2.0 [INFO] [stderr] Compiling uuid v1.18.1 [INFO] [stderr] Compiling r2d2 v0.8.10 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling rocket v0.5.1 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Compiling devise_core v0.4.2 [INFO] [stderr] Compiling tempfile v3.23.0 [INFO] [stderr] Compiling hyper v0.14.32 [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 binascii v0.1.4 [INFO] [stderr] Compiling atomic v0.5.3 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling pear_codegen v0.2.9 [INFO] [stderr] Compiling ref-cast-impl v1.0.25 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling ref-cast v1.0.25 [INFO] [stderr] Compiling devise_codegen v0.4.2 [INFO] [stderr] Compiling pear v0.2.9 [INFO] [stderr] Compiling devise v0.4.2 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling rocket_sync_db_pools_codegen v0.1.0 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling rocket_http v0.5.1 [INFO] [stderr] Compiling chrono v0.4.42 [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 rocket_codegen v0.5.1 [INFO] [stderr] Compiling butane_core v0.6.1 [INFO] [stderr] Compiling toml v0.8.23 [INFO] [stderr] Compiling tokio-util v0.7.17 [INFO] [stderr] Compiling tokio-stream v0.1.17 [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 29s [INFO] running `Command { std: "docker" "inspect" "77a9b05d10c590388938ff8369b2c9534f5a5e1345516eaa8e73ef6fdf5993ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "77a9b05d10c590388938ff8369b2c9534f5a5e1345516eaa8e73ef6fdf5993ce", kill_on_drop: false }` [INFO] [stdout] 77a9b05d10c590388938ff8369b2c9534f5a5e1345516eaa8e73ef6fdf5993ce [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6125421818ec9b38914029e8ba9b52b0f79c7252ed47f5734675f13b521e1ac3 [INFO] running `Command { std: "docker" "start" "-a" "6125421818ec9b38914029e8ba9b52b0f79c7252ed47f5734675f13b521e1ac3", 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.85s [INFO] running `Command { std: "docker" "inspect" "6125421818ec9b38914029e8ba9b52b0f79c7252ed47f5734675f13b521e1ac3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6125421818ec9b38914029e8ba9b52b0f79c7252ed47f5734675f13b521e1ac3", kill_on_drop: false }` [INFO] [stdout] 6125421818ec9b38914029e8ba9b52b0f79c7252ed47f5734675f13b521e1ac3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] a69b599bd16f476b7bf3466a835185f2dbba527efa6f5704f4275803ef7a624c [INFO] running `Command { std: "docker" "start" "-a" "a69b599bd16f476b7bf3466a835185f2dbba527efa6f5704f4275803ef7a624c", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.24s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/butane_rocket_pool-288a876fd72a3e1a) [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] 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]: failed to resolve: function `rocket` is not a crate or module [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 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] 16 | struct DbConn(butane_rocket_pool::Connection); [INFO] [stdout] | ------------- function or associated item `fairing` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 21 | .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] 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 - (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[E0412]: 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[E0412]: 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[E0412]: 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[E0412]: 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[E0412]: 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[E0412]: 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]: failed to resolve: use of undeclared type `Post` [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]: failed to resolve: use of undeclared type `Status` [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]: failed to resolve: use of undeclared type `Status` [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: 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] 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[E0412]: 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[E0412]: 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[E0412]: 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[E0412]: 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[E0412]: 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]: failed to resolve: use of undeclared type `Post` [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]: failed to resolve: use of undeclared type `Status` [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]: failed to resolve: use of undeclared type `Status` [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: 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.49s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "a69b599bd16f476b7bf3466a835185f2dbba527efa6f5704f4275803ef7a624c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a69b599bd16f476b7bf3466a835185f2dbba527efa6f5704f4275803ef7a624c", kill_on_drop: false }` [INFO] [stdout] a69b599bd16f476b7bf3466a835185f2dbba527efa6f5704f4275803ef7a624c