[INFO] updating cached repository thatlittlegit-archive/microbe [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/thatlittlegit-archive/microbe [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/thatlittlegit-archive/microbe" "work/ex/clippy-test-run/sources/stable/gh/thatlittlegit-archive/microbe"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable/gh/thatlittlegit-archive/microbe'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/thatlittlegit-archive/microbe" "work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/thatlittlegit-archive/microbe"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/thatlittlegit-archive/microbe'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] a6c9885c7d453b90111ffd31cfc3b2c8d628490d [INFO] sha for GitHub repo thatlittlegit-archive/microbe: a6c9885c7d453b90111ffd31cfc3b2c8d628490d [INFO] validating manifest of thatlittlegit-archive/microbe on toolchain stable [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of thatlittlegit-archive/microbe on toolchain stable+rustflags=-Dclippy::into_iter_on_array [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing thatlittlegit-archive/microbe [INFO] finished frobbing thatlittlegit-archive/microbe [INFO] frobbed toml for thatlittlegit-archive/microbe written to work/ex/clippy-test-run/sources/stable/gh/thatlittlegit-archive/microbe/Cargo.toml [INFO] started frobbing thatlittlegit-archive/microbe [INFO] finished frobbing thatlittlegit-archive/microbe [INFO] frobbed toml for thatlittlegit-archive/microbe written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/thatlittlegit-archive/microbe/Cargo.toml [INFO] crate thatlittlegit-archive/microbe has a lockfile. skipping [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] linting thatlittlegit-archive/microbe against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-7/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/gh/thatlittlegit-archive/microbe:/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=forbid" "-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" "+stable" "clippy" "--frozen" "--all" "--all-targets"` [INFO] [stdout] 400bcb6445ad7e3bda8aba523364f6dae8724c0ae75ba5ca524842bf7f37b1f3 [INFO] running `"docker" "start" "-a" "400bcb6445ad7e3bda8aba523364f6dae8724c0ae75ba5ca524842bf7f37b1f3"` [INFO] [stderr] Checking unicode-normalization v0.1.6 [INFO] [stderr] Checking groupable v0.2.0 [INFO] [stderr] Checking unidecode v0.3.0 [INFO] [stderr] Checking base64 v0.6.0 [INFO] [stderr] Checking log v0.3.9 [INFO] [stderr] Checking simple_logger v0.5.0 [INFO] [stderr] Checking uuid v0.6.3 [INFO] [stderr] Checking chrono v0.4.2 [INFO] [stderr] Checking regex v0.2.11 [INFO] [stderr] Checking mime v0.2.6 [INFO] [stderr] Checking mustache v0.8.2 [INFO] [stderr] Checking slugify v0.1.0 [INFO] [stderr] Checking idna v0.1.4 [INFO] [stderr] Checking url v1.7.0 [INFO] [stderr] Checking hyper v0.10.13 [INFO] [stderr] Checking nickel v0.10.1 [INFO] [stderr] Checking microbe v0.1.0 (/opt/crater/workdir) [INFO] [stderr] error[E0433]: failed to resolve: maybe a missing `extern crate microbe;`? [INFO] [stderr] --> tests/post.rs:3:9 [INFO] [stderr] | [INFO] [stderr] 3 | use microbe::constants::*; [INFO] [stderr] | ^^^^^^^ maybe a missing `extern crate microbe;`? [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `microbe` [INFO] [stderr] --> tests/post.rs:4:9 [INFO] [stderr] | [INFO] [stderr] 4 | use microbe::*; [INFO] [stderr] | ^^^^^^^ maybe a missing `extern crate microbe;`? [INFO] [stderr] [INFO] [stderr] error: cannot find macro `uuid!` in this scope [INFO] [stderr] --> tests/post.rs:96:6 [INFO] [stderr] | [INFO] [stderr] 96 | id = uuid!(constants::USERNAME).urn())) [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `DateTime` [INFO] [stderr] --> tests/post.rs:9:24 [INFO] [stderr] | [INFO] [stderr] 9 | timestamp: DateTime::from_utc( [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `DateTime` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `constants` [INFO] [stderr] --> tests/post.rs:21:18 [INFO] [stderr] | [INFO] [stderr] 21 | , link = constants::HOSTNAME)); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `constants` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `constants` [INFO] [stderr] --> tests/post.rs:64:8 [INFO] [stderr] | [INFO] [stderr] 64 | user = constants::USERNAME, [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `constants` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `constants` [INFO] [stderr] --> tests/post.rs:65:8 [INFO] [stderr] | [INFO] [stderr] 65 | link = constants::HOSTNAME, [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `constants` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Utc` [INFO] [stderr] --> tests/post.rs:66:7 [INFO] [stderr] | [INFO] [stderr] 66 | now = Utc::now().to_rfc2822())) [INFO] [stderr] | ^^^ use of undeclared type or module `Utc` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `constants` [INFO] [stderr] --> tests/post.rs:93:8 [INFO] [stderr] | [INFO] [stderr] 93 | user = constants::USERNAME, [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `constants` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `constants` [INFO] [stderr] --> tests/post.rs:94:8 [INFO] [stderr] | [INFO] [stderr] 94 | host = constants::HOSTNAME, [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `constants` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `constants` [INFO] [stderr] --> tests/post.rs:117:8 [INFO] [stderr] | [INFO] [stderr] 117 | user = constants::USERNAME, [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `constants` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `constants` [INFO] [stderr] --> tests/post.rs:118:8 [INFO] [stderr] | [INFO] [stderr] 118 | host = constants::HOSTNAME)); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `constants` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Post` in this scope [INFO] [stderr] --> tests/post.rs:6:26 [INFO] [stderr] | [INFO] [stderr] 6 | fn example_post() -> Post { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `Post` in this scope [INFO] [stderr] --> tests/post.rs:7:9 [INFO] [stderr] | [INFO] [stderr] 7 | Post { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `create_rss_from_posts` in this scope [INFO] [stderr] --> tests/post.rs:48:13 [INFO] [stderr] | [INFO] [stderr] 48 | create_rss_from_posts(&vec![example_post()]), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ did you mean `_create_rss_from_posts`? [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `create_atom_from_posts` in this scope [INFO] [stderr] --> tests/post.rs:72:13 [INFO] [stderr] | [INFO] [stderr] 72 | create_atom_from_posts(&vec![example_post()]), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ did you mean `_create_atom_from_posts`? [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `Utc` in this scope [INFO] [stderr] --> tests/post.rs:95:7 [INFO] [stderr] | [INFO] [stderr] 95 | now = Utc.timestamp(0, 0).to_rfc2822(), [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `create_json_from_posts` in this scope [INFO] [stderr] --> tests/post.rs:102:13 [INFO] [stderr] | [INFO] [stderr] 102 | create_json_from_posts(&vec![example_post()]), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ did you mean `_create_json_from_posts`? [INFO] [stderr] [INFO] [stderr] error: aborting due to 18 previous errors [INFO] [stderr] [INFO] [stderr] Some errors occurred: E0412, E0422, E0425, E0432, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0412`. [INFO] [stderr] error: Could not compile `microbe`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] warning: unused `#[macro_use]` import [INFO] [stderr] --> src/main.rs:2:1 [INFO] [stderr] | [INFO] [stderr] 2 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_imports)] on by default [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/main.rs:116:5 [INFO] [stderr] | [INFO] [stderr] 116 | return ret; [INFO] [stderr] | ^^^^^^^^^^^ help: remove `return` as shown: `ret` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::needless_return)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unused `#[macro_use]` import [INFO] [stderr] --> src/main.rs:2:1 [INFO] [stderr] | [INFO] [stderr] 2 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_imports)] on by default [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/main.rs:116:5 [INFO] [stderr] | [INFO] [stderr] 116 | return ret; [INFO] [stderr] | ^^^^^^^^^^^ help: remove `return` as shown: `ret` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::needless_return)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: single-character string constant used as pattern [INFO] [stderr] --> src/main.rs:93:32 [INFO] [stderr] | [INFO] [stderr] 93 | line.split(" ").nth(1).unwrap_or("1970-01-01T00:00+00:00"), [INFO] [stderr] | ^^^ help: try using a char instead: `' '` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::single_char_pattern)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern [INFO] [stderr] [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/main.rs:119:33 [INFO] [stderr] | [INFO] [stderr] 119 | fn create_rss_from_posts(posts: &Vec) -> String { [INFO] [stderr] | ^^^^^^^^^^ help: change this to: `&[Post]` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::ptr_arg)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/main.rs:136:34 [INFO] [stderr] | [INFO] [stderr] 136 | fn create_atom_from_posts(posts: &Vec) -> String { [INFO] [stderr] | ^^^^^^^^^^ help: change this to: `&[Post]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/main.rs:163:34 [INFO] [stderr] | [INFO] [stderr] 163 | fn create_json_from_posts(posts: &Vec) -> String { [INFO] [stderr] | ^^^^^^^^^^ help: change this to: `&[Post]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] [INFO] [stderr] warning: single-character string constant used as pattern [INFO] [stderr] --> src/main.rs:93:32 [INFO] [stderr] | [INFO] [stderr] 93 | line.split(" ").nth(1).unwrap_or("1970-01-01T00:00+00:00"), [INFO] [stderr] | ^^^ help: try using a char instead: `' '` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::single_char_pattern)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern [INFO] [stderr] [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/main.rs:119:33 [INFO] [stderr] | [INFO] [stderr] 119 | fn create_rss_from_posts(posts: &Vec) -> String { [INFO] [stderr] | ^^^^^^^^^^ help: change this to: `&[Post]` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::ptr_arg)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/main.rs:136:34 [INFO] [stderr] | [INFO] [stderr] 136 | fn create_atom_from_posts(posts: &Vec) -> String { [INFO] [stderr] | ^^^^^^^^^^ help: change this to: `&[Post]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/main.rs:163:34 [INFO] [stderr] | [INFO] [stderr] 163 | fn create_json_from_posts(posts: &Vec) -> String { [INFO] [stderr] | ^^^^^^^^^^ help: change this to: `&[Post]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] [INFO] [stderr] error: build failed [INFO] running `"docker" "inspect" "400bcb6445ad7e3bda8aba523364f6dae8724c0ae75ba5ca524842bf7f37b1f3"` [INFO] running `"docker" "rm" "-f" "400bcb6445ad7e3bda8aba523364f6dae8724c0ae75ba5ca524842bf7f37b1f3"` [INFO] [stdout] 400bcb6445ad7e3bda8aba523364f6dae8724c0ae75ba5ca524842bf7f37b1f3