[INFO] fetching crate cw-storage-plus 0.3.1... [INFO] checking cw-storage-plus-0.3.1 against try#ff044a3d65d25a17c3e14c1530004e1540179ba7 for pr-78338 [INFO] extracting crate cw-storage-plus 0.3.1 into /workspace/builds/worker-2/source [INFO] validating manifest of crates.io crate cw-storage-plus 0.3.1 on toolchain ff044a3d65d25a17c3e14c1530004e1540179ba7 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ff044a3d65d25a17c3e14c1530004e1540179ba7" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate cw-storage-plus 0.3.1 [INFO] finished tweaking crates.io crate cw-storage-plus 0.3.1 [INFO] tweaked toml for crates.io crate cw-storage-plus 0.3.1 written to /workspace/builds/worker-2/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ff044a3d65d25a17c3e14c1530004e1540179ba7" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ff044a3d65d25a17c3e14c1530004e1540179ba7" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "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" "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:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+ff044a3d65d25a17c3e14c1530004e1540179ba7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8a29ff3cc283b7bdbdea1734e7b4ac171b8809e0b5a50ba9a737cc64735a479a [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" "8a29ff3cc283b7bdbdea1734e7b4ac171b8809e0b5a50ba9a737cc64735a479a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8a29ff3cc283b7bdbdea1734e7b4ac171b8809e0b5a50ba9a737cc64735a479a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8a29ff3cc283b7bdbdea1734e7b4ac171b8809e0b5a50ba9a737cc64735a479a", kill_on_drop: false }` [INFO] [stdout] 8a29ff3cc283b7bdbdea1734e7b4ac171b8809e0b5a50ba9a737cc64735a479a [INFO] running `Command { std: "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" "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:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+ff044a3d65d25a17c3e14c1530004e1540179ba7" "check" "--frozen" "--all" "--all-targets" "--message-format=json", 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] 52663eb75faf94f9febdaaed091746d11839c7bdd5f3b785237b6ba3e021bdba [INFO] running `Command { std: "docker" "start" "-a" "52663eb75faf94f9febdaaed091746d11839c7bdd5f3b785237b6ba3e021bdba", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.48 [INFO] [stderr] Compiling serde_derive v1.0.117 [INFO] [stderr] Compiling serde v1.0.117 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Compiling serde_json v1.0.59 [INFO] [stderr] Compiling schemars v0.7.6 [INFO] [stderr] Checking itoa v0.4.6 [INFO] [stderr] Checking base64 v0.11.0 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling serde_derive_internals v0.25.0 [INFO] [stderr] Compiling snafu-derive v0.6.9 [INFO] [stderr] Compiling schemars_derive v0.7.6 [INFO] [stderr] Checking snafu v0.6.9 [INFO] [stderr] Checking serde-json-wasm v0.2.1 [INFO] [stderr] Checking cosmwasm-std v0.11.1 [INFO] [stderr] Checking cw-storage-plus v0.3.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/item.rs:158:22 [INFO] [stdout] | [INFO] [stdout] 158 | let output = CONFIG.update(&mut store, |mut c| -> StdResult<_> { [INFO] [stdout] | ______________________^ [INFO] [stdout] 159 | | c.max_tokens *= 2; [INFO] [stdout] 160 | | Ok(c) [INFO] [stdout] 161 | | }); [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 S, action: A) -> Result [INFO] [stdout] 65 | | where [INFO] [stdout] 66 | | A: FnOnce(T) -> Result, [INFO] [stdout] 67 | | E: From, [INFO] [stdout] 68 | | S: Storage, [INFO] [stdout] | |___________________^ [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/item.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | const CONFIG: Item = Item::new(b"config"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/item.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 180 | / CONFIG [INFO] [stdout] 181 | | .update(&mut store, |mut c| -> StdResult<_> { [INFO] [stdout] 182 | | old_max_tokens = c.max_tokens; [INFO] [stdout] 183 | | c.max_tokens *= 2; [INFO] [stdout] 184 | | Ok(c) [INFO] [stdout] 185 | | }) [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 S, action: A) -> Result [INFO] [stdout] 65 | | where [INFO] [stdout] 66 | | A: FnOnce(T) -> Result, [INFO] [stdout] 67 | | E: From, [INFO] [stdout] 68 | | S: Storage, [INFO] [stdout] | |___________________^ [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/item.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | const CONFIG: Item = Item::new(b"config"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/item.rs:200:22 [INFO] [stdout] | [INFO] [stdout] 200 | 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 S, action: A) -> Result [INFO] [stdout] 65 | | where [INFO] [stdout] 66 | | A: FnOnce(T) -> Result, [INFO] [stdout] 67 | | E: From, [INFO] [stdout] 68 | | S: Storage, [INFO] [stdout] | |___________________^ [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/item.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | const CONFIG: Item = Item::new(b"config"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/item.rs:230:19 [INFO] [stdout] | [INFO] [stdout] 230 | let res = CONFIG.update(&mut store, |mut c| { [INFO] [stdout] | ___________________^ [INFO] [stdout] 231 | | if c.max_tokens > 5000 { [INFO] [stdout] 232 | | return Err(MyError::Foo); [INFO] [stdout] 233 | | } [INFO] [stdout] ... | [INFO] [stdout] 241 | | Ok(c) [INFO] [stdout] 242 | | }); [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 S, action: A) -> Result [INFO] [stdout] 65 | | where [INFO] [stdout] 66 | | A: FnOnce(T) -> Result, [INFO] [stdout] 67 | | E: From, [INFO] [stdout] 68 | | S: Storage, [INFO] [stdout] | |___________________^ [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/item.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | const CONFIG: Item = Item::new(b"config"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/item.rs:268:22 [INFO] [stdout] | [INFO] [stdout] 268 | let output = CONFIG.update(&mut store, |mut c| -> StdResult<_> { [INFO] [stdout] | ______________________^ [INFO] [stdout] 269 | | c.max_tokens *= 2; [INFO] [stdout] 270 | | Ok(c) [INFO] [stdout] 271 | | })?; [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 S, action: A) -> Result [INFO] [stdout] 65 | | where [INFO] [stdout] 66 | | A: FnOnce(T) -> Result, [INFO] [stdout] 67 | | E: From, [INFO] [stdout] 68 | | S: Storage, [INFO] [stdout] | |___________________^ [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/item.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | const CONFIG: Item = Item::new(b"config"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/item.rs:275:22 [INFO] [stdout] | [INFO] [stdout] 275 | let failed = CONFIG.update(&mut store, |_| -> StdResult<_> { [INFO] [stdout] | ______________________^ [INFO] [stdout] 276 | | Err(StdError::generic_err("failure mode")) [INFO] [stdout] 277 | | }); [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 S, action: A) -> Result [INFO] [stdout] 65 | | where [INFO] [stdout] 66 | | A: FnOnce(T) -> Result, [INFO] [stdout] 67 | | E: From, [INFO] [stdout] 68 | | S: Storage, [INFO] [stdout] | |___________________^ [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/item.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | const CONFIG: Item = Item::new(b"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 53.45s [INFO] running `Command { std: "docker" "inspect" "52663eb75faf94f9febdaaed091746d11839c7bdd5f3b785237b6ba3e021bdba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "52663eb75faf94f9febdaaed091746d11839c7bdd5f3b785237b6ba3e021bdba", kill_on_drop: false }` [INFO] [stdout] 52663eb75faf94f9febdaaed091746d11839c7bdd5f3b785237b6ba3e021bdba