[INFO] updating cached repository https://github.com/oszn/code [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4696f3c46cb02f1abe1cf8a9f584aa5e22011e01 [INFO] testing oszn/code against beta-2020-07-24 for beta-1.46-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foszn%2Fcode" "/workspace/builds/worker-14/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-14/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/oszn/code on toolchain beta-2020-07-24 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2020-07-24" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/oszn/code [INFO] finished tweaking git repo https://github.com/oszn/code [INFO] tweaked toml for git repo https://github.com/oszn/code written to /workspace/builds/worker-14/source/Cargo.toml [INFO] crate git repo https://github.com/oszn/code already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2020-07-24" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-07-24" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a581ef23a187b9c5cfe9d52471629f99b7662f63726da23ad49cdeed4e1815ae [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" "a581ef23a187b9c5cfe9d52471629f99b7662f63726da23ad49cdeed4e1815ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a581ef23a187b9c5cfe9d52471629f99b7662f63726da23ad49cdeed4e1815ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a581ef23a187b9c5cfe9d52471629f99b7662f63726da23ad49cdeed4e1815ae", kill_on_drop: false }` [INFO] [stdout] a581ef23a187b9c5cfe9d52471629f99b7662f63726da23ad49cdeed4e1815ae [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-07-24" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 50e83e43b2782fa6ca91b805896f58bcaec6d274d6697d527c59c0573c3f44d9 [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" "50e83e43b2782fa6ca91b805896f58bcaec6d274d6697d527c59c0573c3f44d9", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.62 [INFO] [stderr] Compiling autocfg v0.1.5 [INFO] [stderr] Compiling futures v0.1.28 [INFO] [stderr] Compiling cc v1.0.40 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling proc-macro2 v1.0.1 [INFO] [stderr] Compiling syn v1.0.3 [INFO] [stderr] Compiling serde v1.0.99 [INFO] [stderr] Compiling regex-syntax v0.6.11 [INFO] [stderr] Compiling itoa v0.4.4 [INFO] [stderr] Compiling getrandom v0.1.10 [INFO] [stderr] Compiling ppv-lite86 v0.2.5 [INFO] [stderr] Compiling bitflags v1.1.0 [INFO] [stderr] Compiling num-bigint v0.2.2 [INFO] [stderr] Compiling arc-swap v0.4.2 [INFO] [stderr] Compiling copyless v0.1.4 [INFO] [stderr] Compiling sha1 v0.6.0 [INFO] [stderr] Compiling either v1.5.2 [INFO] [stderr] Compiling arrayref v0.3.5 [INFO] [stderr] Compiling byte-tools v0.2.0 [INFO] [stderr] Compiling hashbrown v0.5.0 [INFO] [stderr] Compiling static_assertions v0.3.4 [INFO] [stderr] Compiling v_htmlescape v0.4.5 [INFO] [stderr] Compiling md5 v0.3.8 [INFO] [stderr] Compiling fallible-iterator v0.1.6 [INFO] [stderr] Compiling nix v0.15.0 [INFO] [stderr] Compiling uuid v0.7.4 [INFO] [stderr] Compiling mysql v16.1.0 [INFO] [stderr] Compiling bit-vec v0.6.1 [INFO] [stderr] Compiling bufstream v0.1.4 [INFO] [stderr] Compiling json v0.11.15 [INFO] [stderr] Compiling unicode-normalization v0.1.8 [INFO] [stderr] Compiling crossbeam-utils v0.6.6 [INFO] [stderr] Compiling unicase v2.4.0 [INFO] [stderr] Compiling nom v4.2.3 [INFO] [stderr] Compiling unreachable v1.0.0 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling block-buffer v0.3.3 [INFO] [stderr] Compiling phf_shared v0.7.24 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Compiling num-iter v0.1.39 [INFO] [stderr] Compiling num-rational v0.2.2 [INFO] [stderr] Compiling num-complex v0.2.3 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Compiling encoding_rs v0.8.17 [INFO] [stderr] Compiling c2-chacha v0.2.2 [INFO] [stderr] Compiling base64 v0.10.1 [INFO] [stderr] Compiling base64 v0.6.0 [INFO] [stderr] Compiling generic-array v0.9.0 [INFO] [stderr] Compiling generic-array v0.12.3 [INFO] [stderr] Compiling phf v0.7.24 [INFO] [stderr] Compiling lexical-core v0.4.3 [INFO] [stderr] Compiling lexical v2.2.2 [INFO] [stderr] Compiling digest v0.7.6 [INFO] [stderr] Compiling crypto-mac v0.5.2 [INFO] [stderr] Compiling tokio-executor v0.1.8 [INFO] [stderr] Compiling tokio-sync v0.1.6 [INFO] [stderr] Compiling actix-service v0.4.1 [INFO] [stderr] Compiling digest v0.8.1 [INFO] [stderr] Compiling block-buffer v0.7.3 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Compiling stackvector v1.0.6 [INFO] [stderr] Compiling sha2 v0.7.1 [INFO] [stderr] Compiling hmac v0.5.0 [INFO] [stderr] Compiling mime v0.3.13 [INFO] [stderr] Compiling tokio-timer v0.2.11 [INFO] [stderr] Compiling tokio-current-thread v0.1.6 [INFO] [stderr] Compiling idna v0.1.5 [INFO] [stderr] Compiling idna v0.2.0 [INFO] [stderr] Compiling stringprep v0.1.2 [INFO] [stderr] Compiling mime_guess v2.0.1 [INFO] [stderr] Compiling sha2 v0.8.0 [INFO] [stderr] Compiling backtrace-sys v0.1.31 [INFO] [stderr] Compiling miniz-sys v0.1.12 [INFO] [stderr] Compiling brotli-sys v0.3.2 [INFO] [stderr] Compiling regex v1.2.1 [INFO] [stderr] Compiling iovec v0.1.2 [INFO] [stderr] Compiling net2 v0.2.33 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling num_cpus v1.10.1 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling socket2 v0.3.11 [INFO] [stderr] Compiling hostname v0.1.5 [INFO] [stderr] Compiling time v0.1.42 [INFO] [stderr] Compiling signal-hook-registry v1.1.1 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling memchr v1.0.2 [INFO] [stderr] Compiling url v1.7.2 [INFO] [stderr] Compiling url v2.1.0 [INFO] [stderr] Compiling bytes v0.4.12 [INFO] [stderr] Compiling threadpool v1.7.1 [INFO] [stderr] Compiling rand_core v0.5.0 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Compiling mio v0.6.19 [INFO] [stderr] Compiling resolv-conf v0.6.2 [INFO] [stderr] Compiling signal-hook v0.1.10 [INFO] [stderr] Compiling chrono v0.4.7 [INFO] [stderr] Compiling rand v0.3.23 [INFO] [stderr] Compiling rand_chacha v0.2.1 [INFO] [stderr] Compiling tokio-io v0.1.12 [INFO] [stderr] Compiling http v0.1.18 [INFO] [stderr] Compiling string v0.2.1 [INFO] [stderr] Compiling flate2 v1.0.11 [INFO] [stderr] Compiling backtrace v0.3.34 [INFO] [stderr] Compiling postgres-protocol v0.3.2 [INFO] [stderr] Compiling rand v0.7.0 [INFO] [stderr] Compiling parking_lot_core v0.4.0 [INFO] [stderr] Compiling mio-uds v0.6.7 [INFO] [stderr] Compiling tokio-codec v0.1.1 [INFO] [stderr] Compiling parking_lot v0.7.1 [INFO] [stderr] Compiling postgres-shared v0.4.2 [INFO] [stderr] Compiling actix-codec v0.1.2 [INFO] [stderr] Compiling actix-utils v0.4.5 [INFO] [stderr] Compiling tokio-reactor v0.1.9 [INFO] [stderr] Compiling twox-hash v1.5.0 [INFO] [stderr] Compiling synstructure v0.10.2 [INFO] [stderr] Compiling num v0.2.0 [INFO] [stderr] Compiling postgres v0.15.2 [INFO] [stderr] Compiling serde_derive v1.0.99 [INFO] [stderr] Compiling tokio-tcp v0.1.3 [INFO] [stderr] Compiling tokio-udp v0.1.3 [INFO] [stderr] Compiling tokio-signal v0.2.7 [INFO] [stderr] Compiling actix-server-config v0.1.2 [INFO] [stderr] Compiling h2 v0.1.26 [INFO] [stderr] Compiling brotli2 v0.3.2 [INFO] [stderr] Compiling failure_derive v0.1.5 [INFO] [stderr] Compiling derive_more v0.15.0 [INFO] [stderr] Compiling enum-as-inner v0.2.1 [INFO] [stderr] Compiling v_escape_derive v0.5.5 [INFO] [stderr] Compiling actix-web-codegen v0.1.2 [INFO] [stderr] Compiling failure v0.1.5 [INFO] [stderr] Compiling trust-dns-proto v0.7.4 [INFO] [stderr] Compiling v_escape v0.7.4 [INFO] [stderr] Compiling trust-dns-resolver v0.11.1 [INFO] [stderr] Compiling actix-threadpool v0.1.2 [INFO] [stderr] Compiling actix-rt v0.2.4 [INFO] [stderr] Compiling actix-server v0.6.0 [INFO] [stderr] Compiling actix-connect v0.2.3 [INFO] [stderr] Compiling serde_json v1.0.40 [INFO] [stderr] Compiling serde_urlencoded v0.6.1 [INFO] [stderr] Compiling serde_urlencoded v0.5.5 [INFO] [stderr] Compiling actix-router v0.1.5 [INFO] [stderr] Compiling rust_decimal v1.0.2 [INFO] [stderr] Compiling bigdecimal v0.1.0 [INFO] [stderr] Compiling actix-http v0.2.9 [INFO] [stderr] Compiling mysql_common v0.18.0 [INFO] [stderr] Compiling awc v0.2.4 [INFO] [stderr] Compiling actix-web v1.0.5 [INFO] [stderr] Compiling actix-files v0.1.4 [INFO] [stderr] Compiling wr2 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `ContentDisposition`, `DispositionType` [INFO] [stdout] --> src/main.rs:15:31 [INFO] [stdout] | [INFO] [stdout] 15 | use actix_web::http::header::{ContentDisposition, DispositionType}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Method`, `header` [INFO] [stdout] --> src/main.rs:16:23 [INFO] [stdout] | [INFO] [stdout] 16 | use actix_web::http::{header, Method, StatusCode}; [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `json::JsonValue` [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use json::JsonValue; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Error`, `error`, `guard`, `middleware` [INFO] [stdout] --> src/main.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | use actix_web::{error, guard, middleware, web, App, Error, HttpRequest, HttpResponse, HttpServer, Result, Responder}; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/main.rs:19:33 [INFO] [stdout] | [INFO] [stdout] 19 | use serde_derive::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `post` [INFO] [stdout] --> src/main.rs:20:21 [INFO] [stdout] | [INFO] [stdout] 20 | use actix_web::{get,post}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `student_info` should have an upper camel case name [INFO] [stdout] --> src/stu.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct student_info { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `StudentInfo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `plic` should have an upper camel case name [INFO] [stdout] --> src/main.rs:106:8 [INFO] [stdout] | [INFO] [stdout] 106 | struct plic{ [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Plic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/main.rs:109:27 [INFO] [stdout] | [INFO] [stdout] 109 | fn replay(req:HttpRequest,item: web::Json)->Result>{ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/stu.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let mut selected_payments:Vec = [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/stu.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new(name: String, card_id: String, gender: String, class: i32, age: i32) -> student_info { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/main.rs:107:5 [INFO] [stdout] | [INFO] [stdout] 107 | name:String [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 4m 39s [INFO] running `Command { std: "docker" "inspect" "50e83e43b2782fa6ca91b805896f58bcaec6d274d6697d527c59c0573c3f44d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "50e83e43b2782fa6ca91b805896f58bcaec6d274d6697d527c59c0573c3f44d9", kill_on_drop: false }` [INFO] [stdout] 50e83e43b2782fa6ca91b805896f58bcaec6d274d6697d527c59c0573c3f44d9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-07-24" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2445cc6cdbeee4448df0140fd9d5aa3726cc09e84c6a145e2f8bfb8215d2bae7 [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" "2445cc6cdbeee4448df0140fd9d5aa3726cc09e84c6a145e2f8bfb8215d2bae7", kill_on_drop: false }` [INFO] [stderr] Compiling wr2 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `ContentDisposition`, `DispositionType` [INFO] [stdout] --> src/main.rs:15:31 [INFO] [stdout] | [INFO] [stdout] 15 | use actix_web::http::header::{ContentDisposition, DispositionType}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Method`, `header` [INFO] [stdout] --> src/main.rs:16:23 [INFO] [stdout] | [INFO] [stdout] 16 | use actix_web::http::{header, Method, StatusCode}; [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `json::JsonValue` [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use json::JsonValue; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Error`, `error`, `guard`, `middleware` [INFO] [stdout] --> src/main.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | use actix_web::{error, guard, middleware, web, App, Error, HttpRequest, HttpResponse, HttpServer, Result, Responder}; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/main.rs:19:33 [INFO] [stdout] | [INFO] [stdout] 19 | use serde_derive::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `post` [INFO] [stdout] --> src/main.rs:20:21 [INFO] [stdout] | [INFO] [stdout] 20 | use actix_web::{get,post}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `student_info` should have an upper camel case name [INFO] [stdout] --> src/stu.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct student_info { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `StudentInfo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `plic` should have an upper camel case name [INFO] [stdout] --> src/main.rs:106:8 [INFO] [stdout] | [INFO] [stdout] 106 | struct plic{ [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Plic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/main.rs:109:27 [INFO] [stdout] | [INFO] [stdout] 109 | fn replay(req:HttpRequest,item: web::Json)->Result>{ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/stu.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let mut selected_payments:Vec = [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/stu.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new(name: String, card_id: String, gender: String, class: i32, age: i32) -> student_info { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/main.rs:107:5 [INFO] [stdout] | [INFO] [stdout] 107 | name:String [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 2.07s [INFO] running `Command { std: "docker" "inspect" "2445cc6cdbeee4448df0140fd9d5aa3726cc09e84c6a145e2f8bfb8215d2bae7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2445cc6cdbeee4448df0140fd9d5aa3726cc09e84c6a145e2f8bfb8215d2bae7", kill_on_drop: false }` [INFO] [stdout] 2445cc6cdbeee4448df0140fd9d5aa3726cc09e84c6a145e2f8bfb8215d2bae7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-07-24" "test" "--frozen", 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] 73db810e20649f542b2b401a69720b86fbc960ac1c1ba6017d7885934364ab7a [INFO] running `Command { std: "docker" "start" "-a" "73db810e20649f542b2b401a69720b86fbc960ac1c1ba6017d7885934364ab7a", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `ContentDisposition`, `DispositionType` [INFO] [stderr] --> src/main.rs:15:31 [INFO] [stderr] | [INFO] [stderr] 15 | use actix_web::http::header::{ContentDisposition, DispositionType}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Method`, `header` [INFO] [stderr] --> src/main.rs:16:23 [INFO] [stderr] | [INFO] [stderr] 16 | use actix_web::http::{header, Method, StatusCode}; [INFO] [stderr] | ^^^^^^ ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `json::JsonValue` [INFO] [stderr] --> src/main.rs:17:5 [INFO] [stderr] | [INFO] [stderr] 17 | use json::JsonValue; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Error`, `error`, `guard`, `middleware` [INFO] [stderr] --> src/main.rs:18:17 [INFO] [stderr] | [INFO] [stderr] 18 | use actix_web::{error, guard, middleware, web, App, Error, HttpRequest, HttpResponse, HttpServer, Result, Responder}; [INFO] [stderr] | ^^^^^ ^^^^^ ^^^^^^^^^^ ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Serialize` [INFO] [stderr] --> src/main.rs:19:33 [INFO] [stderr] | [INFO] [stderr] 19 | use serde_derive::{Deserialize, Serialize}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `post` [INFO] [stderr] --> src/main.rs:20:21 [INFO] [stderr] | [INFO] [stderr] 20 | use actix_web::{get,post}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `student_info` should have an upper camel case name [INFO] [stderr] --> src/stu.rs:5:12 [INFO] [stderr] | [INFO] [stderr] 5 | pub struct student_info { [INFO] [stderr] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `StudentInfo` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stderr] [INFO] [stderr] warning: type `plic` should have an upper camel case name [INFO] [stderr] --> src/main.rs:106:8 [INFO] [stderr] | [INFO] [stderr] 106 | struct plic{ [INFO] [stderr] | ^^^^ help: convert the identifier to upper camel case: `Plic` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `item` [INFO] [stderr] --> src/main.rs:109:27 [INFO] [stderr] | [INFO] [stderr] 109 | fn replay(req:HttpRequest,item: web::Json)->Result>{ [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/stu.rs:38:9 [INFO] [stderr] | [INFO] [stderr] 38 | let mut selected_payments:Vec = [INFO] [stderr] | ----^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/stu.rs:14:12 [INFO] [stderr] | [INFO] [stderr] 14 | pub fn new(name: String, card_id: String, gender: String, class: i32, age: i32) -> student_info { [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field is never read: `name` [INFO] [stderr] --> src/main.rs:107:5 [INFO] [stderr] | [INFO] [stderr] 107 | name:String [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: 12 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.49s [INFO] [stdout] [INFO] [stderr] Running /opt/rustwide/target/debug/deps/wr2-93c94e280914e35f [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "73db810e20649f542b2b401a69720b86fbc960ac1c1ba6017d7885934364ab7a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "73db810e20649f542b2b401a69720b86fbc960ac1c1ba6017d7885934364ab7a", kill_on_drop: false }` [INFO] [stdout] 73db810e20649f542b2b401a69720b86fbc960ac1c1ba6017d7885934364ab7a