[INFO] fetching crate cw-storage-plus 0.4.0... [INFO] checking cw-storage-plus-0.4.0 against try#bb9dbf1d07454a99066eabaabd5819851281494b for pr-80920 [INFO] extracting crate cw-storage-plus 0.4.0 into /workspace/builds/worker-9/source [INFO] validating manifest of crates.io crate cw-storage-plus 0.4.0 on toolchain bb9dbf1d07454a99066eabaabd5819851281494b [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+bb9dbf1d07454a99066eabaabd5819851281494b" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate cw-storage-plus 0.4.0 [INFO] finished tweaking crates.io crate cw-storage-plus 0.4.0 [INFO] tweaked toml for crates.io crate cw-storage-plus 0.4.0 written to /workspace/builds/worker-9/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+bb9dbf1d07454a99066eabaabd5819851281494b" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+bb9dbf1d07454a99066eabaabd5819851281494b" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+bb9dbf1d07454a99066eabaabd5819851281494b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 767a67543e930934c071adb2f248e27910e7cd6f30864e16c02b13a5e0223219 [INFO] running `Command { std: "docker" "start" "-a" "767a67543e930934c071adb2f248e27910e7cd6f30864e16c02b13a5e0223219", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "767a67543e930934c071adb2f248e27910e7cd6f30864e16c02b13a5e0223219", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "767a67543e930934c071adb2f248e27910e7cd6f30864e16c02b13a5e0223219", kill_on_drop: false }` [INFO] [stdout] 767a67543e930934c071adb2f248e27910e7cd6f30864e16c02b13a5e0223219 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "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" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+bb9dbf1d07454a99066eabaabd5819851281494b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 76ea58e7b6da6184852c5c0bbbf4b32f43ad1c29d80da4785c301022b8a598ac [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "76ea58e7b6da6184852c5c0bbbf4b32f43ad1c29d80da4785c301022b8a598ac", kill_on_drop: false }` [INFO] [stderr] Checking cw-storage-plus v0.4.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/item.rs:157:22 [INFO] [stdout] | [INFO] [stdout] 157 | let output = CONFIG.update(&mut store, |mut c| -> StdResult<_> { [INFO] [stdout] | ______________________^ [INFO] [stdout] 158 | | c.max_tokens *= 2; [INFO] [stdout] 159 | | Ok(c) [INFO] [stdout] 160 | | }); [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(const_item_mutation)]` on by default [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: mutable reference created due to call to this method [INFO] [stdout] --> src/item.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | / pub fn update(&mut self, store: &mut dyn Storage, action: A) -> Result [INFO] [stdout] 65 | | where [INFO] [stdout] 66 | | A: FnOnce(T) -> Result, [INFO] [stdout] 67 | | E: From, [INFO] [stdout] | |__________________________^ [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/item.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | const CONFIG: Item = Item::new("config"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/item.rs:179:9 [INFO] [stdout] | [INFO] [stdout] 179 | / CONFIG [INFO] [stdout] 180 | | .update(&mut store, |mut c| -> StdResult<_> { [INFO] [stdout] 181 | | old_max_tokens = c.max_tokens; [INFO] [stdout] 182 | | c.max_tokens *= 2; [INFO] [stdout] 183 | | Ok(c) [INFO] [stdout] 184 | | }) [INFO] [stdout] | |______________^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: mutable reference created due to call to this method [INFO] [stdout] --> src/item.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | / pub fn update(&mut self, store: &mut dyn Storage, action: A) -> Result [INFO] [stdout] 65 | | where [INFO] [stdout] 66 | | A: FnOnce(T) -> Result, [INFO] [stdout] 67 | | E: From, [INFO] [stdout] | |__________________________^ [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/item.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | const CONFIG: Item = Item::new("config"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/item.rs:199:22 [INFO] [stdout] | [INFO] [stdout] 199 | let output = CONFIG.update(&mut store, &|_c| Err(StdError::underflow(4, 7))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: mutable reference created due to call to this method [INFO] [stdout] --> src/item.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | / pub fn update(&mut self, store: &mut dyn Storage, action: A) -> Result [INFO] [stdout] 65 | | where [INFO] [stdout] 66 | | A: FnOnce(T) -> Result, [INFO] [stdout] 67 | | E: From, [INFO] [stdout] | |__________________________^ [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/item.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | const CONFIG: Item = Item::new("config"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/item.rs:229:19 [INFO] [stdout] | [INFO] [stdout] 229 | let res = CONFIG.update(&mut store, |mut c| { [INFO] [stdout] | ___________________^ [INFO] [stdout] 230 | | if c.max_tokens > 5000 { [INFO] [stdout] 231 | | return Err(MyError::Foo); [INFO] [stdout] 232 | | } [INFO] [stdout] ... | [INFO] [stdout] 240 | | Ok(c) [INFO] [stdout] 241 | | }); [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: mutable reference created due to call to this method [INFO] [stdout] --> src/item.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | / pub fn update(&mut self, store: &mut dyn Storage, action: A) -> Result [INFO] [stdout] 65 | | where [INFO] [stdout] 66 | | A: FnOnce(T) -> Result, [INFO] [stdout] 67 | | E: From, [INFO] [stdout] | |__________________________^ [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/item.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | const CONFIG: Item = Item::new("config"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/item.rs:267:22 [INFO] [stdout] | [INFO] [stdout] 267 | let output = CONFIG.update(&mut store, |mut c| -> StdResult<_> { [INFO] [stdout] | ______________________^ [INFO] [stdout] 268 | | c.max_tokens *= 2; [INFO] [stdout] 269 | | Ok(c) [INFO] [stdout] 270 | | })?; [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: mutable reference created due to call to this method [INFO] [stdout] --> src/item.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | / pub fn update(&mut self, store: &mut dyn Storage, action: A) -> Result [INFO] [stdout] 65 | | where [INFO] [stdout] 66 | | A: FnOnce(T) -> Result, [INFO] [stdout] 67 | | E: From, [INFO] [stdout] | |__________________________^ [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/item.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | const CONFIG: Item = Item::new("config"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/item.rs:274:22 [INFO] [stdout] | [INFO] [stdout] 274 | let failed = CONFIG.update(&mut store, |_| -> StdResult<_> { [INFO] [stdout] | ______________________^ [INFO] [stdout] 275 | | Err(StdError::generic_err("failure mode")) [INFO] [stdout] 276 | | }); [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: mutable reference created due to call to this method [INFO] [stdout] --> src/item.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | / pub fn update(&mut self, store: &mut dyn Storage, action: A) -> Result [INFO] [stdout] 65 | | where [INFO] [stdout] 66 | | A: FnOnce(T) -> Result, [INFO] [stdout] 67 | | E: From, [INFO] [stdout] | |__________________________^ [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/item.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | const CONFIG: Item = Item::new("config"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.04s [INFO] running `Command { std: "docker" "inspect" "76ea58e7b6da6184852c5c0bbbf4b32f43ad1c29d80da4785c301022b8a598ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "76ea58e7b6da6184852c5c0bbbf4b32f43ad1c29d80da4785c301022b8a598ac", kill_on_drop: false }` [INFO] [stdout] 76ea58e7b6da6184852c5c0bbbf4b32f43ad1c29d80da4785c301022b8a598ac