[INFO] updating cached repository Celeo/reddit-rust [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/Celeo/reddit-rust [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/Celeo/reddit-rust" "work/ex/beta-1.37-6/sources/1.36.0/gh/Celeo/reddit-rust"` [INFO] [stderr] Cloning into 'work/ex/beta-1.37-6/sources/1.36.0/gh/Celeo/reddit-rust'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/Celeo/reddit-rust" "work/ex/beta-1.37-6/sources/beta-2019-07-23/gh/Celeo/reddit-rust"` [INFO] [stderr] Cloning into 'work/ex/beta-1.37-6/sources/beta-2019-07-23/gh/Celeo/reddit-rust'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] dee5881d80e2bd2d77d566b44b5a2bba52aab8da [INFO] sha for GitHub repo Celeo/reddit-rust: dee5881d80e2bd2d77d566b44b5a2bba52aab8da [INFO] validating manifest of Celeo/reddit-rust on toolchain 1.36.0 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.36.0" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of Celeo/reddit-rust on toolchain beta-2019-07-23 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-07-23" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing Celeo/reddit-rust [INFO] finished frobbing Celeo/reddit-rust [INFO] frobbed toml for Celeo/reddit-rust written to work/ex/beta-1.37-6/sources/1.36.0/gh/Celeo/reddit-rust/Cargo.toml [INFO] started frobbing Celeo/reddit-rust [INFO] finished frobbing Celeo/reddit-rust [INFO] frobbed toml for Celeo/reddit-rust written to work/ex/beta-1.37-6/sources/beta-2019-07-23/gh/Celeo/reddit-rust/Cargo.toml [INFO] crate Celeo/reddit-rust already has a lockfile, it will not be regenerated [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.36.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-07-23" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] testing Celeo/reddit-rust against beta-2019-07-23 for beta-1.37-6 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.37-6/worker-1/beta-2019-07-23:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.37-6/sources/beta-2019-07-23/gh/Celeo/reddit-rust:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+beta-2019-07-23" "build" "--frozen"` [INFO] [stdout] 58689dd5c68718b85152e16ee2503dc76c13a276168f2ae506a9a4b15b5938f5 [INFO] running `"docker" "start" "-a" "58689dd5c68718b85152e16ee2503dc76c13a276168f2ae506a9a4b15b5938f5"` [INFO] [stderr] Compiling log-mdc v0.1.0 [INFO] [stderr] Compiling backtrace v0.3.24 [INFO] [stderr] Compiling thread-id v3.3.0 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Compiling log v0.4.6 [INFO] [stderr] Compiling serde-value v0.5.3 [INFO] [stderr] Compiling serde_yaml v0.8.9 [INFO] [stderr] Compiling tokio-io v0.1.12 [INFO] [stderr] Compiling mio v0.6.18 [INFO] [stderr] Compiling tokio-threadpool v0.1.14 [INFO] [stderr] Compiling want v0.0.6 [INFO] [stderr] Compiling native-tls v0.2.3 [INFO] [stderr] Compiling chrono v0.4.6 [INFO] [stderr] Compiling error-chain v0.12.1 [INFO] [stderr] Compiling failure v0.1.5 [INFO] [stderr] Compiling h2 v0.1.20 [INFO] [stderr] Compiling publicsuffix v1.5.2 [INFO] [stderr] Compiling tokio-reactor v0.1.9 [INFO] [stderr] Compiling cookie_store v0.7.0 [INFO] [stderr] Compiling log4rs v0.8.3 [INFO] [stderr] Compiling tokio-tcp v0.1.3 [INFO] [stderr] Compiling tokio v0.1.20 [INFO] [stderr] Compiling hyper v0.12.29 [INFO] [stderr] Compiling hyper-tls v0.3.2 [INFO] [stderr] Compiling reqwest v0.9.17 [INFO] [stderr] Compiling reddit_api v0.1.0 (/opt/crater/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 26s [INFO] running `"docker" "inspect" "58689dd5c68718b85152e16ee2503dc76c13a276168f2ae506a9a4b15b5938f5"` [INFO] running `"docker" "rm" "-f" "58689dd5c68718b85152e16ee2503dc76c13a276168f2ae506a9a4b15b5938f5"` [INFO] [stdout] 58689dd5c68718b85152e16ee2503dc76c13a276168f2ae506a9a4b15b5938f5 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.37-6/worker-1/beta-2019-07-23:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.37-6/sources/beta-2019-07-23/gh/Celeo/reddit-rust:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+beta-2019-07-23" "test" "--frozen" "--no-run"` [INFO] [stdout] 5adb7d428328fa2a3249b5e296911e954de24c56978f72d1fed788125fbb4c2a [INFO] running `"docker" "start" "-a" "5adb7d428328fa2a3249b5e296911e954de24c56978f72d1fed788125fbb4c2a"` [INFO] [stderr] Compiling winapi v0.3.7 [INFO] [stderr] Compiling tempfile v3.0.8 [INFO] [stderr] Compiling cgmath v0.16.1 [INFO] [stderr] Compiling winconsole v0.10.0 [INFO] [stderr] Compiling colored v1.8.0 [INFO] [stderr] Compiling mockito v0.17.1 [INFO] [stderr] Compiling reddit_api v0.1.0 (/opt/crater/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 23.40s [INFO] running `"docker" "inspect" "5adb7d428328fa2a3249b5e296911e954de24c56978f72d1fed788125fbb4c2a"` [INFO] running `"docker" "rm" "-f" "5adb7d428328fa2a3249b5e296911e954de24c56978f72d1fed788125fbb4c2a"` [INFO] [stdout] 5adb7d428328fa2a3249b5e296911e954de24c56978f72d1fed788125fbb4c2a [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.37-6/worker-1/beta-2019-07-23:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.37-6/sources/beta-2019-07-23/gh/Celeo/reddit-rust:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+beta-2019-07-23" "test" "--frozen"` [INFO] [stdout] 0c05f496f8f611112c695eaedf4bc1b8d78887533929e1a6e77f56281365fdd1 [INFO] running `"docker" "start" "-a" "0c05f496f8f611112c695eaedf4bc1b8d78887533929e1a6e77f56281365fdd1"` [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.22s [INFO] [stdout] [INFO] [stdout] running 10 tests [INFO] [stderr] Running /opt/crater/target/debug/deps/reddit_api-ea99ea9aa8bfc811 [INFO] [stdout] test tests::load_config_from_disk ... ok [INFO] [stdout] test tests::access_token_response_serialize ... ok [INFO] [stdout] test errors::tests::from_string ... ok [INFO] [stdout] test errors::tests::display_with_source ... ok [INFO] [stdout] test errors::tests::display_no_source ... ok [INFO] [stdout] test query_listing::tests::simple ... ok [INFO] [stdout] test query_listing::tests::with_builders ... ok [INFO] [stdout] test tests::do_login ... ok [INFO] [stdout] test tests::new_api ... ok [INFO] [stdout] test tests::query_listing ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] Running /opt/crater/target/debug/deps/reddit_api_bin-f513a5c2d38d5157 [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 [INFO] [stdout] [INFO] [stderr] Doc-tests reddit_api [INFO] [stdout] [INFO] [stdout] running 9 tests [INFO] [stdout] test src/lib.rs - Api::new (line 110) ... FAILED [INFO] [stdout] test src/lib.rs - Api::search_for_subreddit (line 354) ... FAILED [INFO] [stdout] test src/query_listing.rs - query_listing (line 12) ... FAILED [INFO] [stdout] test src/lib.rs - Config::load_config (line 79) ... FAILED [INFO] [stdout] test src/query_listing.rs - query_listing (line 6) ... FAILED [INFO] [stdout] test src/lib.rs - Api::query (line 238) ... FAILED [INFO] [stdout] test src/lib.rs - Api::query (line 247) ... FAILED [INFO] [stdout] test src/lib.rs - Api::do_login (line 132) ... FAILED [INFO] [stdout] test src/lib.rs - Api::query_listing (line 292) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - Api::new (line 110) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Config` [INFO] [stdout] --> src/lib.rs:111:14 [INFO] [stdout] | [INFO] [stdout] 3 | let config = Config::load_config().expect("Could not load config"); [INFO] [stdout] | ^^^^^^ use of undeclared type or module `Config` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Api` [INFO] [stdout] --> src/lib.rs:112:15 [INFO] [stdout] | [INFO] [stdout] 4 | let mut api = Api::new(config); [INFO] [stdout] | ^^^ use of undeclared type or module `Api` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Api::search_for_subreddit (line 354) stdout ---- [INFO] [stdout] error: expected one of `.`, `;`, `?`, or an operator, found `}` [INFO] [stdout] --> src/lib.rs:359:1 [INFO] [stdout] | [INFO] [stdout] 6 | } [INFO] [stdout] | - expected one of `.`, `;`, `?`, or an operator here [INFO] [stdout] 7 | } [INFO] [stdout] | ^ unexpected token [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/query_listing.rs - query_listing (line 12) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `QueryListingRequest` [INFO] [stdout] --> src/query_listing.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 3 | let ql = QueryListingRequest::new("r/rust/hot", 25, 2) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared type or module `QueryListingRequest` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Config::load_config (line 79) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Config` [INFO] [stdout] --> src/lib.rs:80:14 [INFO] [stdout] | [INFO] [stdout] 3 | let config = Config::load_config("config.json")?; [INFO] [stdout] | ^^^^^^ use of undeclared type or module `Config` [INFO] [stdout] [INFO] [stdout] 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] [stdout] --> src/lib.rs:80:14 [INFO] [stdout] | [INFO] [stdout] 3 | let config = Config::load_config("config.json")?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/query_listing.rs - query_listing (line 6) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `QueryListingRequest` [INFO] [stdout] --> src/query_listing.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 3 | let ql = QueryListingRequest::new("r/rust/hot", 1, 1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared type or module `QueryListingRequest` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Api::query (line 238) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `api` in this scope [INFO] [stdout] --> src/lib.rs:239:7 [INFO] [stdout] | [INFO] [stdout] 3 | match api.query("GET", "some/endpoint", None, None) { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Api::query (line 247) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `HashMap` [INFO] [stdout] --> src/lib.rs:248:21 [INFO] [stdout] | [INFO] [stdout] 3 | let mut post_data = HashMap::new(); [INFO] [stdout] | ^^^^^^^ use of undeclared type or module `HashMap` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `api` in this scope [INFO] [stdout] --> src/lib.rs:250:7 [INFO] [stdout] | [INFO] [stdout] 5 | match api.query("POST", "api/save", None, Some(post_data)) { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Api::do_login (line 132) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `api` in this scope [INFO] [stdout] --> src/lib.rs:133:19 [INFO] [stdout] | [INFO] [stdout] 3 | if let Err(err) = api.do_login() { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Api::query_listing (line 292) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `QueryListingRequest` [INFO] [stdout] --> src/lib.rs:293:10 [INFO] [stdout] | [INFO] [stdout] 3 | let ql = QueryListingRequest::new("r/rust/hot", 1, 1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared type or module `QueryListingRequest` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Value` in this scope [INFO] [stdout] --> src/lib.rs:294:15 [INFO] [stdout] | [INFO] [stdout] 4 | let data: Vec = api.query_listing(ql).unwrap(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] help: possible candidates are found in other modules, you can import them into scope [INFO] [stdout] | [INFO] [stdout] 2 | use reddit_api::Value; [INFO] [stdout] | [INFO] [stdout] 2 | use serde_json::Value; [INFO] [stdout] | [INFO] [stdout] 2 | use serde_json::value::Value; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `api` in this scope [INFO] [stdout] --> src/lib.rs:294:24 [INFO] [stdout] | [INFO] [stdout] 4 | let data: Vec = api.query_listing(ql).unwrap(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - Api::do_login (line 132) [INFO] [stdout] src/lib.rs - Api::new (line 110) [INFO] [stdout] src/lib.rs - Api::query (line 238) [INFO] [stdout] src/lib.rs - Api::query (line 247) [INFO] [stdout] src/lib.rs - Api::query_listing (line 292) [INFO] [stdout] src/lib.rs - Api::search_for_subreddit (line 354) [INFO] [stdout] src/lib.rs - Config::load_config (line 79) [INFO] [stdout] src/query_listing.rs - query_listing (line 12) [INFO] [stdout] src/query_listing.rs - query_listing (line 6) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 9 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `"docker" "inspect" "0c05f496f8f611112c695eaedf4bc1b8d78887533929e1a6e77f56281365fdd1"` [INFO] running `"docker" "rm" "-f" "0c05f496f8f611112c695eaedf4bc1b8d78887533929e1a6e77f56281365fdd1"` [INFO] [stdout] 0c05f496f8f611112c695eaedf4bc1b8d78887533929e1a6e77f56281365fdd1