[INFO] cloning repository https://github.com/oxide-byte/todo-ws-actix [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/oxide-byte/todo-ws-actix" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foxide-byte%2Ftodo-ws-actix", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foxide-byte%2Ftodo-ws-actix'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 282672ae9e80962827d9fa7f2fde802e594e1c1b [INFO] testing oxide-byte/todo-ws-actix against master#ff2c56344c764af598ad33027e9c7a48881808ef for pr-118825 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foxide-byte%2Ftodo-ws-actix" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/oxide-byte/todo-ws-actix on toolchain ff2c56344c764af598ad33027e9c7a48881808ef [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ff2c56344c764af598ad33027e9c7a48881808ef" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/oxide-byte/todo-ws-actix [INFO] finished tweaking git repo https://github.com/oxide-byte/todo-ws-actix [INFO] tweaked toml for git repo https://github.com/oxide-byte/todo-ws-actix written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/oxide-byte/todo-ws-actix already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ff2c56344c764af598ad33027e9c7a48881808ef" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rbatis-macro-driver v4.5.1 [INFO] [stderr] Downloaded fastdate v0.3.25 [INFO] [stderr] Downloaded bigdecimal v0.4.2 [INFO] [stderr] Downloaded rbdc-pool-mobc v4.5.6 [INFO] [stderr] Downloaded fast_log v1.6.10 [INFO] [stderr] Downloaded impl-more v0.1.6 [INFO] [stderr] Downloaded mobc v0.8.3 [INFO] [stderr] Downloaded actix-tls v3.1.1 [INFO] [stderr] Downloaded html_parser v0.6.3 [INFO] [stderr] Downloaded awc v3.2.0 [INFO] [stderr] Downloaded dark-std v0.2.8 [INFO] [stderr] Downloaded rbs v4.5.1 [INFO] [stderr] Downloaded rbdc v4.5.9 [INFO] [stderr] Downloaded rbatis-codegen v4.5.0 [INFO] [stderr] Downloaded actix-web-middleware-keycloak-auth v0.4.1 [INFO] [stderr] Downloaded rbdc-pg v4.5.1 [INFO] [stderr] Downloaded rbatis v4.5.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+ff2c56344c764af598ad33027e9c7a48881808ef" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ce94ceacb5453c7581b4cf62f3a7110cd00e418bb0660da936932974530b7e05 [INFO] running `Command { std: "docker" "start" "-a" "ce94ceacb5453c7581b4cf62f3a7110cd00e418bb0660da936932974530b7e05", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ce94ceacb5453c7581b4cf62f3a7110cd00e418bb0660da936932974530b7e05", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ce94ceacb5453c7581b4cf62f3a7110cd00e418bb0660da936932974530b7e05", kill_on_drop: false }` [INFO] [stdout] ce94ceacb5453c7581b4cf62f3a7110cd00e418bb0660da936932974530b7e05 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+ff2c56344c764af598ad33027e9c7a48881808ef" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b59f712e5b415996ab9b5586c7e6e1417e24e2ebd08fa1fb200f334249fa6033 [INFO] running `Command { std: "docker" "start" "-a" "b59f712e5b415996ab9b5586c7e6e1417e24e2ebd08fa1fb200f334249fa6033", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Compiling memchr v2.6.4 [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling itoa v1.0.9 [INFO] [stderr] Compiling pin-project-lite v0.2.13 [INFO] [stderr] Compiling serde v1.0.193 [INFO] [stderr] Compiling futures-core v0.3.29 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling bytes v1.5.0 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling smallvec v1.11.2 [INFO] [stderr] Compiling futures-sink v0.3.29 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling thiserror v1.0.50 [INFO] [stderr] Compiling futures-channel v0.3.29 [INFO] [stderr] Compiling serde_json v1.0.108 [INFO] [stderr] Compiling ryu v1.0.15 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling futures-task v0.3.29 [INFO] [stderr] Compiling futures-util v0.3.29 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling ahash v0.8.6 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling percent-encoding v2.3.0 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling futures-io v0.3.29 [INFO] [stderr] Compiling time-macros v0.2.15 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling base64 v0.21.5 [INFO] [stderr] Compiling zerocopy v0.7.26 [INFO] [stderr] Compiling allocator-api2 v0.2.16 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling form_urlencoded v1.2.0 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling syn v2.0.39 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling pkg-config v0.3.27 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling subtle v2.5.0 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Compiling async-trait v0.1.74 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Compiling http v0.2.11 [INFO] [stderr] Compiling ucd-trie v0.1.6 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stderr] Compiling unicode-bidi v0.3.13 [INFO] [stderr] Compiling rustls v0.21.9 [INFO] [stderr] Compiling jobserver v0.1.27 [INFO] [stderr] Compiling getrandom v0.2.11 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling mio v0.8.9 [INFO] [stderr] Compiling socket2 v0.5.5 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling hashbrown v0.14.2 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling local-waker v0.1.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling bytestring v1.3.1 [INFO] [stderr] Compiling cpufeatures v0.2.11 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling zstd-safe v6.0.6 [INFO] [stderr] Compiling bitflags v2.4.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling alloc-no-stdlib v2.0.4 [INFO] [stderr] Compiling actix-utils v3.0.1 [INFO] [stderr] Compiling alloc-stdlib v0.2.2 [INFO] [stderr] Compiling idna v0.4.0 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling miniz_oxide v0.7.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling indexmap v2.1.0 [INFO] [stderr] Compiling brotli-decompressor v2.5.1 [INFO] [stderr] Compiling bigdecimal v0.4.2 [INFO] [stderr] Compiling ring v0.17.5 [INFO] [stderr] Compiling zstd-sys v2.0.9+zstd.1.5.5 [INFO] [stderr] Compiling ahash v0.7.7 [INFO] [stderr] Compiling actix-service v2.0.2 [INFO] [stderr] Compiling url v2.4.1 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling brotli v3.4.0 [INFO] [stderr] Compiling flate2 v1.0.28 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling local-channel v0.1.5 [INFO] [stderr] Compiling encoding_rs v0.8.33 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling regex-automata v0.4.3 [INFO] [stderr] Compiling crossbeam-epoch v0.9.15 [INFO] [stderr] Compiling overload v0.1.1 [INFO] [stderr] Compiling metrics v0.18.1 [INFO] [stderr] Compiling language-tags v0.3.2 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling nu-ansi-term v0.46.0 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling lru v0.12.0 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling thread_local v1.1.7 [INFO] [stderr] Compiling webpki-roots v0.25.2 [INFO] [stderr] Compiling crossbeam-queue v0.3.8 [INFO] [stderr] Compiling rustix v0.38.25 [INFO] [stderr] Compiling tracing-subscriber v0.3.18 [INFO] [stderr] Compiling flume v0.11.0 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling futures-timer v3.0.2 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling linux-raw-sys v0.4.11 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling option-ext v0.2.0 [INFO] [stderr] Compiling dirs-sys v0.4.1 [INFO] [stderr] Compiling crossbeam-deque v0.8.3 [INFO] [stderr] Compiling pem v1.1.1 [INFO] [stderr] Compiling crossbeam-channel v0.5.8 [INFO] [stderr] Compiling rust-format v0.3.4 [INFO] [stderr] Compiling finl_unicode v1.2.0 [INFO] [stderr] Compiling impl-more v0.1.6 [INFO] [stderr] Compiling iana-time-zone v0.1.58 [INFO] [stderr] Compiling stringprep v0.1.4 [INFO] [stderr] Compiling dirs v5.0.1 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling crossbeam v0.8.2 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling termcolor v1.4.0 [INFO] [stderr] Compiling is-terminal v0.4.9 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling whoami v1.4.1 [INFO] [stderr] Compiling regex v1.10.2 [INFO] [stderr] Compiling either v1.9.0 [INFO] [stderr] Compiling env_logger v0.10.1 [INFO] [stderr] Compiling serde_derive v1.0.193 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling thiserror-impl v1.0.50 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling futures-macro v0.3.29 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling metrics-macros v0.5.1 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling tokio v1.34.0 [INFO] [stderr] Compiling pest v2.7.5 [INFO] [stderr] Compiling pest_meta v2.7.5 [INFO] [stderr] Compiling pest_generator v2.7.5 [INFO] [stderr] Compiling futures-executor v0.3.29 [INFO] [stderr] Compiling futures v0.3.29 [INFO] [stderr] Compiling pest_derive v2.7.5 [INFO] [stderr] Compiling tokio-util v0.7.10 [INFO] [stderr] Compiling actix-rt v2.9.0 [INFO] [stderr] Compiling mobc v0.8.3 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling actix-server v2.3.0 [INFO] [stderr] Compiling actix-codec v0.5.1 [INFO] [stderr] Compiling h2 v0.3.22 [INFO] [stderr] Compiling zstd v0.12.4 [INFO] [stderr] Compiling actix-router v0.5.1 [INFO] [stderr] Compiling rbs v4.5.1 [INFO] [stderr] Compiling deranged v0.3.9 [INFO] [stderr] Compiling uuid v1.6.1 [INFO] [stderr] Compiling serde_bytes v0.11.12 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling dark-std v0.2.8 [INFO] [stderr] Compiling chrono v0.4.31 [INFO] [stderr] Compiling html_parser v0.6.3 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling actix-tls v3.1.1 [INFO] [stderr] Compiling actix-web-codegen v4.2.2 [INFO] [stderr] Compiling time v0.3.30 [INFO] [stderr] Compiling rbatis-codegen v4.5.0 [INFO] [stderr] Compiling fastdate v0.3.25 [INFO] [stderr] Compiling simple_asn1 v0.6.2 [INFO] [stderr] Compiling rbatis-macro-driver v4.5.1 [INFO] [stderr] Compiling actix-http v3.4.0 [INFO] [stderr] Compiling jsonwebtoken v8.3.0 [INFO] [stderr] Compiling rbdc v4.5.9 [INFO] [stderr] Compiling fast_log v1.6.10 [INFO] [stderr] Compiling rbdc-pool-mobc v4.5.6 [INFO] [stderr] Compiling rbdc-pg v4.5.1 [INFO] [stderr] Compiling rbatis v4.5.3 [INFO] [stderr] Compiling actix-web v4.4.0 [INFO] [stderr] Compiling awc v3.2.0 [INFO] [stderr] Compiling actix-web-middleware-keycloak-auth v0.4.1 [INFO] [stderr] Compiling actix-cors v0.6.4 [INFO] [stderr] Compiling todo_ws_actix v1.0.0 (/opt/rustwide/workdir) [INFO] [stdout] ............gen macro py_sql : [INFO] [stdout] pub async fn [INFO] [stdout] insert_batch(executor : & dyn rbatis :: executor :: Executor, tables : & [INFO] [stdout] [Todo], table_name : & str,) -> std :: result :: Result < rbatis :: rbdc :: db [INFO] [stdout] :: ExecResult, rbatis :: rbdc :: Error > [INFO] [stdout] { [INFO] [stdout] let mut rb_arg_map = rbs :: value :: map :: ValueMap :: new() ; [INFO] [stdout] rb_arg_map.insert("tables".to_string().into(), rbs :: to_value(tables) ?) [INFO] [stdout] ; [INFO] [stdout] rb_arg_map.insert("table_name".to_string().into(), rbs :: [INFO] [stdout] to_value(table_name) ?) ; {} use rbatis :: executor :: { RBatisRef } ; let [INFO] [stdout] driver_type = executor.rb_ref().driver_type() ? ; use rbatis :: [INFO] [stdout] rbatis_codegen ; pub fn do_py_sql(arg : & rbs :: Value, _tag : char) -> [INFO] [stdout] (String, Vec < rbs :: Value >) [INFO] [stdout] { [INFO] [stdout] use rbatis_codegen :: ops :: * ; let mut sql = String :: [INFO] [stdout] with_capacity(65usize) ; let mut args = Vec :: with_capacity(20) ; [INFO] [stdout] sql.push_str("insert into ${table_name} ".replacen("${table_name}", & [INFO] [stdout] { & arg ["table_name"] }.as_sql(), 1).as_str()) ; [INFO] [stdout] sql.push_str(& [INFO] [stdout] { [INFO] [stdout] let mut sql = String :: with_capacity(35usize) ; for(idx, table) [INFO] [stdout] in { & arg ["tables"] } [INFO] [stdout] { [INFO] [stdout] if { (idx).op_eq(& 0i64) }.to_owned().into() [INFO] [stdout] { [INFO] [stdout] sql.push_str("(") ; [INFO] [stdout] sql.push_str(& [INFO] [stdout] { [INFO] [stdout] let mut sql = String :: with_capacity(7usize) ; for(k, v) in [INFO] [stdout] { table } [INFO] [stdout] { [INFO] [stdout] if [INFO] [stdout] { [INFO] [stdout] bool :: op_from((k).op_eq(& "id")) && bool :: [INFO] [stdout] op_from((v).op_eq(& rbs :: Value :: Null)) [INFO] [stdout] }.to_owned().into() { continue } [INFO] [stdout] sql.push_str("${k},".replacen("${k}", & { k }.as_sql(), [INFO] [stdout] 1).as_str()) ; [INFO] [stdout] } sql = [INFO] [stdout] sql.trim_start_matches(",").trim_end_matches(",").to_string() [INFO] [stdout] ; sql [INFO] [stdout] }) ; sql.push_str(") VALUES ") ; [INFO] [stdout] } sql.push_str("(") ; [INFO] [stdout] sql.push_str(& [INFO] [stdout] { [INFO] [stdout] let mut sql = String :: with_capacity(7usize) ; for(k, v) in [INFO] [stdout] { table } [INFO] [stdout] { [INFO] [stdout] if [INFO] [stdout] { [INFO] [stdout] bool :: op_from((k).op_eq(& "id")) && bool :: [INFO] [stdout] op_from((v).op_eq(& rbs :: Value :: Null)) [INFO] [stdout] }.to_owned().into() { continue } [INFO] [stdout] args.push(rbs :: to_value({ v }).unwrap_or_default()) ; [INFO] [stdout] sql.push_str("?,") ; [INFO] [stdout] } sql = [INFO] [stdout] sql.trim_start_matches(",").trim_end_matches(",").to_string() [INFO] [stdout] ; sql [INFO] [stdout] }) ; sql.push_str("),") ; [INFO] [stdout] } sql = [INFO] [stdout] sql.trim_start_matches(",").trim_end_matches(",").to_string() ; [INFO] [stdout] sql [INFO] [stdout] }) ; return(sql, args) ; [INFO] [stdout] } let(mut sql, rb_args) = [INFO] [stdout] do_py_sql(& rbs :: Value :: Map(rb_arg_map), '?') ; use rbatis :: executor [INFO] [stdout] :: { Executor } ; executor.exec(& sql, rb_args).await [INFO] [stdout] } [INFO] [stdout] ............gen macro py_sql end............ [INFO] [stdout] ............gen macro py_sql : [INFO] [stdout] pub async fn [INFO] [stdout] select_all(executor : & dyn rbatis :: executor :: Executor, table_column : & [INFO] [stdout] str, table_name : & str,) -> std :: result :: Result < Vec < Todo >, rbatis :: [INFO] [stdout] rbdc :: Error > [INFO] [stdout] { [INFO] [stdout] let mut rb_arg_map = rbs :: value :: map :: ValueMap :: new() ; [INFO] [stdout] rb_arg_map.insert("table_column".to_string().into(), rbs :: [INFO] [stdout] to_value(table_column) ?) ; [INFO] [stdout] rb_arg_map.insert("table_name".to_string().into(), rbs :: [INFO] [stdout] to_value(table_name) ?) ; {} use rbatis :: executor :: { RBatisRef } ; let [INFO] [stdout] driver_type = executor.rb_ref().driver_type() ? ; use rbatis :: [INFO] [stdout] rbatis_codegen ; pub fn do_py_sql(arg : & rbs :: Value, _tag : char) -> [INFO] [stdout] (String, Vec < rbs :: Value >) [INFO] [stdout] { [INFO] [stdout] use rbatis_codegen :: ops :: * ; let mut sql = String :: [INFO] [stdout] with_capacity(44usize) ; let mut args = Vec :: with_capacity(20) ; [INFO] [stdout] sql.push_str("select ${table_column} from ${table_name} ".replacen("${table_column}", [INFO] [stdout] & { & arg ["table_column"] }.as_sql(), [INFO] [stdout] 1).replacen("${table_name}", & { & arg ["table_name"] }.as_sql(), [INFO] [stdout] 1).as_str()) ; return(sql, args) ; [INFO] [stdout] } let(mut sql, rb_args) = [INFO] [stdout] do_py_sql(& rbs :: Value :: Map(rb_arg_map), '?') ; use rbatis :: executor [INFO] [stdout] :: { Executor } ; let r = executor.query(& sql, rb_args).await ? ; rbatis [INFO] [stdout] :: decode :: decode(r) [INFO] [stdout] } [INFO] [stdout] ............gen macro py_sql end............ [INFO] [stdout] ............gen macro py_sql : [INFO] [stdout] pub async fn select_by_column < V : serde :: Serialize, > [INFO] [stdout] (executor : & dyn rbatis :: executor :: Executor, table_column : & str, [INFO] [stdout] table_name : & str, column : & str, column_value : V,) -> std :: result :: [INFO] [stdout] Result < Vec < Todo >, rbatis :: rbdc :: Error > [INFO] [stdout] { [INFO] [stdout] let mut rb_arg_map = rbs :: value :: map :: ValueMap :: new() ; [INFO] [stdout] rb_arg_map.insert("table_column".to_string().into(), rbs :: [INFO] [stdout] to_value(table_column) ?) ; [INFO] [stdout] rb_arg_map.insert("table_name".to_string().into(), rbs :: [INFO] [stdout] to_value(table_name) ?) ; [INFO] [stdout] rb_arg_map.insert("column".to_string().into(), rbs :: to_value(column) ?) [INFO] [stdout] ; [INFO] [stdout] rb_arg_map.insert("column_value".to_string().into(), rbs :: [INFO] [stdout] to_value(column_value) ?) ; {} use rbatis :: executor :: { RBatisRef } ; [INFO] [stdout] let driver_type = executor.rb_ref().driver_type() ? ; use rbatis :: [INFO] [stdout] rbatis_codegen ; pub fn do_py_sql(arg : & rbs :: Value, _tag : char) -> [INFO] [stdout] (String, Vec < rbs :: Value >) [INFO] [stdout] { [INFO] [stdout] use rbatis_codegen :: ops :: * ; let mut sql = String :: [INFO] [stdout] with_capacity(80usize) ; let mut args = Vec :: with_capacity(20) ; [INFO] [stdout] args.push(rbs :: [INFO] [stdout] to_value({ & arg ["column_value"] }).unwrap_or_default()) ; [INFO] [stdout] sql.push_str("select ${table_column} from ${table_name} where ${column} = ?".replacen("${table_column}", [INFO] [stdout] & { & arg ["table_column"] }.as_sql(), [INFO] [stdout] 1).replacen("${table_name}", & { & arg ["table_name"] }.as_sql(), [INFO] [stdout] 1).replacen("${column}", & { & arg ["column"] }.as_sql(), 1).as_str()) [INFO] [stdout] ; return(sql, args) ; [INFO] [stdout] } let(mut sql, rb_args) = [INFO] [stdout] do_py_sql(& rbs :: Value :: Map(rb_arg_map), '?') ; use rbatis :: executor [INFO] [stdout] :: { Executor } ; let r = executor.query(& sql, rb_args).await ? ; rbatis [INFO] [stdout] :: decode :: decode(r) [INFO] [stdout] } [INFO] [stdout] ............gen macro py_sql end............ [INFO] [stdout] ............gen macro py_sql : [INFO] [stdout] pub async fn select_in_column < V : serde :: Serialize, > [INFO] [stdout] (executor : & dyn rbatis :: executor :: Executor, table_column : & str, [INFO] [stdout] table_name : & str, column : & str, column_values : & [V],) -> std :: result [INFO] [stdout] :: Result < Vec < Todo >, rbatis :: rbdc :: Error > [INFO] [stdout] { [INFO] [stdout] let mut rb_arg_map = rbs :: value :: map :: ValueMap :: new() ; [INFO] [stdout] rb_arg_map.insert("table_column".to_string().into(), rbs :: [INFO] [stdout] to_value(table_column) ?) ; [INFO] [stdout] rb_arg_map.insert("table_name".to_string().into(), rbs :: [INFO] [stdout] to_value(table_name) ?) ; [INFO] [stdout] rb_arg_map.insert("column".to_string().into(), rbs :: to_value(column) ?) [INFO] [stdout] ; [INFO] [stdout] rb_arg_map.insert("column_values".to_string().into(), rbs :: [INFO] [stdout] to_value(column_values) ?) ; {} use rbatis :: executor :: { RBatisRef } ; [INFO] [stdout] let driver_type = executor.rb_ref().driver_type() ? ; use rbatis :: [INFO] [stdout] rbatis_codegen ; pub fn do_py_sql(arg : & rbs :: Value, _tag : char) -> [INFO] [stdout] (String, Vec < rbs :: Value >) [INFO] [stdout] { [INFO] [stdout] use rbatis_codegen :: ops :: * ; let mut sql = String :: [INFO] [stdout] with_capacity(80usize) ; let mut args = Vec :: with_capacity(20) ; [INFO] [stdout] sql.push_str("select ${table_column} from ${table_name} where ${column} in (".replacen("${table_column}", [INFO] [stdout] & { & arg ["table_column"] }.as_sql(), [INFO] [stdout] 1).replacen("${table_name}", & { & arg ["table_name"] }.as_sql(), [INFO] [stdout] 1).replacen("${column}", & { & arg ["column"] }.as_sql(), 1).as_str()) [INFO] [stdout] ; [INFO] [stdout] sql.push_str(& [INFO] [stdout] { [INFO] [stdout] let mut sql = String :: with_capacity(10usize) ; for(_, item) in [INFO] [stdout] { & arg ["column_values"] } [INFO] [stdout] { [INFO] [stdout] args.push(rbs :: to_value({ item }).unwrap_or_default()) ; [INFO] [stdout] sql.push_str("?,") ; [INFO] [stdout] } sql = [INFO] [stdout] sql.trim_start_matches(",").trim_end_matches(",").to_string() ; [INFO] [stdout] sql [INFO] [stdout] }) ; sql.push_str(")") ; return(sql, args) ; [INFO] [stdout] } let(mut sql, rb_args) = [INFO] [stdout] do_py_sql(& rbs :: Value :: Map(rb_arg_map), '?') ; use rbatis :: executor [INFO] [stdout] :: { Executor } ; let r = executor.query(& sql, rb_args).await ? ; rbatis [INFO] [stdout] :: decode :: decode(r) [INFO] [stdout] } [INFO] [stdout] ............gen macro py_sql end............ [INFO] [stdout] ............gen macro py_sql : [INFO] [stdout] pub async fn [INFO] [stdout] update_by_column_value(executor : & dyn rbatis :: executor :: Executor, [INFO] [stdout] table_name : String, table : & rbs :: Value, column : & str, column_value : [INFO] [stdout] & rbs :: Value,) -> std :: result :: Result < rbatis :: rbdc :: db :: [INFO] [stdout] ExecResult, rbatis :: rbdc :: Error > [INFO] [stdout] { [INFO] [stdout] let mut rb_arg_map = rbs :: value :: map :: ValueMap :: new() ; [INFO] [stdout] rb_arg_map.insert("table_name".to_string().into(), rbs :: [INFO] [stdout] to_value(table_name) ?) ; [INFO] [stdout] rb_arg_map.insert("table".to_string().into(), rbs :: to_value(table) ?) ; [INFO] [stdout] rb_arg_map.insert("column".to_string().into(), rbs :: to_value(column) ?) [INFO] [stdout] ; [INFO] [stdout] rb_arg_map.insert("column_value".to_string().into(), rbs :: [INFO] [stdout] to_value(column_value) ?) ; {} use rbatis :: executor :: { RBatisRef } ; [INFO] [stdout] let driver_type = executor.rb_ref().driver_type() ? ; use rbatis :: [INFO] [stdout] rbatis_codegen ; pub fn do_py_sql(arg : & rbs :: Value, _tag : char) -> [INFO] [stdout] (String, Vec < rbs :: Value >) [INFO] [stdout] { [INFO] [stdout] use rbatis_codegen :: ops :: * ; let mut sql = String :: [INFO] [stdout] with_capacity(77usize) ; let mut args = Vec :: with_capacity(20) ; [INFO] [stdout] sql.push_str("update ${table_name} set ".replacen("${table_name}", & [INFO] [stdout] { & arg ["table_name"] }.as_sql(), 1).as_str()) ; [INFO] [stdout] sql.push_str(& [INFO] [stdout] { [INFO] [stdout] let mut sql = String :: with_capacity(12usize) ; for(k, v) in [INFO] [stdout] { & arg ["table"] } [INFO] [stdout] { [INFO] [stdout] if [INFO] [stdout] { [INFO] [stdout] bool :: op_from((k).op_eq(& & arg ["column"])) || bool :: [INFO] [stdout] op_from((v).op_eq(& rbs :: Value :: Null)) [INFO] [stdout] }.to_owned().into() { continue } [INFO] [stdout] args.push(rbs :: to_value({ v }).unwrap_or_default()) ; [INFO] [stdout] sql.push_str("${k}=?,".replacen("${k}", & { k }.as_sql(), [INFO] [stdout] 1).as_str()) ; [INFO] [stdout] } sql = [INFO] [stdout] sql.trim_start_matches(",").trim_end_matches(",").to_string() ; [INFO] [stdout] sql [INFO] [stdout] }) ; [INFO] [stdout] args.push(rbs :: [INFO] [stdout] to_value({ & arg ["column_value"] }).unwrap_or_default()) ; [INFO] [stdout] sql.push_str(" where ${column} = ?".replacen("${column}", & [INFO] [stdout] { & arg ["column"] }.as_sql(), 1).as_str()) ; return(sql, args) ; [INFO] [stdout] } let(mut sql, rb_args) = [INFO] [stdout] do_py_sql(& rbs :: Value :: Map(rb_arg_map), '?') ; use rbatis :: executor [INFO] [stdout] :: { Executor } ; executor.exec(& sql, rb_args).await [INFO] [stdout] } [INFO] [stdout] ............gen macro py_sql end............ [INFO] [stdout] ............gen macro py_sql : [INFO] [stdout] pub async fn delete_by_column < V : serde :: Serialize, > [INFO] [stdout] (executor : & dyn rbatis :: executor :: Executor, table_name : String, column [INFO] [stdout] : & str, column_value : V,) -> std :: result :: Result < rbatis :: rbdc :: db [INFO] [stdout] :: ExecResult, rbatis :: rbdc :: Error > [INFO] [stdout] { [INFO] [stdout] let mut rb_arg_map = rbs :: value :: map :: ValueMap :: new() ; [INFO] [stdout] rb_arg_map.insert("table_name".to_string().into(), rbs :: [INFO] [stdout] to_value(table_name) ?) ; [INFO] [stdout] rb_arg_map.insert("column".to_string().into(), rbs :: to_value(column) ?) [INFO] [stdout] ; [INFO] [stdout] rb_arg_map.insert("column_value".to_string().into(), rbs :: [INFO] [stdout] to_value(column_value) ?) ; {} use rbatis :: executor :: { RBatisRef } ; [INFO] [stdout] let driver_type = executor.rb_ref().driver_type() ? ; use rbatis :: [INFO] [stdout] rbatis_codegen ; pub fn do_py_sql(arg : & rbs :: Value, _tag : char) -> [INFO] [stdout] (String, Vec < rbs :: Value >) [INFO] [stdout] { [INFO] [stdout] use rbatis_codegen :: ops :: * ; let mut sql = String :: [INFO] [stdout] with_capacity(63usize) ; let mut args = Vec :: with_capacity(20) ; [INFO] [stdout] args.push(rbs :: [INFO] [stdout] to_value({ & arg ["column_value"] }).unwrap_or_default()) ; [INFO] [stdout] sql.push_str("delete from ${table_name} where ${column} = ?".replacen("${table_name}", [INFO] [stdout] & { & arg ["table_name"] }.as_sql(), [INFO] [stdout] 1).replacen("${column}", & { & arg ["column"] }.as_sql(), 1).as_str()) [INFO] [stdout] ; return(sql, args) ; [INFO] [stdout] } let(mut sql, rb_args) = [INFO] [stdout] do_py_sql(& rbs :: Value :: Map(rb_arg_map), '?') ; use rbatis :: executor [INFO] [stdout] :: { Executor } ; executor.exec(& sql, rb_args).await [INFO] [stdout] } [INFO] [stdout] ............gen macro py_sql end............ [INFO] [stdout] ............gen macro py_sql : [INFO] [stdout] pub async fn delete_in_column < V : serde :: Serialize, > [INFO] [stdout] (executor : & dyn rbatis :: executor :: Executor, table_name : String, column [INFO] [stdout] : & str, column_values : & [V],) -> std :: result :: Result < rbatis :: rbdc [INFO] [stdout] :: db :: ExecResult, rbatis :: rbdc :: Error > [INFO] [stdout] { [INFO] [stdout] let mut rb_arg_map = rbs :: value :: map :: ValueMap :: new() ; [INFO] [stdout] rb_arg_map.insert("table_name".to_string().into(), rbs :: [INFO] [stdout] to_value(table_name) ?) ; [INFO] [stdout] rb_arg_map.insert("column".to_string().into(), rbs :: to_value(column) ?) [INFO] [stdout] ; [INFO] [stdout] rb_arg_map.insert("column_values".to_string().into(), rbs :: [INFO] [stdout] to_value(column_values) ?) ; {} use rbatis :: executor :: { RBatisRef } ; [INFO] [stdout] let driver_type = executor.rb_ref().driver_type() ? ; use rbatis :: [INFO] [stdout] rbatis_codegen ; pub fn do_py_sql(arg : & rbs :: Value, _tag : char) -> [INFO] [stdout] (String, Vec < rbs :: Value >) [INFO] [stdout] { [INFO] [stdout] use rbatis_codegen :: ops :: * ; let mut sql = String :: [INFO] [stdout] with_capacity(63usize) ; let mut args = Vec :: with_capacity(20) ; [INFO] [stdout] sql.push_str("delete from ${table_name} where ${column} in (".replacen("${table_name}", [INFO] [stdout] & { & arg ["table_name"] }.as_sql(), [INFO] [stdout] 1).replacen("${column}", & { & arg ["column"] }.as_sql(), 1).as_str()) [INFO] [stdout] ; [INFO] [stdout] sql.push_str(& [INFO] [stdout] { [INFO] [stdout] let mut sql = String :: with_capacity(10usize) ; for(_, item) in [INFO] [stdout] { & arg ["column_values"] } [INFO] [stdout] { [INFO] [stdout] args.push(rbs :: to_value({ item }).unwrap_or_default()) ; [INFO] [stdout] sql.push_str("?,") ; [INFO] [stdout] } sql = [INFO] [stdout] sql.trim_start_matches(",").trim_end_matches(",").to_string() ; [INFO] [stdout] sql [INFO] [stdout] }) ; sql.push_str(")") ; return(sql, args) ; [INFO] [stdout] } let(mut sql, rb_args) = [INFO] [stdout] do_py_sql(& rbs :: Value :: Map(rb_arg_map), '?') ; use rbatis :: executor [INFO] [stdout] :: { Executor } ; executor.exec(& sql, rb_args).await [INFO] [stdout] } [INFO] [stdout] ............gen macro py_sql end............ [INFO] [stdout] ............gen macro py_sql : [INFO] [stdout] pub async fn [INFO] [stdout] select_by_id(executor : & dyn rbatis :: executor :: Executor, table_column : & [INFO] [stdout] str, table_name : & str, id : u64,) -> std :: result :: Result < Option < Todo [INFO] [stdout] >, rbatis :: rbdc :: Error > [INFO] [stdout] { [INFO] [stdout] let mut rb_arg_map = rbs :: value :: map :: ValueMap :: new() ; [INFO] [stdout] rb_arg_map.insert("table_column".to_string().into(), rbs :: [INFO] [stdout] to_value(table_column) ?) ; [INFO] [stdout] rb_arg_map.insert("table_name".to_string().into(), rbs :: [INFO] [stdout] to_value(table_name) ?) ; [INFO] [stdout] rb_arg_map.insert("id".to_string().into(), rbs :: to_value(id) ?) ; {} use [INFO] [stdout] rbatis :: executor :: { RBatisRef } ; let driver_type = [INFO] [stdout] executor.rb_ref().driver_type() ? ; use rbatis :: rbatis_codegen ; pub fn [INFO] [stdout] do_py_sql(arg : & rbs :: Value, _tag : char) -> [INFO] [stdout] (String, Vec < rbs :: Value >) [INFO] [stdout] { [INFO] [stdout] use rbatis_codegen :: ops :: * ; let mut sql = String :: [INFO] [stdout] with_capacity(70usize) ; let mut args = Vec :: with_capacity(20) ; [INFO] [stdout] args.push(rbs :: to_value({ & arg ["id"] }).unwrap_or_default()) ; [INFO] [stdout] sql.push_str("select ${table_column} from ${table_name} where id = ? limit 1".replacen("${table_column}", [INFO] [stdout] & { & arg ["table_column"] }.as_sql(), [INFO] [stdout] 1).replacen("${table_name}", & { & arg ["table_name"] }.as_sql(), [INFO] [stdout] 1).as_str()) ; return(sql, args) ; [INFO] [stdout] } let(mut sql, rb_args) = [INFO] [stdout] do_py_sql(& rbs :: Value :: Map(rb_arg_map), '?') ; use rbatis :: executor [INFO] [stdout] :: { Executor } ; let r = executor.query(& sql, rb_args).await ? ; rbatis [INFO] [stdout] :: decode :: decode(r) [INFO] [stdout] } [INFO] [stdout] ............gen macro py_sql end............ [INFO] [stdout] ............gen macro html_sql : [INFO] [stdout] pub async fn [INFO] [stdout] select_page_data(executor : & dyn rbatis :: executor :: Executor, do_count : [INFO] [stdout] bool, page_no : u64, page_size : u64,) -> std :: result :: Result < rbs :: [INFO] [stdout] Value, rbatis :: rbdc :: Error > [INFO] [stdout] { [INFO] [stdout] let _ = include_bytes! ("/opt/rustwide/workdir/mybatis_sql/todo.html") ; [INFO] [stdout] let mut rb_arg_map = rbs :: value :: map :: ValueMap :: new() ; [INFO] [stdout] rb_arg_map.insert("do_count".to_string().into(), rbs :: to_value(do_count) [INFO] [stdout] ?) ; [INFO] [stdout] rb_arg_map.insert("page_no".to_string().into(), rbs :: to_value(page_no) [INFO] [stdout] ?) ; [INFO] [stdout] rb_arg_map.insert("page_size".to_string().into(), rbs :: [INFO] [stdout] to_value(page_size) ?) ; {} use rbatis :: executor :: { RBatisRef } ; let [INFO] [stdout] driver_type = executor.rb_ref().driver_type() ? ; use rbatis :: [INFO] [stdout] rbatis_codegen ; pub fn impl_html_sql(arg : & rbs :: Value, _tag : char) [INFO] [stdout] -> (String, Vec < rbs :: Value >) [INFO] [stdout] { [INFO] [stdout] use rbatis_codegen :: ops :: * ; let mut sql = String :: [INFO] [stdout] with_capacity(80usize) ; let mut args = Vec :: with_capacity(20) ; if [INFO] [stdout] { (& arg ["do_count"]).op_eq(& true) }.to_owned().into() [INFO] [stdout] { sql.push_str("select count(1) from todo") ; } if [INFO] [stdout] { (& arg ["do_count"]).op_eq(& false) }.to_owned().into() [INFO] [stdout] { [INFO] [stdout] sql.push_str("select * FROM todo LIMIT ${page_size} OFFSET ${page_no}".replacen("${page_size}", [INFO] [stdout] & { & arg ["page_size"] }.as_sql(), [INFO] [stdout] 1).replacen("${page_no}", & { & arg ["page_no"] }.as_sql(), [INFO] [stdout] 1).as_str()) ; [INFO] [stdout] } return(sql, args) ; [INFO] [stdout] } let(mut sql, rb_args) = [INFO] [stdout] impl_html_sql(& rbs :: Value :: Map(rb_arg_map), '?') ; use rbatis :: [INFO] [stdout] executor :: { Executor } ; let r = executor.query(& sql, rb_args).await ? [INFO] [stdout] ; rbatis :: decode :: decode(r) [INFO] [stdout] } [INFO] [stdout] ............gen macro html_sql end............ [INFO] [stdout] ............gen macro html_sql : [INFO] [stdout] pub async fn get_next_id(rb : & mut dyn Executor) -> rbatis :: Result < u64 > [INFO] [stdout] { [INFO] [stdout] let mut rb_arg_map = rbs :: value :: map :: ValueMap :: new() ; {} use [INFO] [stdout] rbatis :: executor :: { RBatisRef } ; let driver_type = [INFO] [stdout] rb.rb_ref().driver_type() ? ; use rbatis :: rbatis_codegen ; pub fn [INFO] [stdout] impl_html_sql(arg : & rbs :: Value, _tag : char) -> [INFO] [stdout] (String, Vec < rbs :: Value >) [INFO] [stdout] { [INFO] [stdout] use rbatis_codegen :: ops :: * ; let mut sql = String :: [INFO] [stdout] with_capacity(28usize) ; let mut args = Vec :: with_capacity(20) ; [INFO] [stdout] sql.push_str("SELECT nextval('todo_seq')") ; return(sql, args) ; [INFO] [stdout] } let(mut sql, rb_args) = [INFO] [stdout] impl_html_sql(& rbs :: Value :: Map(rb_arg_map), '?') ; use rbatis :: [INFO] [stdout] executor :: { Executor } ; let r = rb.query(& sql, rb_args).await ? ; [INFO] [stdout] rbatis :: decode :: decode(r) [INFO] [stdout] } [INFO] [stdout] ............gen macro html_sql end............ [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 57.01s [INFO] running `Command { std: "docker" "inspect" "b59f712e5b415996ab9b5586c7e6e1417e24e2ebd08fa1fb200f334249fa6033", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b59f712e5b415996ab9b5586c7e6e1417e24e2ebd08fa1fb200f334249fa6033", kill_on_drop: false }` [INFO] [stdout] b59f712e5b415996ab9b5586c7e6e1417e24e2ebd08fa1fb200f334249fa6033 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+ff2c56344c764af598ad33027e9c7a48881808ef" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e22feafb8c6b897669a10af595c2fc4c851517a62b80731f7fe4b6618047b5a8 [INFO] running `Command { std: "docker" "start" "-a" "e22feafb8c6b897669a10af595c2fc4c851517a62b80731f7fe4b6618047b5a8", kill_on_drop: false }` [INFO] [stderr] Compiling todo_ws_actix v1.0.0 (/opt/rustwide/workdir) [INFO] [stdout] ............gen macro py_sql : [INFO] [stdout] pub async fn [INFO] [stdout] insert_batch(executor : & dyn rbatis :: executor :: Executor, tables : & [INFO] [stdout] [Todo], table_name : & str,) -> std :: result :: Result < rbatis :: rbdc :: db [INFO] [stdout] :: ExecResult, rbatis :: rbdc :: Error > [INFO] [stdout] { [INFO] [stdout] let mut rb_arg_map = rbs :: value :: map :: ValueMap :: new() ; [INFO] [stdout] rb_arg_map.insert("tables".to_string().into(), rbs :: to_value(tables) ?) [INFO] [stdout] ; [INFO] [stdout] rb_arg_map.insert("table_name".to_string().into(), rbs :: [INFO] [stdout] to_value(table_name) ?) ; {} use rbatis :: executor :: { RBatisRef } ; let [INFO] [stdout] driver_type = executor.rb_ref().driver_type() ? ; use rbatis :: [INFO] [stdout] rbatis_codegen ; pub fn do_py_sql(arg : & rbs :: Value, _tag : char) -> [INFO] [stdout] (String, Vec < rbs :: Value >) [INFO] [stdout] { [INFO] [stdout] use rbatis_codegen :: ops :: * ; let mut sql = String :: [INFO] [stdout] with_capacity(65usize) ; let mut args = Vec :: with_capacity(20) ; [INFO] [stdout] sql.push_str("insert into ${table_name} ".replacen("${table_name}", & [INFO] [stdout] { & arg ["table_name"] }.as_sql(), 1).as_str()) ; [INFO] [stdout] sql.push_str(& [INFO] [stdout] { [INFO] [stdout] let mut sql = String :: with_capacity(35usize) ; for(idx, table) [INFO] [stdout] in { & arg ["tables"] } [INFO] [stdout] { [INFO] [stdout] if { (idx).op_eq(& 0i64) }.to_owned().into() [INFO] [stdout] { [INFO] [stdout] sql.push_str("(") ; [INFO] [stdout] sql.push_str(& [INFO] [stdout] { [INFO] [stdout] let mut sql = String :: with_capacity(7usize) ; for(k, v) in [INFO] [stdout] { table } [INFO] [stdout] { [INFO] [stdout] if [INFO] [stdout] { [INFO] [stdout] bool :: op_from((k).op_eq(& "id")) && bool :: [INFO] [stdout] op_from((v).op_eq(& rbs :: Value :: Null)) [INFO] [stdout] }.to_owned().into() { continue } [INFO] [stdout] sql.push_str("${k},".replacen("${k}", & { k }.as_sql(), [INFO] [stdout] 1).as_str()) ; [INFO] [stdout] } sql = [INFO] [stdout] sql.trim_start_matches(",").trim_end_matches(",").to_string() [INFO] [stdout] ; sql [INFO] [stdout] }) ; sql.push_str(") VALUES ") ; [INFO] [stdout] } sql.push_str("(") ; [INFO] [stdout] sql.push_str(& [INFO] [stdout] { [INFO] [stdout] let mut sql = String :: with_capacity(7usize) ; for(k, v) in [INFO] [stdout] { table } [INFO] [stdout] { [INFO] [stdout] if [INFO] [stdout] { [INFO] [stdout] bool :: op_from((k).op_eq(& "id")) && bool :: [INFO] [stdout] op_from((v).op_eq(& rbs :: Value :: Null)) [INFO] [stdout] }.to_owned().into() { continue } [INFO] [stdout] args.push(rbs :: to_value({ v }).unwrap_or_default()) ; [INFO] [stdout] sql.push_str("?,") ; [INFO] [stdout] } sql = [INFO] [stdout] sql.trim_start_matches(",").trim_end_matches(",").to_string() [INFO] [stdout] ; sql [INFO] [stdout] }) ; sql.push_str("),") ; [INFO] [stdout] } sql = [INFO] [stdout] sql.trim_start_matches(",").trim_end_matches(",").to_string() ; [INFO] [stdout] sql [INFO] [stdout] }) ; return(sql, args) ; [INFO] [stdout] } let(mut sql, rb_args) = [INFO] [stdout] do_py_sql(& rbs :: Value :: Map(rb_arg_map), '?') ; use rbatis :: executor [INFO] [stdout] :: { Executor } ; executor.exec(& sql, rb_args).await [INFO] [stdout] } [INFO] [stdout] ............gen macro py_sql end............ [INFO] [stdout] ............gen macro py_sql : [INFO] [stdout] pub async fn [INFO] [stdout] select_all(executor : & dyn rbatis :: executor :: Executor, table_column : & [INFO] [stdout] str, table_name : & str,) -> std :: result :: Result < Vec < Todo >, rbatis :: [INFO] [stdout] rbdc :: Error > [INFO] [stdout] { [INFO] [stdout] let mut rb_arg_map = rbs :: value :: map :: ValueMap :: new() ; [INFO] [stdout] rb_arg_map.insert("table_column".to_string().into(), rbs :: [INFO] [stdout] to_value(table_column) ?) ; [INFO] [stdout] rb_arg_map.insert("table_name".to_string().into(), rbs :: [INFO] [stdout] to_value(table_name) ?) ; {} use rbatis :: executor :: { RBatisRef } ; let [INFO] [stdout] driver_type = executor.rb_ref().driver_type() ? ; use rbatis :: [INFO] [stdout] rbatis_codegen ; pub fn do_py_sql(arg : & rbs :: Value, _tag : char) -> [INFO] [stdout] (String, Vec < rbs :: Value >) [INFO] [stdout] { [INFO] [stdout] use rbatis_codegen :: ops :: * ; let mut sql = String :: [INFO] [stdout] with_capacity(44usize) ; let mut args = Vec :: with_capacity(20) ; [INFO] [stdout] sql.push_str("select ${table_column} from ${table_name} ".replacen("${table_column}", [INFO] [stdout] & { & arg ["table_column"] }.as_sql(), [INFO] [stdout] 1).replacen("${table_name}", & { & arg ["table_name"] }.as_sql(), [INFO] [stdout] 1).as_str()) ; return(sql, args) ; [INFO] [stdout] } let(mut sql, rb_args) = [INFO] [stdout] do_py_sql(& rbs :: Value :: Map(rb_arg_map), '?') ; use rbatis :: executor [INFO] [stdout] :: { Executor } ; let r = executor.query(& sql, rb_args).await ? ; rbatis [INFO] [stdout] :: decode :: decode(r) [INFO] [stdout] } [INFO] [stdout] ............gen macro py_sql end............ [INFO] [stdout] ............gen macro py_sql : [INFO] [stdout] pub async fn select_by_column < V : serde :: Serialize, > [INFO] [stdout] (executor : & dyn rbatis :: executor :: Executor, table_column : & str, [INFO] [stdout] table_name : & str, column : & str, column_value : V,) -> std :: result :: [INFO] [stdout] Result < Vec < Todo >, rbatis :: rbdc :: Error > [INFO] [stdout] { [INFO] [stdout] let mut rb_arg_map = rbs :: value :: map :: ValueMap :: new() ; [INFO] [stdout] rb_arg_map.insert("table_column".to_string().into(), rbs :: [INFO] [stdout] to_value(table_column) ?) ; [INFO] [stdout] rb_arg_map.insert("table_name".to_string().into(), rbs :: [INFO] [stdout] to_value(table_name) ?) ; [INFO] [stdout] rb_arg_map.insert("column".to_string().into(), rbs :: to_value(column) ?) [INFO] [stdout] ; [INFO] [stdout] rb_arg_map.insert("column_value".to_string().into(), rbs :: [INFO] [stdout] to_value(column_value) ?) ; {} use rbatis :: executor :: { RBatisRef } ; [INFO] [stdout] let driver_type = executor.rb_ref().driver_type() ? ; use rbatis :: [INFO] [stdout] rbatis_codegen ; pub fn do_py_sql(arg : & rbs :: Value, _tag : char) -> [INFO] [stdout] (String, Vec < rbs :: Value >) [INFO] [stdout] { [INFO] [stdout] use rbatis_codegen :: ops :: * ; let mut sql = String :: [INFO] [stdout] with_capacity(80usize) ; let mut args = Vec :: with_capacity(20) ; [INFO] [stdout] args.push(rbs :: [INFO] [stdout] to_value({ & arg ["column_value"] }).unwrap_or_default()) ; [INFO] [stdout] sql.push_str("select ${table_column} from ${table_name} where ${column} = ?".replacen("${table_column}", [INFO] [stdout] & { & arg ["table_column"] }.as_sql(), [INFO] [stdout] 1).replacen("${table_name}", & { & arg ["table_name"] }.as_sql(), [INFO] [stdout] 1).replacen("${column}", & { & arg ["column"] }.as_sql(), 1).as_str()) [INFO] [stdout] ; return(sql, args) ; [INFO] [stdout] } let(mut sql, rb_args) = [INFO] [stdout] do_py_sql(& rbs :: Value :: Map(rb_arg_map), '?') ; use rbatis :: executor [INFO] [stdout] :: { Executor } ; let r = executor.query(& sql, rb_args).await ? ; rbatis [INFO] [stdout] :: decode :: decode(r) [INFO] [stdout] } [INFO] [stdout] ............gen macro py_sql end............ [INFO] [stdout] ............gen macro py_sql : [INFO] [stdout] pub async fn select_in_column < V : serde :: Serialize, > [INFO] [stdout] (executor : & dyn rbatis :: executor :: Executor, table_column : & str, [INFO] [stdout] table_name : & str, column : & str, column_values : & [V],) -> std :: result [INFO] [stdout] :: Result < Vec < Todo >, rbatis :: rbdc :: Error > [INFO] [stdout] { [INFO] [stdout] let mut rb_arg_map = rbs :: value :: map :: ValueMap :: new() ; [INFO] [stdout] rb_arg_map.insert("table_column".to_string().into(), rbs :: [INFO] [stdout] to_value(table_column) ?) ; [INFO] [stdout] rb_arg_map.insert("table_name".to_string().into(), rbs :: [INFO] [stdout] to_value(table_name) ?) ; [INFO] [stdout] rb_arg_map.insert("column".to_string().into(), rbs :: to_value(column) ?) [INFO] [stdout] ; [INFO] [stdout] rb_arg_map.insert("column_values".to_string().into(), rbs :: [INFO] [stdout] to_value(column_values) ?) ; {} use rbatis :: executor :: { RBatisRef } ; [INFO] [stdout] let driver_type = executor.rb_ref().driver_type() ? ; use rbatis :: [INFO] [stdout] rbatis_codegen ; pub fn do_py_sql(arg : & rbs :: Value, _tag : char) -> [INFO] [stdout] (String, Vec < rbs :: Value >) [INFO] [stdout] { [INFO] [stdout] use rbatis_codegen :: ops :: * ; let mut sql = String :: [INFO] [stdout] with_capacity(80usize) ; let mut args = Vec :: with_capacity(20) ; [INFO] [stdout] sql.push_str("select ${table_column} from ${table_name} where ${column} in (".replacen("${table_column}", [INFO] [stdout] & { & arg ["table_column"] }.as_sql(), [INFO] [stdout] 1).replacen("${table_name}", & { & arg ["table_name"] }.as_sql(), [INFO] [stdout] 1).replacen("${column}", & { & arg ["column"] }.as_sql(), 1).as_str()) [INFO] [stdout] ; [INFO] [stdout] sql.push_str(& [INFO] [stdout] { [INFO] [stdout] let mut sql = String :: with_capacity(10usize) ; for(_, item) in [INFO] [stdout] { & arg ["column_values"] } [INFO] [stdout] { [INFO] [stdout] args.push(rbs :: to_value({ item }).unwrap_or_default()) ; [INFO] [stdout] sql.push_str("?,") ; [INFO] [stdout] } sql = [INFO] [stdout] sql.trim_start_matches(",").trim_end_matches(",").to_string() ; [INFO] [stdout] sql [INFO] [stdout] }) ; sql.push_str(")") ; return(sql, args) ; [INFO] [stdout] } let(mut sql, rb_args) = [INFO] [stdout] do_py_sql(& rbs :: Value :: Map(rb_arg_map), '?') ; use rbatis :: executor [INFO] [stdout] :: { Executor } ; let r = executor.query(& sql, rb_args).await ? ; rbatis [INFO] [stdout] :: decode :: decode(r) [INFO] [stdout] } [INFO] [stdout] ............gen macro py_sql end............ [INFO] [stdout] ............gen macro py_sql : [INFO] [stdout] pub async fn [INFO] [stdout] update_by_column_value(executor : & dyn rbatis :: executor :: Executor, [INFO] [stdout] table_name : String, table : & rbs :: Value, column : & str, column_value : [INFO] [stdout] & rbs :: Value,) -> std :: result :: Result < rbatis :: rbdc :: db :: [INFO] [stdout] ExecResult, rbatis :: rbdc :: Error > [INFO] [stdout] { [INFO] [stdout] let mut rb_arg_map = rbs :: value :: map :: ValueMap :: new() ; [INFO] [stdout] rb_arg_map.insert("table_name".to_string().into(), rbs :: [INFO] [stdout] to_value(table_name) ?) ; [INFO] [stdout] rb_arg_map.insert("table".to_string().into(), rbs :: to_value(table) ?) ; [INFO] [stdout] rb_arg_map.insert("column".to_string().into(), rbs :: to_value(column) ?) [INFO] [stdout] ; [INFO] [stdout] rb_arg_map.insert("column_value".to_string().into(), rbs :: [INFO] [stdout] to_value(column_value) ?) ; {} use rbatis :: executor :: { RBatisRef } ; [INFO] [stdout] let driver_type = executor.rb_ref().driver_type() ? ; use rbatis :: [INFO] [stdout] rbatis_codegen ; pub fn do_py_sql(arg : & rbs :: Value, _tag : char) -> [INFO] [stdout] (String, Vec < rbs :: Value >) [INFO] [stdout] { [INFO] [stdout] use rbatis_codegen :: ops :: * ; let mut sql = String :: [INFO] [stdout] with_capacity(77usize) ; let mut args = Vec :: with_capacity(20) ; [INFO] [stdout] sql.push_str("update ${table_name} set ".replacen("${table_name}", & [INFO] [stdout] { & arg ["table_name"] }.as_sql(), 1).as_str()) ; [INFO] [stdout] sql.push_str(& [INFO] [stdout] { [INFO] [stdout] let mut sql = String :: with_capacity(12usize) ; for(k, v) in [INFO] [stdout] { & arg ["table"] } [INFO] [stdout] { [INFO] [stdout] if [INFO] [stdout] { [INFO] [stdout] bool :: op_from((k).op_eq(& & arg ["column"])) || bool :: [INFO] [stdout] op_from((v).op_eq(& rbs :: Value :: Null)) [INFO] [stdout] }.to_owned().into() { continue } [INFO] [stdout] args.push(rbs :: to_value({ v }).unwrap_or_default()) ; [INFO] [stdout] sql.push_str("${k}=?,".replacen("${k}", & { k }.as_sql(), [INFO] [stdout] 1).as_str()) ; [INFO] [stdout] } sql = [INFO] [stdout] sql.trim_start_matches(",").trim_end_matches(",").to_string() ; [INFO] [stdout] sql [INFO] [stdout] }) ; [INFO] [stdout] args.push(rbs :: [INFO] [stdout] to_value({ & arg ["column_value"] }).unwrap_or_default()) ; [INFO] [stdout] sql.push_str(" where ${column} = ?".replacen("${column}", & [INFO] [stdout] { & arg ["column"] }.as_sql(), 1).as_str()) ; return(sql, args) ; [INFO] [stdout] } let(mut sql, rb_args) = [INFO] [stdout] do_py_sql(& rbs :: Value :: Map(rb_arg_map), '?') ; use rbatis :: executor [INFO] [stdout] :: { Executor } ; executor.exec(& sql, rb_args).await [INFO] [stdout] } [INFO] [stdout] ............gen macro py_sql end............ [INFO] [stdout] ............gen macro py_sql : [INFO] [stdout] pub async fn delete_by_column < V : serde :: Serialize, > [INFO] [stdout] (executor : & dyn rbatis :: executor :: Executor, table_name : String, column [INFO] [stdout] : & str, column_value : V,) -> std :: result :: Result < rbatis :: rbdc :: db [INFO] [stdout] :: ExecResult, rbatis :: rbdc :: Error > [INFO] [stdout] { [INFO] [stdout] let mut rb_arg_map = rbs :: value :: map :: ValueMap :: new() ; [INFO] [stdout] rb_arg_map.insert("table_name".to_string().into(), rbs :: [INFO] [stdout] to_value(table_name) ?) ; [INFO] [stdout] rb_arg_map.insert("column".to_string().into(), rbs :: to_value(column) ?) [INFO] [stdout] ; [INFO] [stdout] rb_arg_map.insert("column_value".to_string().into(), rbs :: [INFO] [stdout] to_value(column_value) ?) ; {} use rbatis :: executor :: { RBatisRef } ; [INFO] [stdout] let driver_type = executor.rb_ref().driver_type() ? ; use rbatis :: [INFO] [stdout] rbatis_codegen ; pub fn do_py_sql(arg : & rbs :: Value, _tag : char) -> [INFO] [stdout] (String, Vec < rbs :: Value >) [INFO] [stdout] { [INFO] [stdout] use rbatis_codegen :: ops :: * ; let mut sql = String :: [INFO] [stdout] with_capacity(63usize) ; let mut args = Vec :: with_capacity(20) ; [INFO] [stdout] args.push(rbs :: [INFO] [stdout] to_value({ & arg ["column_value"] }).unwrap_or_default()) ; [INFO] [stdout] sql.push_str("delete from ${table_name} where ${column} = ?".replacen("${table_name}", [INFO] [stdout] & { & arg ["table_name"] }.as_sql(), [INFO] [stdout] 1).replacen("${column}", & { & arg ["column"] }.as_sql(), 1).as_str()) [INFO] [stdout] ; return(sql, args) ; [INFO] [stdout] } let(mut sql, rb_args) = [INFO] [stdout] do_py_sql(& rbs :: Value :: Map(rb_arg_map), '?') ; use rbatis :: executor [INFO] [stdout] :: { Executor } ; executor.exec(& sql, rb_args).await [INFO] [stdout] } [INFO] [stdout] ............gen macro py_sql end............ [INFO] [stdout] ............gen macro py_sql : [INFO] [stdout] pub async fn delete_in_column < V : serde :: Serialize, > [INFO] [stdout] (executor : & dyn rbatis :: executor :: Executor, table_name : String, column [INFO] [stdout] : & str, column_values : & [V],) -> std :: result :: Result < rbatis :: rbdc [INFO] [stdout] :: db :: ExecResult, rbatis :: rbdc :: Error > [INFO] [stdout] { [INFO] [stdout] let mut rb_arg_map = rbs :: value :: map :: ValueMap :: new() ; [INFO] [stdout] rb_arg_map.insert("table_name".to_string().into(), rbs :: [INFO] [stdout] to_value(table_name) ?) ; [INFO] [stdout] rb_arg_map.insert("column".to_string().into(), rbs :: to_value(column) ?) [INFO] [stdout] ; [INFO] [stdout] rb_arg_map.insert("column_values".to_string().into(), rbs :: [INFO] [stdout] to_value(column_values) ?) ; {} use rbatis :: executor :: { RBatisRef } ; [INFO] [stdout] let driver_type = executor.rb_ref().driver_type() ? ; use rbatis :: [INFO] [stdout] rbatis_codegen ; pub fn do_py_sql(arg : & rbs :: Value, _tag : char) -> [INFO] [stdout] (String, Vec < rbs :: Value >) [INFO] [stdout] { [INFO] [stdout] use rbatis_codegen :: ops :: * ; let mut sql = String :: [INFO] [stdout] with_capacity(63usize) ; let mut args = Vec :: with_capacity(20) ; [INFO] [stdout] sql.push_str("delete from ${table_name} where ${column} in (".replacen("${table_name}", [INFO] [stdout] & { & arg ["table_name"] }.as_sql(), [INFO] [stdout] 1).replacen("${column}", & { & arg ["column"] }.as_sql(), 1).as_str()) [INFO] [stdout] ; [INFO] [stdout] sql.push_str(& [INFO] [stdout] { [INFO] [stdout] let mut sql = String :: with_capacity(10usize) ; for(_, item) in [INFO] [stdout] { & arg ["column_values"] } [INFO] [stdout] { [INFO] [stdout] args.push(rbs :: to_value({ item }).unwrap_or_default()) ; [INFO] [stdout] sql.push_str("?,") ; [INFO] [stdout] } sql = [INFO] [stdout] sql.trim_start_matches(",").trim_end_matches(",").to_string() ; [INFO] [stdout] sql [INFO] [stdout] }) ; sql.push_str(")") ; return(sql, args) ; [INFO] [stdout] } let(mut sql, rb_args) = [INFO] [stdout] do_py_sql(& rbs :: Value :: Map(rb_arg_map), '?') ; use rbatis :: executor [INFO] [stdout] :: { Executor } ; executor.exec(& sql, rb_args).await [INFO] [stdout] } [INFO] [stdout] ............gen macro py_sql end............ [INFO] [stdout] ............gen macro py_sql : [INFO] [stdout] pub async fn [INFO] [stdout] select_by_id(executor : & dyn rbatis :: executor :: Executor, table_column : & [INFO] [stdout] str, table_name : & str, id : u64,) -> std :: result :: Result < Option < Todo [INFO] [stdout] >, rbatis :: rbdc :: Error > [INFO] [stdout] { [INFO] [stdout] let mut rb_arg_map = rbs :: value :: map :: ValueMap :: new() ; [INFO] [stdout] rb_arg_map.insert("table_column".to_string().into(), rbs :: [INFO] [stdout] to_value(table_column) ?) ; [INFO] [stdout] rb_arg_map.insert("table_name".to_string().into(), rbs :: [INFO] [stdout] to_value(table_name) ?) ; [INFO] [stdout] rb_arg_map.insert("id".to_string().into(), rbs :: to_value(id) ?) ; {} use [INFO] [stdout] rbatis :: executor :: { RBatisRef } ; let driver_type = [INFO] [stdout] executor.rb_ref().driver_type() ? ; use rbatis :: rbatis_codegen ; pub fn [INFO] [stdout] do_py_sql(arg : & rbs :: Value, _tag : char) -> [INFO] [stdout] (String, Vec < rbs :: Value >) [INFO] [stdout] { [INFO] [stdout] use rbatis_codegen :: ops :: * ; let mut sql = String :: [INFO] [stdout] with_capacity(70usize) ; let mut args = Vec :: with_capacity(20) ; [INFO] [stdout] args.push(rbs :: to_value({ & arg ["id"] }).unwrap_or_default()) ; [INFO] [stdout] sql.push_str("select ${table_column} from ${table_name} where id = ? limit 1".replacen("${table_column}", [INFO] [stdout] & { & arg ["table_column"] }.as_sql(), [INFO] [stdout] 1).replacen("${table_name}", & { & arg ["table_name"] }.as_sql(), [INFO] [stdout] 1).as_str()) ; return(sql, args) ; [INFO] [stdout] } let(mut sql, rb_args) = [INFO] [stdout] do_py_sql(& rbs :: Value :: Map(rb_arg_map), '?') ; use rbatis :: executor [INFO] [stdout] :: { Executor } ; let r = executor.query(& sql, rb_args).await ? ; rbatis [INFO] [stdout] :: decode :: decode(r) [INFO] [stdout] } [INFO] [stdout] ............gen macro py_sql end............ [INFO] [stdout] ............gen macro html_sql : [INFO] [stdout] pub async fn [INFO] [stdout] select_page_data(executor : & dyn rbatis :: executor :: Executor, do_count : [INFO] [stdout] bool, page_no : u64, page_size : u64,) -> std :: result :: Result < rbs :: [INFO] [stdout] Value, rbatis :: rbdc :: Error > [INFO] [stdout] { [INFO] [stdout] let _ = include_bytes! ("/opt/rustwide/workdir/mybatis_sql/todo.html") ; [INFO] [stdout] let mut rb_arg_map = rbs :: value :: map :: ValueMap :: new() ; [INFO] [stdout] rb_arg_map.insert("do_count".to_string().into(), rbs :: to_value(do_count) [INFO] [stdout] ?) ; [INFO] [stdout] rb_arg_map.insert("page_no".to_string().into(), rbs :: to_value(page_no) [INFO] [stdout] ?) ; [INFO] [stdout] rb_arg_map.insert("page_size".to_string().into(), rbs :: [INFO] [stdout] to_value(page_size) ?) ; {} use rbatis :: executor :: { RBatisRef } ; let [INFO] [stdout] driver_type = executor.rb_ref().driver_type() ? ; use rbatis :: [INFO] [stdout] rbatis_codegen ; pub fn impl_html_sql(arg : & rbs :: Value, _tag : char) [INFO] [stdout] -> (String, Vec < rbs :: Value >) [INFO] [stdout] { [INFO] [stdout] use rbatis_codegen :: ops :: * ; let mut sql = String :: [INFO] [stdout] with_capacity(80usize) ; let mut args = Vec :: with_capacity(20) ; if [INFO] [stdout] { (& arg ["do_count"]).op_eq(& true) }.to_owned().into() [INFO] [stdout] { sql.push_str("select count(1) from todo") ; } if [INFO] [stdout] { (& arg ["do_count"]).op_eq(& false) }.to_owned().into() [INFO] [stdout] { [INFO] [stdout] sql.push_str("select * FROM todo LIMIT ${page_size} OFFSET ${page_no}".replacen("${page_size}", [INFO] [stdout] & { & arg ["page_size"] }.as_sql(), [INFO] [stdout] 1).replacen("${page_no}", & { & arg ["page_no"] }.as_sql(), [INFO] [stdout] 1).as_str()) ; [INFO] [stdout] } return(sql, args) ; [INFO] [stdout] } let(mut sql, rb_args) = [INFO] [stdout] impl_html_sql(& rbs :: Value :: Map(rb_arg_map), '?') ; use rbatis :: [INFO] [stdout] executor :: { Executor } ; let r = executor.query(& sql, rb_args).await ? [INFO] [stdout] ; rbatis :: decode :: decode(r) [INFO] [stdout] } [INFO] [stdout] ............gen macro html_sql end............ [INFO] [stdout] ............gen macro html_sql : [INFO] [stdout] pub async fn get_next_id(rb : & mut dyn Executor) -> rbatis :: Result < u64 > [INFO] [stdout] { [INFO] [stdout] let mut rb_arg_map = rbs :: value :: map :: ValueMap :: new() ; {} use [INFO] [stdout] rbatis :: executor :: { RBatisRef } ; let driver_type = [INFO] [stdout] rb.rb_ref().driver_type() ? ; use rbatis :: rbatis_codegen ; pub fn [INFO] [stdout] impl_html_sql(arg : & rbs :: Value, _tag : char) -> [INFO] [stdout] (String, Vec < rbs :: Value >) [INFO] [stdout] { [INFO] [stdout] use rbatis_codegen :: ops :: * ; let mut sql = String :: [INFO] [stdout] with_capacity(28usize) ; let mut args = Vec :: with_capacity(20) ; [INFO] [stdout] sql.push_str("SELECT nextval('todo_seq')") ; return(sql, args) ; [INFO] [stdout] } let(mut sql, rb_args) = [INFO] [stdout] impl_html_sql(& rbs :: Value :: Map(rb_arg_map), '?') ; use rbatis :: [INFO] [stdout] executor :: { Executor } ; let r = rb.query(& sql, rb_args).await ? ; [INFO] [stdout] rbatis :: decode :: decode(r) [INFO] [stdout] } [INFO] [stdout] ............gen macro html_sql end............ [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 4.92s [INFO] running `Command { std: "docker" "inspect" "e22feafb8c6b897669a10af595c2fc4c851517a62b80731f7fe4b6618047b5a8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e22feafb8c6b897669a10af595c2fc4c851517a62b80731f7fe4b6618047b5a8", kill_on_drop: false }` [INFO] [stdout] e22feafb8c6b897669a10af595c2fc4c851517a62b80731f7fe4b6618047b5a8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+ff2c56344c764af598ad33027e9c7a48881808ef" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] ce2312d67f1ec24103770df1fdc73f4d311308264375230dd98a195a7604d97f [INFO] running `Command { std: "docker" "start" "-a" "ce2312d67f1ec24103770df1fdc73f4d311308264375230dd98a195a7604d97f", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.15s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/todo_ws_actix-fb393d4dea9988ea) [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] running `Command { std: "docker" "inspect" "ce2312d67f1ec24103770df1fdc73f4d311308264375230dd98a195a7604d97f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ce2312d67f1ec24103770df1fdc73f4d311308264375230dd98a195a7604d97f", kill_on_drop: false }` [INFO] [stdout] ce2312d67f1ec24103770df1fdc73f4d311308264375230dd98a195a7604d97f [INFO] testing oxide-byte/todo-ws-actix against try#5e4273472e1b2f223618a9b3def795f6224f241d for pr-118825 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foxide-byte%2Ftodo-ws-actix" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/oxide-byte/todo-ws-actix on toolchain 5e4273472e1b2f223618a9b3def795f6224f241d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5e4273472e1b2f223618a9b3def795f6224f241d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/oxide-byte/todo-ws-actix [INFO] finished tweaking git repo https://github.com/oxide-byte/todo-ws-actix [INFO] tweaked toml for git repo https://github.com/oxide-byte/todo-ws-actix written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/oxide-byte/todo-ws-actix already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5e4273472e1b2f223618a9b3def795f6224f241d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5e4273472e1b2f223618a9b3def795f6224f241d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a082e900624843a4856cacaaff9a2668c4b5ef408873dfa60d1b38808df93dc9 [INFO] running `Command { std: "docker" "start" "-a" "a082e900624843a4856cacaaff9a2668c4b5ef408873dfa60d1b38808df93dc9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a082e900624843a4856cacaaff9a2668c4b5ef408873dfa60d1b38808df93dc9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a082e900624843a4856cacaaff9a2668c4b5ef408873dfa60d1b38808df93dc9", kill_on_drop: false }` [INFO] [stdout] a082e900624843a4856cacaaff9a2668c4b5ef408873dfa60d1b38808df93dc9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5e4273472e1b2f223618a9b3def795f6224f241d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d17d34fdae5425f852c819fbf09d738f596929c8355a57a14996c5869c1f91f9 [INFO] running `Command { std: "docker" "start" "-a" "d17d34fdae5425f852c819fbf09d738f596929c8355a57a14996c5869c1f91f9", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Compiling memchr v2.6.4 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Compiling itoa v1.0.9 [INFO] [stderr] Compiling pin-project-lite v0.2.13 [INFO] [stderr] Compiling serde v1.0.193 [INFO] [stderr] Compiling futures-core v0.3.29 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling futures-sink v0.3.29 [INFO] [stderr] Compiling smallvec v1.11.2 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling bytes v1.5.0 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling futures-channel v0.3.29 [INFO] [stderr] Compiling ryu v1.0.15 [INFO] [stderr] Compiling futures-task v0.3.29 [INFO] [stderr] Compiling serde_json v1.0.108 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling thiserror v1.0.50 [INFO] [stderr] Compiling futures-util v0.3.29 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling ahash v0.8.6 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling percent-encoding v2.3.0 [INFO] [stderr] Compiling futures-io v0.3.29 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling time-macros v0.2.15 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling zerocopy v0.7.26 [INFO] [stderr] Compiling base64 v0.21.5 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling allocator-api2 v0.2.16 [INFO] [stderr] Compiling form_urlencoded v1.2.0 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling pkg-config v0.3.27 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling subtle v2.5.0 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Compiling http v0.2.11 [INFO] [stderr] Compiling syn v2.0.39 [INFO] [stderr] Compiling ucd-trie v0.1.6 [INFO] [stderr] Compiling jobserver v0.1.27 [INFO] [stderr] Compiling getrandom v0.2.11 [INFO] [stderr] Compiling mio v0.8.9 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling socket2 v0.5.5 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling hashbrown v0.14.2 [INFO] [stderr] Compiling async-trait v0.1.74 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stderr] Compiling rustls v0.21.9 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling unicode-bidi v0.3.13 [INFO] [stderr] Compiling local-waker v0.1.4 [INFO] [stderr] Compiling bytestring v1.3.1 [INFO] [stderr] Compiling bitflags v2.4.1 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling alloc-no-stdlib v2.0.4 [INFO] [stderr] Compiling cpufeatures v0.2.11 [INFO] [stderr] Compiling zstd-safe v6.0.6 [INFO] [stderr] Compiling alloc-stdlib v0.2.2 [INFO] [stderr] Compiling idna v0.4.0 [INFO] [stderr] Compiling actix-utils v3.0.1 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling indexmap v2.1.0 [INFO] [stderr] Compiling ring v0.17.5 [INFO] [stderr] Compiling zstd-sys v2.0.9+zstd.1.5.5 [INFO] [stderr] Compiling actix-service v2.0.2 [INFO] [stderr] Compiling url v2.4.1 [INFO] [stderr] Compiling miniz_oxide v0.7.1 [INFO] [stderr] Compiling brotli-decompressor v2.5.1 [INFO] [stderr] Compiling bigdecimal v0.4.2 [INFO] [stderr] Compiling ahash v0.7.7 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling flate2 v1.0.28 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling local-channel v0.1.5 [INFO] [stderr] Compiling encoding_rs v0.8.33 [INFO] [stderr] Compiling crossbeam-epoch v0.9.15 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling regex-automata v0.4.3 [INFO] [stderr] Compiling metrics v0.18.1 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling overload v0.1.1 [INFO] [stderr] Compiling brotli v3.4.0 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling language-tags v0.3.2 [INFO] [stderr] Compiling nu-ansi-term v0.46.0 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling lru v0.12.0 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling thread_local v1.1.7 [INFO] [stderr] error: could not compile `syn` (lib) [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `/opt/rustwide/rustup-home/toolchains/5e4273472e1b2f223618a9b3def795f6224f241d/bin/rustc --crate-name syn --edition=2021 /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/syn-2.0.39/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no --cfg 'feature="clone-impls"' --cfg 'feature="default"' --cfg 'feature="derive"' --cfg 'feature="extra-traits"' --cfg 'feature="full"' --cfg 'feature="parsing"' --cfg 'feature="printing"' --cfg 'feature="proc-macro"' --cfg 'feature="quote"' --cfg 'feature="visit-mut"' -C metadata=4de61b0eee5e21e1 -C extra-filename=-4de61b0eee5e21e1 --out-dir /opt/rustwide/target/debug/deps -L dependency=/opt/rustwide/target/debug/deps --extern proc_macro2=/opt/rustwide/target/debug/deps/libproc_macro2-f4d9afb26d4ae2d2.rmeta --extern quote=/opt/rustwide/target/debug/deps/libquote-63f05fe133260ea2.rmeta --extern unicode_ident=/opt/rustwide/target/debug/deps/libunicode_ident-02f147e3ca7fbe38.rmeta --cap-lints allow --cap-lints=forbid` (signal: 9, SIGKILL: kill) [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "d17d34fdae5425f852c819fbf09d738f596929c8355a57a14996c5869c1f91f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d17d34fdae5425f852c819fbf09d738f596929c8355a57a14996c5869c1f91f9", kill_on_drop: false }` [INFO] [stdout] d17d34fdae5425f852c819fbf09d738f596929c8355a57a14996c5869c1f91f9