[INFO] updating cached repository https://github.com/GeneTinderholm/jwt-util [INFO] running `"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"` [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 8c4cea28aa465439f8dce98a565eb79a3c101c57 [INFO] testing GeneTinderholm/jwt-util against 1.44.0 for beta-1.45-1 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGeneTinderholm%2Fjwt-util" "/workspace/builds/worker-6/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/GeneTinderholm/jwt-util on toolchain 1.44.0 [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/GeneTinderholm/jwt-util [INFO] finished tweaking git repo https://github.com/GeneTinderholm/jwt-util [INFO] tweaked toml for git repo https://github.com/GeneTinderholm/jwt-util written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/GeneTinderholm/jwt-util already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `"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" "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" "/opt/rustwide/cargo-home/bin/cargo" "+1.44.0" "build" "--frozen"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 735a36597198d190317f20eff6f9f135abcf5e691a2a741b150959bd088d5392 [INFO] running `"docker" "start" "-a" "735a36597198d190317f20eff6f9f135abcf5e691a2a741b150959bd088d5392"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.14 [INFO] [stderr] Compiling futures-task v0.3.4 [INFO] [stderr] Compiling serde_json v1.0.47 [INFO] [stderr] Compiling tokio v0.2.11 [INFO] [stderr] Compiling futures-util v0.3.4 [INFO] [stderr] Compiling proc-macro2 v1.0.8 [INFO] [stderr] Compiling openssl-sys v0.9.54 [INFO] [stderr] Compiling indexmap v1.3.2 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Compiling openssl v0.10.28 [INFO] [stderr] Compiling native-tls v0.2.3 [INFO] [stderr] Compiling tokio-util v0.2.0 [INFO] [stderr] Compiling h2 v0.2.1 [INFO] [stderr] Compiling tokio-tls v0.3.0 [INFO] [stderr] Compiling pin-project-internal v0.4.8 [INFO] [stderr] Compiling pin-project v0.4.8 [INFO] [stderr] Compiling hyper v0.13.2 [INFO] [stderr] Compiling hyper-tls v0.4.1 [INFO] [stderr] Compiling reqwest v0.10.1 [INFO] [stderr] Compiling jwt v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stderr] --> src/main.rs:34:15 [INFO] [stderr] | [INFO] [stderr] 7 | fn main() { [INFO] [stderr] | ---- this is not `async` [INFO] [stderr] ... [INFO] [stderr] 34 | let res = Client::new() [INFO] [stderr] | _______________^ [INFO] [stderr] 35 | | .post("url") [INFO] [stderr] 36 | | .body(&query_params) [INFO] [stderr] 37 | | .header("Content-Type", "www/url-form-encoded") [INFO] [stderr] ... | [INFO] [stderr] 40 | | .text() [INFO] [stderr] 41 | | .await?; [INFO] [stderr] | |______________^ only allowed inside `async` functions and blocks [INFO] [stderr] [INFO] [stderr] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stderr] --> src/main.rs:34:15 [INFO] [stderr] | [INFO] [stderr] 7 | fn main() { [INFO] [stderr] | ---- this is not `async` [INFO] [stderr] ... [INFO] [stderr] 34 | let res = Client::new() [INFO] [stderr] | _______________^ [INFO] [stderr] 35 | | .post("url") [INFO] [stderr] 36 | | .body(&query_params) [INFO] [stderr] 37 | | .header("Content-Type", "www/url-form-encoded") [INFO] [stderr] 38 | | .send() [INFO] [stderr] 39 | | .await? [INFO] [stderr] | |______________^ only allowed inside `async` functions and blocks [INFO] [stderr] [INFO] [stderr] warning: unused import: `serde_json::map::Iter` [INFO] [stderr] --> src/util.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use serde_json::map::Iter; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Result`, `Value` [INFO] [stderr] --> src/main.rs:4:18 [INFO] [stderr] | [INFO] [stderr] 4 | use serde_json::{Result, Value}; [INFO] [stderr] | ^^^^^^ ^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `reqwest::async_impl::body::Body: std::convert::From<&std::string::String>` is not satisfied [INFO] [stderr] --> src/main.rs:36:10 [INFO] [stderr] | [INFO] [stderr] 36 | .body(&query_params) [INFO] [stderr] | ^^^^ the trait `std::convert::From<&std::string::String>` is not implemented for `reqwest::async_impl::body::Body` [INFO] [stderr] | [INFO] [stderr] = help: the following implementations were found: [INFO] [stderr] > [INFO] [stderr] > [INFO] [stderr] > [INFO] [stderr] > [INFO] [stderr] and 2 others [INFO] [stderr] = note: required because of the requirements on the impl of `std::convert::Into` for `&std::string::String` [INFO] [stderr] [INFO] [stderr] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stderr] --> src/main.rs:34:15 [INFO] [stderr] | [INFO] [stderr] 7 | / fn main() { [INFO] [stderr] 8 | | let home_dir = match std::env::var("HOME") { [INFO] [stderr] 9 | | Ok(val) => val, [INFO] [stderr] 10 | | Err(e) => panic!(e) [INFO] [stderr] ... | [INFO] [stderr] 34 | | let res = Client::new() [INFO] [stderr] | |_______________^ [INFO] [stderr] 35 | || .post("url") [INFO] [stderr] 36 | || .body(&query_params) [INFO] [stderr] 37 | || .header("Content-Type", "www/url-form-encoded") [INFO] [stderr] 38 | || .send() [INFO] [stderr] 39 | || .await? [INFO] [stderr] | ||_______________^ cannot use the `?` operator in a function that returns `()` [INFO] [stderr] ... | [INFO] [stderr] 42 | | println!("{}", res); [INFO] [stderr] 43 | | } [INFO] [stderr] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stderr] = note: required by `std::ops::Try::from_error` [INFO] [stderr] [INFO] [stderr] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stderr] --> src/main.rs:34:15 [INFO] [stderr] | [INFO] [stderr] 7 | / fn main() { [INFO] [stderr] 8 | | let home_dir = match std::env::var("HOME") { [INFO] [stderr] 9 | | Ok(val) => val, [INFO] [stderr] 10 | | Err(e) => panic!(e) [INFO] [stderr] ... | [INFO] [stderr] 34 | | let res = Client::new() [INFO] [stderr] | |_______________^ [INFO] [stderr] 35 | || .post("url") [INFO] [stderr] 36 | || .body(&query_params) [INFO] [stderr] 37 | || .header("Content-Type", "www/url-form-encoded") [INFO] [stderr] ... || [INFO] [stderr] 40 | || .text() [INFO] [stderr] 41 | || .await?; [INFO] [stderr] | ||_______________^ cannot use the `?` operator in a function that returns `()` [INFO] [stderr] 42 | | println!("{}", res); [INFO] [stderr] 43 | | } [INFO] [stderr] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stderr] = note: required by `std::ops::Try::from_error` [INFO] [stderr] [INFO] [stderr] error: aborting due to 5 previous errors; 2 warnings emitted [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0277, E0728. [INFO] [stderr] For more information about an error, try `rustc --explain E0277`. [INFO] [stderr] error: could not compile `jwt`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "735a36597198d190317f20eff6f9f135abcf5e691a2a741b150959bd088d5392"` [INFO] running `"docker" "rm" "-f" "735a36597198d190317f20eff6f9f135abcf5e691a2a741b150959bd088d5392"` [INFO] [stdout] 735a36597198d190317f20eff6f9f135abcf5e691a2a741b150959bd088d5392