[INFO] cloning repository https://github.com/shiver/rust-trends [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/shiver/rust-trends" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshiver%2Frust-trends"` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshiver%2Frust-trends'... [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] cd5385b92ddf905944fc21dc97c2023dc58c7934 [INFO] checking shiver/rust-trends against master#2748a9fd93dd1a00a4521f4f16de5befbf77f6cd for pr-62262-1 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshiver%2Frust-trends" "/workspace/builds/worker-2/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/shiver/rust-trends on toolchain 2748a9fd93dd1a00a4521f4f16de5befbf77f6cd [INFO] running `"/workspace/cargo-home/bin/cargo" "+2748a9fd93dd1a00a4521f4f16de5befbf77f6cd" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/shiver/rust-trends [INFO] finished tweaking git repo https://github.com/shiver/rust-trends [INFO] tweaked toml for git repo https://github.com/shiver/rust-trends written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/shiver/rust-trends already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+2748a9fd93dd1a00a4521f4f16de5befbf77f6cd" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] error: the lock file /workspace/builds/worker-2/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] the lockfile is outdated, regenerating it [INFO] running `"/workspace/cargo-home/bin/cargo" "+2748a9fd93dd1a00a4521f4f16de5befbf77f6cd" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/workspace/cargo-home/bin/cargo" "+2748a9fd93dd1a00a4521f4f16de5befbf77f6cd" "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-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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=forbid" "-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" "+2748a9fd93dd1a00a4521f4f16de5befbf77f6cd" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 28785afcc463a14dd51e613bbd01c187038df2209bfda6e1823f92b10939ab66 [INFO] running `"docker" "start" "-a" "28785afcc463a14dd51e613bbd01c187038df2209bfda6e1823f92b10939ab66"` [INFO] [stderr] Checking tokio-reactor v0.1.10 [INFO] [stderr] Checking tokio-threadpool v0.1.16 [INFO] [stderr] Checking tokio v0.1.22 [INFO] [stderr] Checking tokio-tcp v0.1.3 [INFO] [stderr] Checking hyper v0.12.35 [INFO] [stderr] Checking rust-trends v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] error[E0432]: unresolved imports `hyper::header::Headers`, `hyper::header::UserAgent` [INFO] [stderr] --> src/main.rs:26:21 [INFO] [stderr] | [INFO] [stderr] 26 | use hyper::header::{Headers, UserAgent}; [INFO] [stderr] | ^^^^^^^ ^^^^^^^^^ no `UserAgent` in `header` [INFO] [stderr] | | [INFO] [stderr] | no `Headers` in `header` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `rusqlite::SqliteConnection`, `rusqlite::SqliteError`, `rusqlite::SqliteRows` [INFO] [stderr] --> src/main.rs:29:16 [INFO] [stderr] | [INFO] [stderr] 29 | use rusqlite::{SqliteConnection, SqliteError, SqliteRows}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^ no `SqliteRows` in the root [INFO] [stderr] | | | [INFO] [stderr] | | no `SqliteError` in the root [INFO] [stderr] | no `SqliteConnection` in the root [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `SqliteConnection` in `rusqlite` [INFO] [stderr] --> src/main.rs:41:32 [INFO] [stderr] | [INFO] [stderr] 41 | let result = rusqlite::SqliteConnection::open(STORE_PATH); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ could not find `SqliteConnection` in `rusqlite` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `hyper::header::Headers`, `hyper::header::UserAgent` [INFO] [stderr] --> src/main.rs:26:21 [INFO] [stderr] | [INFO] [stderr] 26 | use hyper::header::{Headers, UserAgent}; [INFO] [stderr] | ^^^^^^^ ^^^^^^^^^ no `UserAgent` in `header` [INFO] [stderr] | | [INFO] [stderr] | no `Headers` in `header` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `rusqlite::SqliteConnection`, `rusqlite::SqliteError`, `rusqlite::SqliteRows` [INFO] [stderr] --> src/main.rs:29:16 [INFO] [stderr] | [INFO] [stderr] 29 | use rusqlite::{SqliteConnection, SqliteError, SqliteRows}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^ no `SqliteRows` in the root [INFO] [stderr] | | | [INFO] [stderr] | | no `SqliteError` in the root [INFO] [stderr] | no `SqliteConnection` in the root [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `SqliteConnection` in `rusqlite` [INFO] [stderr] --> src/main.rs:41:32 [INFO] [stderr] | [INFO] [stderr] 41 | let result = rusqlite::SqliteConnection::open(STORE_PATH); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ could not find `SqliteConnection` in `rusqlite` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `UTC` [INFO] [stderr] --> src/main.rs:88:19 [INFO] [stderr] | [INFO] [stderr] 88 | date: UTC::now(), [INFO] [stderr] | ^^^ use of undeclared type or module `UTC` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `UTC` in this scope [INFO] [stderr] --> src/main.rs:79:20 [INFO] [stderr] | [INFO] [stderr] 79 | date: DateTime, [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/main.rs:64:20 [INFO] [stderr] | [INFO] [stderr] 64 | let rows = try!(self.query("SELECT version FROM _trends")); [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `UTC` [INFO] [stderr] --> src/main.rs:88:19 [INFO] [stderr] | [INFO] [stderr] 88 | date: UTC::now(), [INFO] [stderr] | ^^^ use of undeclared type or module `UTC` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `UTC` in this scope [INFO] [stderr] --> src/main.rs:79:20 [INFO] [stderr] | [INFO] [stderr] 79 | date: DateTime, [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/main.rs:64:20 [INFO] [stderr] | [INFO] [stderr] 64 | let rows = try!(self.query("SELECT version FROM _trends")); [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 2 parameters but 1 parameter was supplied [INFO] [stderr] --> src/main.rs:67:32 [INFO] [stderr] | [INFO] [stderr] 67 | None => return Err(Error::new(ErrorKind::NotFound)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 2 parameters [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 2 parameters but 1 parameter was supplied [INFO] [stderr] --> src/main.rs:67:32 [INFO] [stderr] | [INFO] [stderr] 67 | None => return Err(Error::new(ErrorKind::NotFound)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 2 parameters [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `find` found for type `&serde_json::Value` in the current scope [INFO] [stderr] --> src/main.rs:85:38 [INFO] [stderr] | [INFO] [stderr] 85 | name: str_to_string(data.find("full_name").unwrap().as_string().unwrap()), [INFO] [stderr] | ^^^^ method not found in `&serde_json::Value` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `find` found for type `&serde_json::Value` in the current scope [INFO] [stderr] --> src/main.rs:86:37 [INFO] [stderr] | [INFO] [stderr] 86 | url: str_to_string(data.find("html_url").unwrap().as_string().unwrap()), [INFO] [stderr] | ^^^^ method not found in `&serde_json::Value` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `find` found for type `&serde_json::Value` in the current scope [INFO] [stderr] --> src/main.rs:87:45 [INFO] [stderr] | [INFO] [stderr] 87 | description: str_to_string(data.find("description").unwrap().as_string().unwrap()), [INFO] [stderr] | ^^^^ method not found in `&serde_json::Value` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `find` found for type `&serde_json::Value` in the current scope [INFO] [stderr] --> src/main.rs:85:38 [INFO] [stderr] | [INFO] [stderr] 85 | name: str_to_string(data.find("full_name").unwrap().as_string().unwrap()), [INFO] [stderr] | ^^^^ method not found in `&serde_json::Value` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `find` found for type `&serde_json::Value` in the current scope [INFO] [stderr] --> src/main.rs:86:37 [INFO] [stderr] | [INFO] [stderr] 86 | url: str_to_string(data.find("html_url").unwrap().as_string().unwrap()), [INFO] [stderr] | ^^^^ method not found in `&serde_json::Value` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `find` found for type `&serde_json::Value` in the current scope [INFO] [stderr] --> src/main.rs:87:45 [INFO] [stderr] | [INFO] [stderr] 87 | description: str_to_string(data.find("description").unwrap().as_string().unwrap()), [INFO] [stderr] | ^^^^ method not found in `&serde_json::Value` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:113:41 [INFO] [stderr] | [INFO] [stderr] 113 | let mut response = match client.get(&*url).headers(headers).send() { [INFO] [stderr] | ^^^^^ expected struct `hyper::Uri`, found &str [INFO] [stderr] | [INFO] [stderr] = note: expected type `hyper::Uri` [INFO] [stderr] found type `&str` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `headers` found for type `hyper::client::ResponseFuture` in the current scope [INFO] [stderr] --> src/main.rs:113:48 [INFO] [stderr] | [INFO] [stderr] 113 | let mut response = match client.get(&*url).headers(headers).send() { [INFO] [stderr] | ^^^^^^^ method not found in `hyper::client::ResponseFuture` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `find` found for type `serde_json::Value` in the current scope [INFO] [stderr] --> src/main.rs:143:22 [INFO] [stderr] | [INFO] [stderr] 143 | let items = json.find("items").unwrap(); [INFO] [stderr] | ^^^^ method not found in `serde_json::Value` [INFO] [stderr] [INFO] [stderr] error: aborting due to 12 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0061, E0308, E0412, E0432, E0433, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0061`. [INFO] [stderr] error: could not compile `rust-trends`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:113:41 [INFO] [stderr] | [INFO] [stderr] 113 | let mut response = match client.get(&*url).headers(headers).send() { [INFO] [stderr] | ^^^^^ expected struct `hyper::Uri`, found &str [INFO] [stderr] | [INFO] [stderr] = note: expected type `hyper::Uri` [INFO] [stderr] found type `&str` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `headers` found for type `hyper::client::ResponseFuture` in the current scope [INFO] [stderr] --> src/main.rs:113:48 [INFO] [stderr] | [INFO] [stderr] 113 | let mut response = match client.get(&*url).headers(headers).send() { [INFO] [stderr] | ^^^^^^^ method not found in `hyper::client::ResponseFuture` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `find` found for type `serde_json::Value` in the current scope [INFO] [stderr] --> src/main.rs:143:22 [INFO] [stderr] | [INFO] [stderr] 143 | let items = json.find("items").unwrap(); [INFO] [stderr] | ^^^^ method not found in `serde_json::Value` [INFO] [stderr] [INFO] [stderr] error: aborting due to 12 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0061, E0308, E0412, E0432, E0433, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0061`. [INFO] [stderr] error: could not compile `rust-trends`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "28785afcc463a14dd51e613bbd01c187038df2209bfda6e1823f92b10939ab66"` [INFO] running `"docker" "rm" "-f" "28785afcc463a14dd51e613bbd01c187038df2209bfda6e1823f92b10939ab66"` [INFO] [stdout] 28785afcc463a14dd51e613bbd01c187038df2209bfda6e1823f92b10939ab66