[INFO] cloning repository https://github.com/t-xinlin/ilearning-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/t-xinlin/ilearning-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ft-xinlin%2Filearning-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ft-xinlin%2Filearning-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2b9932ccd0dfa089bb06f34599cc21d35af7ff0f [INFO] checking t-xinlin/ilearning-rust against try#4a04890980766cc79878135f5ade8c0c4321e943 for pr-65819 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ft-xinlin%2Filearning-rust" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/t-xinlin/ilearning-rust on toolchain 4a04890980766cc79878135f5ade8c0c4321e943 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+4a04890980766cc79878135f5ade8c0c4321e943" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/t-xinlin/ilearning-rust [INFO] finished tweaking git repo https://github.com/t-xinlin/ilearning-rust [INFO] tweaked toml for git repo https://github.com/t-xinlin/ilearning-rust written to /workspace/builds/worker-4/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+4a04890980766cc79878135f5ade8c0c4321e943" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+4a04890980766cc79878135f5ade8c0c4321e943" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded arc-swap v0.4.8 [INFO] [stderr] Downloaded serde-value v0.7.0 [INFO] [stderr] Downloaded log4rs v1.0.0 [INFO] [stderr] Downloaded cron v0.6.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "rustops/crates-build-env@sha256:c46a2d1a26fb48b37929c74ca49dd9409f2375a0a3bdb8fe07617f3ffccaa889" "/opt/rustwide/cargo-home/bin/cargo" "+4a04890980766cc79878135f5ade8c0c4321e943" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4a4cc2f7031bae280f79db9c61cdafaab8defc4a81367602afc2b66479cbca11 [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" "4a4cc2f7031bae280f79db9c61cdafaab8defc4a81367602afc2b66479cbca11", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4a4cc2f7031bae280f79db9c61cdafaab8defc4a81367602afc2b66479cbca11", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4a4cc2f7031bae280f79db9c61cdafaab8defc4a81367602afc2b66479cbca11", kill_on_drop: false }` [INFO] [stdout] 4a4cc2f7031bae280f79db9c61cdafaab8defc4a81367602afc2b66479cbca11 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:c46a2d1a26fb48b37929c74ca49dd9409f2375a0a3bdb8fe07617f3ffccaa889" "/opt/rustwide/cargo-home/bin/cargo" "+4a04890980766cc79878135f5ade8c0c4321e943" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] d38cac971c37a5790d3bea38979178dca00c0449dff9a2380a0164dca03b2321 [INFO] running `Command { std: "docker" "start" "-a" "d38cac971c37a5790d3bea38979178dca00c0449dff9a2380a0164dca03b2321", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.69 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Checking gimli v0.23.0 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling anyhow v1.0.40 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking linked-hash-map v0.5.4 [INFO] [stderr] Checking object v0.23.0 [INFO] [stderr] Checking traitobject v0.1.0 [INFO] [stderr] Checking rustc-demangle v0.1.18 [INFO] [stderr] Checking dtoa v0.4.8 [INFO] [stderr] Checking regex-syntax v0.6.23 [INFO] [stderr] Checking itoa v0.4.7 [INFO] [stderr] Checking log-mdc v0.1.0 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking arc-swap v0.4.8 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking path-rs v0.1.0 (/opt/rustwide/workdir/path-rs) [INFO] [stderr] Checking list v0.1.0 (/opt/rustwide/workdir/list) [INFO] [stderr] Checking ilearn-orm v0.1.0 (/opt/rustwide/workdir/orm) [INFO] [stdout] warning: variable `confPath` should have a snake case name [INFO] [stdout] --> path-rs/src/main.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let confPath = Path::new("conf").join(Path::new("log4rs.yaml")); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `conf_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `confPath` should have a snake case name [INFO] [stdout] --> path-rs/src/main.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let confPath = cwd.to_str().unwrap(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `conf_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `confPath` should have a snake case name [INFO] [stdout] --> path-rs/src/main.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let confPath = Path::new("conf").join(Path::new("log4rs.yaml")); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `conf_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `confPath` should have a snake case name [INFO] [stdout] --> path-rs/src/main.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let confPath = cwd.to_str().unwrap(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `conf_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking map-rs v0.1.0 (/opt/rustwide/workdir/map-rs) [INFO] [stdout] error[E0583]: file not found for module `sync_map` [INFO] [stdout] --> orm/src/sync_map.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | mod sync_map; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `sync_map`, create file "orm/src/sync_map/sync_map.rs" [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `self` parameter is only allowed in associated functions [INFO] [stdout] --> orm/src/decode_json.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | fn decode_json(&mut self) -> BoxFuture> [INFO] [stdout] | ^^^^^^^^^ not semantically valid as function parameter [INFO] [stdout] | [INFO] [stdout] = note: associated functions are those in `impl` or `trait` definitions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio` [INFO] [stdout] --> orm/src/sync_map.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::sync::Mutex; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking mutex-rwLock v0.1.0 (/opt/rustwide/workdir/mutex-rwLock) [INFO] [stdout] error[E0583]: file not found for module `sync_map` [INFO] [stdout] --> orm/src/sync_map.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | mod sync_map; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `sync_map`, create file "orm/src/sync_map/sync_map.rs" [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `json` in this scope [INFO] [stdout] --> orm/src/main.rs:19:56 [INFO] [stdout] | [INFO] [stdout] 19 | let data: serde_json::Value = rb.py_fetch("", py, &json!({ "delete_flag": 1 })).await.unwrap(); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serde_json` [INFO] [stdout] --> orm/src/decode_json.rs:11:23 [INFO] [stdout] | [INFO] [stdout] 11 | let v:serde_json::Value = row.json_decode_impl(key_str)?; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `serde_json` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `self` parameter is only allowed in associated functions [INFO] [stdout] --> orm/src/decode_json.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | fn decode_json(&mut self) -> BoxFuture> [INFO] [stdout] | ^^^^^^^^^ not semantically valid as function parameter [INFO] [stdout] | [INFO] [stdout] = note: associated functions are those in `impl` or `trait` definitions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio` [INFO] [stdout] --> orm/src/sync_map.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::sync::Mutex; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serde_json` [INFO] [stdout] --> orm/src/decode_json.rs:14:22 [INFO] [stdout] | [INFO] [stdout] 14 | arr.push(serde_json::Value::Object(m)); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `serde_json` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serde_json` [INFO] [stdout] --> orm/src/main.rs:19:15 [INFO] [stdout] | [INFO] [stdout] 19 | let data: serde_json::Value = rb.py_fetch("", py, &json!({ "delete_flag": 1 })).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `serde_json` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rbatis_core` [INFO] [stdout] --> orm/src/main.rs:29:59 [INFO] [stdout] | [INFO] [stdout] 29 | pub async fn begin(&self, tx_id: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared crate or module `rbatis_core` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `DeserializeOwned` in this scope [INFO] [stdout] --> orm/src/decode_json.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | where T: DeserializeOwned { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BoxFuture` in this scope [INFO] [stdout] --> orm/src/decode_json.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | fn decode_json(&mut self) -> BoxFuture> [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in the crate root [INFO] [stdout] --> orm/src/decode_json.rs:1:60 [INFO] [stdout] | [INFO] [stdout] 1 | fn decode_json(&mut self) -> BoxFuture> [INFO] [stdout] | ^^^^^ not found in the crate root [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 1 | use std::error::Error; [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::Error; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MySqlRow` in this scope [INFO] [stdout] --> orm/src/decode_json.rs:5:60 [INFO] [stdout] | [INFO] [stdout] 5 | while let Some(row) = self.next().await? as Option> { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serde_json` [INFO] [stdout] --> orm/src/decode_json.rs:6:37 [INFO] [stdout] | [INFO] [stdout] 6 | let mut m = serde_json::Map::new(); [INFO] [stdout] | ^^^ not found in `serde_json` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::iter::Map; [INFO] [stdout] | [INFO] [stdout] 1 | use std::iter::Map; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `json_decode` in this scope [INFO] [stdout] --> orm/src/decode_json.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | let r = json_decode(arr)?; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Mutex` in this scope [INFO] [stdout] --> orm/src/sync_map.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | pub cell: Mutex>> [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::Mutex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RefCell` in this scope [INFO] [stdout] --> orm/src/sync_map.rs:6:21 [INFO] [stdout] | [INFO] [stdout] 6 | pub cell: Mutex>> [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::cell::RefCell; [INFO] [stdout] | [INFO] [stdout] 3 | use std::cell::RefCell; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HashMap` in this scope [INFO] [stdout] --> orm/src/sync_map.rs:6:29 [INFO] [stdout] | [INFO] [stdout] 6 | pub cell: Mutex>> [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mutex` [INFO] [stdout] --> orm/src/sync_map.rs:12:19 [INFO] [stdout] | [INFO] [stdout] 12 | cell: Mutex::new(RefCell::new(HashMap::new())) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::Mutex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RefCell` [INFO] [stdout] --> orm/src/sync_map.rs:12:30 [INFO] [stdout] | [INFO] [stdout] 12 | cell: Mutex::new(RefCell::new(HashMap::new())) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::cell::RefCell; [INFO] [stdout] | [INFO] [stdout] 3 | use std::cell::RefCell; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap` [INFO] [stdout] --> orm/src/sync_map.rs:12:43 [INFO] [stdout] | [INFO] [stdout] 12 | cell: Mutex::new(RefCell::new(HashMap::new())) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MYSQL_URL` in this scope [INFO] [stdout] --> orm/src/main.rs:7:26 [INFO] [stdout] | [INFO] [stdout] 7 | let rb = Rbatis::new(MYSQL_URL).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SyncMap` in this scope [INFO] [stdout] --> orm/src/main.rs:23:37 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Rbatis<'r> { context_tx: SyncMap>> } [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::sync_map::SyncMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Transaction` in this scope [INFO] [stdout] --> orm/src/main.rs:23:45 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Rbatis<'r> { context_tx: SyncMap>> } [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PoolConnection` in this scope [INFO] [stdout] --> orm/src/main.rs:23:57 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Rbatis<'r> { context_tx: SyncMap>> } [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MySqlConnection` in this scope [INFO] [stdout] --> orm/src/main.rs:23:72 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Rbatis<'r> { context_tx: SyncMap>> } [INFO] [stdout] | - ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `, MySqlConnection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rbatis_core` [INFO] [stdout] --> orm/src/main.rs:30:55 [INFO] [stdout] | [INFO] [stdout] 30 | if tx_id.is_empty() { return Err(rbatis_core::Error::from("[rbatis] tx_id can not be empty")); } [INFO] [stdout] | ^^^^^ not found in `rbatis_core` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 1 | use std::error::Error; [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::Error; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> orm/src/main.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ---- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let rb = Rbatis::new(MYSQL_URL).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> orm/src/main.rs:19:35 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ---- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 19 | let data: serde_json::Value = rb.py_fetch("", py, &json!({ "delete_flag": 1 })).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0726]: implicit elided lifetime not allowed here [INFO] [stdout] --> orm/src/main.rs:25:6 [INFO] [stdout] | [INFO] [stdout] 25 | impl Rbatis { [INFO] [stdout] | ^^^^^^- help: indicate the anonymous lifetime: `<'_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `json` in this scope [INFO] [stdout] --> orm/src/main.rs:19:56 [INFO] [stdout] | [INFO] [stdout] 19 | let data: serde_json::Value = rb.py_fetch("", py, &json!({ "delete_flag": 1 })).await.unwrap(); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 29 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0425, E0433, E0583, E0728. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ilearn-orm` [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serde_json` [INFO] [stdout] --> orm/src/decode_json.rs:11:23 [INFO] [stdout] | [INFO] [stdout] 11 | let v:serde_json::Value = row.json_decode_impl(key_str)?; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `serde_json` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serde_json` [INFO] [stdout] --> orm/src/decode_json.rs:14:22 [INFO] [stdout] | [INFO] [stdout] 14 | arr.push(serde_json::Value::Object(m)); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `serde_json` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serde_json` [INFO] [stdout] --> orm/src/main.rs:19:15 [INFO] [stdout] | [INFO] [stdout] 19 | let data: serde_json::Value = rb.py_fetch("", py, &json!({ "delete_flag": 1 })).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `serde_json` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> mutex-rwLock/src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rbatis_core` [INFO] [stdout] --> orm/src/main.rs:29:59 [INFO] [stdout] | [INFO] [stdout] 29 | pub async fn begin(&self, tx_id: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared crate or module `rbatis_core` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `DeserializeOwned` in this scope [INFO] [stdout] --> orm/src/decode_json.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | where T: DeserializeOwned { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BoxFuture` in this scope [INFO] [stdout] --> orm/src/decode_json.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | fn decode_json(&mut self) -> BoxFuture> [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in the crate root [INFO] [stdout] --> orm/src/decode_json.rs:1:60 [INFO] [stdout] | [INFO] [stdout] 1 | fn decode_json(&mut self) -> BoxFuture> [INFO] [stdout] | ^^^^^ not found in the crate root [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 1 | use std::error::Error; [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::Error; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MySqlRow` in this scope [INFO] [stdout] --> orm/src/decode_json.rs:5:60 [INFO] [stdout] | [INFO] [stdout] 5 | while let Some(row) = self.next().await? as Option> { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serde_json` [INFO] [stdout] --> orm/src/decode_json.rs:6:37 [INFO] [stdout] | [INFO] [stdout] 6 | let mut m = serde_json::Map::new(); [INFO] [stdout] | ^^^ not found in `serde_json` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::iter::Map; [INFO] [stdout] | [INFO] [stdout] 1 | use std::iter::Map; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `json_decode` in this scope [INFO] [stdout] --> orm/src/decode_json.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | let r = json_decode(arr)?; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Mutex` in this scope [INFO] [stdout] --> orm/src/sync_map.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | pub cell: Mutex>> [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::Mutex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RefCell` in this scope [INFO] [stdout] --> orm/src/sync_map.rs:6:21 [INFO] [stdout] | [INFO] [stdout] 6 | pub cell: Mutex>> [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::cell::RefCell; [INFO] [stdout] | [INFO] [stdout] 3 | use std::cell::RefCell; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HashMap` in this scope [INFO] [stdout] --> orm/src/sync_map.rs:6:29 [INFO] [stdout] | [INFO] [stdout] 6 | pub cell: Mutex>> [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mutex` [INFO] [stdout] --> orm/src/sync_map.rs:12:19 [INFO] [stdout] | [INFO] [stdout] 12 | cell: Mutex::new(RefCell::new(HashMap::new())) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::Mutex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RefCell` [INFO] [stdout] --> orm/src/sync_map.rs:12:30 [INFO] [stdout] | [INFO] [stdout] 12 | cell: Mutex::new(RefCell::new(HashMap::new())) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::cell::RefCell; [INFO] [stdout] | [INFO] [stdout] 3 | use std::cell::RefCell; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap` [INFO] [stdout] --> orm/src/sync_map.rs:12:43 [INFO] [stdout] | [INFO] [stdout] 12 | cell: Mutex::new(RefCell::new(HashMap::new())) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MYSQL_URL` in this scope [INFO] [stdout] --> orm/src/main.rs:7:26 [INFO] [stdout] | [INFO] [stdout] 7 | let rb = Rbatis::new(MYSQL_URL).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SyncMap` in this scope [INFO] [stdout] --> orm/src/main.rs:23:37 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Rbatis<'r> { context_tx: SyncMap>> } [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::sync_map::SyncMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Transaction` in this scope [INFO] [stdout] --> orm/src/main.rs:23:45 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Rbatis<'r> { context_tx: SyncMap>> } [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PoolConnection` in this scope [INFO] [stdout] --> orm/src/main.rs:23:57 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Rbatis<'r> { context_tx: SyncMap>> } [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MySqlConnection` in this scope [INFO] [stdout] --> orm/src/main.rs:23:72 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Rbatis<'r> { context_tx: SyncMap>> } [INFO] [stdout] | - ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `, MySqlConnection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rbatis_core` [INFO] [stdout] --> orm/src/main.rs:30:55 [INFO] [stdout] | [INFO] [stdout] 30 | if tx_id.is_empty() { return Err(rbatis_core::Error::from("[rbatis] tx_id can not be empty")); } [INFO] [stdout] | ^^^^^ not found in `rbatis_core` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 1 | use std::error::Error; [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::Error; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> orm/src/main.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ---- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let rb = Rbatis::new(MYSQL_URL).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> orm/src/main.rs:19:35 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ---- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 19 | let data: serde_json::Value = rb.py_fetch("", py, &json!({ "delete_flag": 1 })).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0726]: implicit elided lifetime not allowed here [INFO] [stdout] --> orm/src/main.rs:25:6 [INFO] [stdout] | [INFO] [stdout] 25 | impl Rbatis { [INFO] [stdout] | ^^^^^^- help: indicate the anonymous lifetime: `<'_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 29 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0425, E0433, E0583, E0728. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> mutex-rwLock/src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> map-rs/src/main.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 71 | return; [INFO] [stdout] | ------ any code following this expression is unreachable [INFO] [stdout] 72 | [INFO] [stdout] 73 | let it: Vec<_> = (0..20).map(|x| x + 1).collect(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `N` [INFO] [stdout] --> mutex-rwLock/src/main.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | const N: usize = 10; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main1` [INFO] [stdout] --> mutex-rwLock/src/main.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn main1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `mux` [INFO] [stdout] --> mutex-rwLock/src/main.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | fn mux() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `mutex_rwLock` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `mutex_rw_lock` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Name` should have a snake case name [INFO] [stdout] --> map-rs/src/main.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | Name: String, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Age` should have a snake case name [INFO] [stdout] --> map-rs/src/main.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | Age: i32, [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `age` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> map-rs/src/main.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 71 | return; [INFO] [stdout] | ------ any code following this expression is unreachable [INFO] [stdout] 72 | [INFO] [stdout] 73 | let it: Vec<_> = (0..20).map(|x| x + 1).collect(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `N` [INFO] [stdout] --> mutex-rwLock/src/main.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | const N: usize = 10; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Name` should have a snake case name [INFO] [stdout] --> map-rs/src/main.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | Name: String, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main1` [INFO] [stdout] --> mutex-rwLock/src/main.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn main1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `mux` [INFO] [stdout] --> mutex-rwLock/src/main.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | fn mux() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `mutex_rwLock` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `mutex_rw_lock` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Age` should have a snake case name [INFO] [stdout] --> map-rs/src/main.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | Age: i32, [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `age` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "d38cac971c37a5790d3bea38979178dca00c0449dff9a2380a0164dca03b2321", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d38cac971c37a5790d3bea38979178dca00c0449dff9a2380a0164dca03b2321", kill_on_drop: false }` [INFO] [stdout] d38cac971c37a5790d3bea38979178dca00c0449dff9a2380a0164dca03b2321