[INFO] cloning repository https://github.com/Osama530/simple_iot_api [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Osama530/simple_iot_api" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOsama530%2Fsimple_iot_api", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOsama530%2Fsimple_iot_api'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0e3f80f860d5500815b2dca3b96c7152a994b045 [INFO] checking Osama530/simple_iot_api against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOsama530%2Fsimple_iot_api" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 66% (1017/1532) Updating files: 67% (1027/1532) Updating files: 68% (1042/1532) Updating files: 69% (1058/1532) Updating files: 70% (1073/1532) Updating files: 71% (1088/1532) Updating files: 72% (1104/1532) Updating files: 73% (1119/1532) Updating files: 74% (1134/1532) Updating files: 75% (1149/1532) Updating files: 76% (1165/1532) Updating files: 77% (1180/1532) Updating files: 78% (1195/1532) Updating files: 79% (1211/1532) Updating files: 80% (1226/1532) Updating files: 81% (1241/1532) Updating files: 82% (1257/1532) Updating files: 82% (1261/1532) Updating files: 83% (1272/1532) Updating files: 84% (1287/1532) Updating files: 85% (1303/1532) Updating files: 86% (1318/1532) Updating files: 87% (1333/1532) Updating files: 87% (1337/1532) Updating files: 88% (1349/1532) Updating files: 89% (1364/1532) Updating files: 90% (1379/1532) Updating files: 91% (1395/1532) Updating files: 92% (1410/1532) Updating files: 93% (1425/1532) Updating files: 94% (1441/1532) Updating files: 95% (1456/1532) Updating files: 96% (1471/1532) Updating files: 97% (1487/1532) Updating files: 98% (1502/1532) Updating files: 99% (1517/1532) Updating files: 100% (1532/1532) Updating files: 100% (1532/1532), done. [INFO] validating manifest of git repo https://github.com/Osama530/simple_iot_api on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Osama530/simple_iot_api [INFO] finished tweaking git repo https://github.com/Osama530/simple_iot_api [INFO] tweaked toml for git repo https://github.com/Osama530/simple_iot_api written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/Osama530/simple_iot_api already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", 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] 2908622b296a09b802d345d7ba8cc3d4eb19589e4b219ac97105a95fbdbc62fe [INFO] running `Command { std: "docker" "start" "-a" "2908622b296a09b802d345d7ba8cc3d4eb19589e4b219ac97105a95fbdbc62fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2908622b296a09b802d345d7ba8cc3d4eb19589e4b219ac97105a95fbdbc62fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2908622b296a09b802d345d7ba8cc3d4eb19589e4b219ac97105a95fbdbc62fe", kill_on_drop: false }` [INFO] [stdout] 2908622b296a09b802d345d7ba8cc3d4eb19589e4b219ac97105a95fbdbc62fe [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 08e75842682b13b95ddadff0cdaa7f13cccb4aa89ec3f309e03c3a8e57a4a501 [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" "08e75842682b13b95ddadff0cdaa7f13cccb4aa89ec3f309e03c3a8e57a4a501", kill_on_drop: false }` [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling yansi v0.5.0 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Compiling subtle v2.4.0 [INFO] [stderr] Compiling zeroize v1.2.0 [INFO] [stderr] Compiling safemem v0.3.3 [INFO] [stderr] Compiling serde v1.0.118 [INFO] [stderr] Compiling percent-encoding v1.0.1 [INFO] [stderr] Compiling language-tags v0.2.2 [INFO] [stderr] Compiling typeable v0.1.2 [INFO] [stderr] Compiling traitobject v0.1.0 [INFO] [stderr] Checking base64 v0.12.3 [INFO] [stderr] Compiling smallvec v1.6.0 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Compiling syn v1.0.58 [INFO] [stderr] Compiling serde_derive v1.0.118 [INFO] [stderr] Compiling unicase v1.4.2 [INFO] [stderr] Checking walkdir v2.3.1 [INFO] [stderr] Compiling libc v0.2.81 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking getrandom v0.1.16 [INFO] [stderr] Checking net2 v0.2.37 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking inotify-sys v0.1.4 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking filetime v0.2.13 [INFO] [stderr] Compiling pear_codegen v0.1.4 [INFO] [stderr] Compiling rocket_codegen v0.4.6 [INFO] [stderr] Compiling rocket v0.4.6 [INFO] [stderr] Checking base64 v0.9.3 [INFO] [stderr] Compiling idna v0.1.5 [INFO] [stderr] Compiling indexmap v1.6.1 [INFO] [stderr] Compiling quote v1.0.8 [INFO] [stderr] Compiling universal-hash v0.3.0 [INFO] [stderr] Checking block-buffer v0.7.3 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking inotify v0.7.1 [INFO] [stderr] Checking log v0.3.9 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Compiling aes-soft v0.3.3 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Checking polyval v0.3.3 [INFO] [stderr] Checking hmac v0.7.1 [INFO] [stderr] Checking sha2 v0.8.2 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking mime v0.2.6 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling url v1.7.2 [INFO] [stderr] Checking ghash v0.2.3 [INFO] [stderr] Checking hkdf v0.8.0 [INFO] [stderr] Checking aes v0.3.2 [INFO] [stderr] Checking mio-extras v2.0.6 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking aes-gcm v0.5.0 [INFO] [stderr] Checking notify v4.0.15 [INFO] [stderr] Compiling hyper v0.10.16 [INFO] [stderr] Checking cookie v0.11.3 [INFO] [stderr] Checking toml v0.4.10 [INFO] [stderr] Checking serde_json v1.0.61 [INFO] [stderr] Compiling devise_core v0.2.0 [INFO] [stderr] Compiling devise_codegen v0.2.0 [INFO] [stderr] Compiling devise v0.2.0 [INFO] [stderr] Compiling pear v0.1.4 [INFO] [stderr] Checking rocket_http v0.4.6 [INFO] [stderr] Checking rocket_contrib v0.4.6 [INFO] [stderr] Checking simple_iot_api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected `{`, found `}` [INFO] [stdout] --> src/modules/routes.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 26 | if state == [INFO] [stdout] | -- this `if` expression has a condition, but no block [INFO] [stdout] ... [INFO] [stdout] 35 | } [INFO] [stdout] | ^ expected `{` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `{`, found `}` [INFO] [stdout] --> src/modules/routes.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 26 | if state == [INFO] [stdout] | -- this `if` expression has a condition, but no block [INFO] [stdout] ... [INFO] [stdout] 35 | } [INFO] [stdout] | ^ expected `{` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected end of input, expected curly braces [INFO] [stdout] --> src/modules/routes.rs:25:53 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn sensor(state: String)-> Option> { [INFO] [stdout] | _____________________________________________________^ [INFO] [stdout] 26 | | if state == [INFO] [stdout] 27 | | Some(Json ( [INFO] [stdout] 28 | | Sensor { [INFO] [stdout] ... | [INFO] [stdout] 34 | | [INFO] [stdout] 35 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: #[get] can only be used on functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected end of input, expected curly braces [INFO] [stdout] --> src/modules/routes.rs:25:53 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn sensor(state: String)-> Option> { [INFO] [stdout] | _____________________________________________________^ [INFO] [stdout] 26 | | if state == [INFO] [stdout] 27 | | Some(Json ( [INFO] [stdout] 28 | | Sensor { [INFO] [stdout] ... | [INFO] [stdout] 34 | | [INFO] [stdout] 35 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: #[get] can only be used on functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `static_rocket_route_info_for_sensor` in module `routes` [INFO] [stdout] --> src/main.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | routes::sensor, [INFO] [stdout] | ^^^^^^ help: a static with a similar name exists: `static_rocket_route_info_for_bulb` [INFO] [stdout] | [INFO] [stdout] ::: src/modules/routes.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[get("/bulb?")] [INFO] [stdout] | ----------------------- similarly named static `static_rocket_route_info_for_bulb` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::modules::sensors::*` [INFO] [stdout] --> src/modules/routes.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::modules::sensors::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::request::Form` [INFO] [stdout] --> src/modules/lights.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use rocket::request::Form; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `api` should have an upper camel case name [INFO] [stdout] --> src/modules/lights.rs:56:11 [INFO] [stdout] | [INFO] [stdout] 56 | pub trait api { [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case: `Api` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::response::Redirect` [INFO] [stdout] --> src/modules/route_lights.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rocket::response::Redirect; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `static_rocket_route_info_for_sensor` in module `routes` [INFO] [stdout] --> src/main.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | routes::sensor, [INFO] [stdout] | ^^^^^^ help: a static with a similar name exists: `static_rocket_route_info_for_bulb` [INFO] [stdout] | [INFO] [stdout] ::: src/modules/routes.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[get("/bulb?")] [INFO] [stdout] | ----------------------- similarly named static `static_rocket_route_info_for_bulb` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::modules::sensors::*` [INFO] [stdout] --> src/modules/routes.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::modules::sensors::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::request::Form` [INFO] [stdout] --> src/modules/lights.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use rocket::request::Form; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `api` should have an upper camel case name [INFO] [stdout] --> src/modules/lights.rs:56:11 [INFO] [stdout] | [INFO] [stdout] 56 | pub trait api { [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case: `Api` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::response::Redirect` [INFO] [stdout] --> src/modules/route_lights.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rocket::response::Redirect; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `simple_iot_api` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 3 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "08e75842682b13b95ddadff0cdaa7f13cccb4aa89ec3f309e03c3a8e57a4a501", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "08e75842682b13b95ddadff0cdaa7f13cccb4aa89ec3f309e03c3a8e57a4a501", kill_on_drop: false }` [INFO] [stdout] 08e75842682b13b95ddadff0cdaa7f13cccb4aa89ec3f309e03c3a8e57a4a501