[INFO] updating cached repository https://github.com/erikjohnston/rust-matrix-state [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] 7b817b15b83ee3f626367a0e2be48eab333cd4f3 [INFO] checking erikjohnston/rust-matrix-state against master#bd0bacc694d7d8175804bb6f690cb846bfa4a9ee for pr-71665 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ferikjohnston%2Frust-matrix-state" "/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/erikjohnston/rust-matrix-state on toolchain bd0bacc694d7d8175804bb6f690cb846bfa4a9ee [INFO] running `"/workspace/cargo-home/bin/cargo" "+bd0bacc694d7d8175804bb6f690cb846bfa4a9ee" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/erikjohnston/rust-matrix-state [INFO] finished tweaking git repo https://github.com/erikjohnston/rust-matrix-state [INFO] tweaked toml for git repo https://github.com/erikjohnston/rust-matrix-state written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/erikjohnston/rust-matrix-state already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+bd0bacc694d7d8175804bb6f690cb846bfa4a9ee" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [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" "+bd0bacc694d7d8175804bb6f690cb846bfa4a9ee" "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] c11f7d5d8b20d2d624565ccf56effaa947c46dbbb4853b20a555313b2e063165 [INFO] running `"docker" "start" "-a" "c11f7d5d8b20d2d624565ccf56effaa947c46dbbb4853b20a555313b2e063165"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling typenum v1.10.0 [INFO] [stderr] Compiling cc v1.0.10 [INFO] [stderr] Checking matches v0.1.6 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Checking cfg-if v0.1.2 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Checking arrayref v0.3.4 [INFO] [stderr] Checking smallvec v0.6.0 [INFO] [stderr] Checking unicode-normalization v0.1.5 [INFO] [stderr] Checking unicode-width v0.1.4 [INFO] [stderr] Checking md5 v0.3.7 [INFO] [stderr] Checking utf8-ranges v1.0.0 [INFO] [stderr] Checking fallible-iterator v0.1.4 [INFO] [stderr] Checking lazy_static v0.2.11 [INFO] [stderr] Compiling heapsize v0.4.2 [INFO] [stderr] Checking rustc-demangle v0.1.7 [INFO] [stderr] Checking dtoa v0.4.2 [INFO] [stderr] Checking num-traits v0.2.2 [INFO] [stderr] Checking sha1 v0.6.0 [INFO] [stderr] Checking rand v0.4.2 [INFO] [stderr] Compiling synom v0.11.3 [INFO] [stderr] Checking memchr v1.0.2 [INFO] [stderr] Checking termios v0.2.2 [INFO] [stderr] Checking log v0.4.1 [INFO] [stderr] Checking socket2 v0.3.4 [INFO] [stderr] Checking block-buffer v0.3.3 [INFO] [stderr] Checking unreachable v1.0.0 [INFO] [stderr] Checking base64 v0.6.0 [INFO] [stderr] Checking regex-syntax v0.5.3 [INFO] [stderr] Checking unicode-bidi v0.3.4 [INFO] [stderr] Compiling proc-macro2 v0.3.5 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Checking textwrap v0.9.0 [INFO] [stderr] Checking clicolors-control v0.2.0 [INFO] [stderr] Compiling syn v0.11.11 [INFO] [stderr] Checking thread_local v0.3.5 [INFO] [stderr] Checking serde_json v1.0.13 [INFO] [stderr] Checking stringprep v0.1.2 [INFO] [stderr] Checking rand v0.3.22 [INFO] [stderr] Checking parking_lot_core v0.2.13 [INFO] [stderr] Checking clap v2.31.2 [INFO] [stderr] Compiling rustc_version v0.2.2 [INFO] [stderr] Compiling quote v0.5.1 [INFO] [stderr] Compiling backtrace-sys v0.1.16 [INFO] [stderr] Checking parking_lot v0.5.4 [INFO] [stderr] Compiling syn v0.13.1 [INFO] [stderr] Checking generic-array v0.9.0 [INFO] [stderr] Compiling procinfo v0.4.2 [INFO] [stderr] Compiling synstructure v0.6.1 [INFO] [stderr] Compiling synstructure v0.5.2 [INFO] [stderr] Checking digest v0.7.2 [INFO] [stderr] Checking crypto-mac v0.5.2 [INFO] [stderr] Checking sha2 v0.7.0 [INFO] [stderr] Checking hmac v0.5.0 [INFO] [stderr] Checking regex v0.2.10 [INFO] [stderr] Checking postgres-protocol v0.3.2 [INFO] [stderr] Checking postgres-shared v0.4.1 [INFO] [stderr] Compiling failure_derive v0.1.1 [INFO] [stderr] Compiling heapsize_derive v0.1.4 [INFO] [stderr] Checking console v0.6.1 [INFO] [stderr] Compiling serde_derive_internals v0.23.0 [INFO] [stderr] Checking postgres v0.15.2 [INFO] [stderr] Checking indicatif v0.9.0 [INFO] [stderr] Compiling serde_derive v1.0.37 [INFO] [stderr] Checking backtrace v0.3.6 [INFO] [stderr] Checking failure v0.1.1 [INFO] [stderr] Checking rust-state v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/state_map.rs:365:41 [INFO] [stderr] | [INFO] [stderr] 365 | fn from_iter>(iter: T) -> StateMap { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/state_map.rs:380:41 [INFO] [stderr] | [INFO] [stderr] 380 | fn from_iter>(iter: T) -> StateMap { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/state_map.rs:365:41 [INFO] [stderr] | [INFO] [stderr] 365 | fn from_iter>(iter: T) -> StateMap { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/state_map.rs:380:41 [INFO] [stderr] | [INFO] [stderr] 380 | fn from_iter>(iter: T) -> StateMap { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:324:33 [INFO] [stderr] | [INFO] [stderr] 324 | let a = if let Some(mut i) = adjacents.get_mut(p as &str) { [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/state_map.rs:403:49 [INFO] [stderr] | [INFO] [stderr] 403 | let res = state_map.add_or_remove(t, s, 2); [INFO] [stderr] | ^ [INFO] [stderr] | | [INFO] [stderr] | expected `&{integer}`, found integer [INFO] [stderr] | help: consider borrowing here: `&2` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/state.rs:23:25 [INFO] [stderr] | [INFO] [stderr] 23 | if let Some(mut v) = conflicted.get_mut(t, s) { [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/state.rs:33:21 [INFO] [stderr] | [INFO] [stderr] 33 | let mut v = conflicted.get_mut_or_default(t, s); [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/state_map.rs:404:9 [INFO] [stderr] | [INFO] [stderr] 404 | assert_eq!(res, Some((2, 1))); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected integer, found tuple [INFO] [stderr] | [INFO] [stderr] = note: expected enum `std::option::Option<{integer}>` [INFO] [stderr] found enum `std::option::Option<({integer}, {integer})>` [INFO] [stderr] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/state_map.rs:408:49 [INFO] [stderr] | [INFO] [stderr] 408 | let res = state_map.add_or_remove(t, s, 1); [INFO] [stderr] | ^ [INFO] [stderr] | | [INFO] [stderr] | expected `&{integer}`, found integer [INFO] [stderr] | help: consider borrowing here: `&1` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/state_map.rs:411:49 [INFO] [stderr] | [INFO] [stderr] 411 | let res = state_map.add_or_remove(t, s, 1); [INFO] [stderr] | ^ [INFO] [stderr] | | [INFO] [stderr] | expected `&{integer}`, found integer [INFO] [stderr] | help: consider borrowing here: `&1` [INFO] [stderr] [INFO] [stderr] warning: 5 warnings emitted [INFO] [stderr] [INFO] [stderr] error: aborting due to 4 previous errors; 2 warnings emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0308`. [INFO] [stderr] error: could not compile `rust-state`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "c11f7d5d8b20d2d624565ccf56effaa947c46dbbb4853b20a555313b2e063165"` [INFO] running `"docker" "rm" "-f" "c11f7d5d8b20d2d624565ccf56effaa947c46dbbb4853b20a555313b2e063165"` [INFO] [stdout] c11f7d5d8b20d2d624565ccf56effaa947c46dbbb4853b20a555313b2e063165