[INFO] cloning repository https://github.com/infinite0731/Cosmwasm-NFT-Marketplace-Contract [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/infinite0731/Cosmwasm-NFT-Marketplace-Contract" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finfinite0731%2FCosmwasm-NFT-Marketplace-Contract", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finfinite0731%2FCosmwasm-NFT-Marketplace-Contract'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 14049c74ce709cc29d5f2dcac0931be908e1ace9 [INFO] checking infinite0731/Cosmwasm-NFT-Marketplace-Contract against master#cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c for pr-143170 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finfinite0731%2FCosmwasm-NFT-Marketplace-Contract" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/infinite0731/Cosmwasm-NFT-Marketplace-Contract [INFO] finished tweaking git repo https://github.com/infinite0731/Cosmwasm-NFT-Marketplace-Contract [INFO] tweaked toml for git repo https://github.com/infinite0731/Cosmwasm-NFT-Marketplace-Contract written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/infinite0731/Cosmwasm-NFT-Marketplace-Contract on toolchain cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/infinite0731/Cosmwasm-NFT-Marketplace-Contract already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /workspace/builds/worker-4-tc1/source/contracts/marketplace/Cargo.toml [INFO] [stderr] workspace: /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded unicode-xid v0.2.1 [INFO] [stderr] Downloaded serde_derive v1.0.117 [INFO] [stderr] Downloaded quote v1.0.7 [INFO] [stderr] Downloaded thiserror-impl v1.0.21 [INFO] [stderr] Downloaded thiserror v1.0.21 [INFO] [stderr] Downloaded cw0 v0.3.2 [INFO] [stderr] Downloaded cw2 v0.3.2 [INFO] [stderr] Downloaded cw-storage-plus v0.3.2 [INFO] [stderr] Downloaded serde_derive_internals v0.25.0 [INFO] [stderr] Downloaded base64 v0.11.0 [INFO] [stderr] Downloaded miniz_oxide v0.4.3 [INFO] [stderr] Downloaded cosmwasm-std v0.11.2 [INFO] [stderr] Downloaded backtrace v0.3.54 [INFO] [stderr] Downloaded syn v1.0.48 [INFO] [stderr] Downloaded serde v1.0.117 [INFO] [stderr] Downloaded rustc-demangle v0.1.18 [INFO] [stderr] Downloaded snafu v0.6.9 [INFO] [stderr] Downloaded serde_json v1.0.59 [INFO] [stderr] Downloaded addr2line v0.14.0 [INFO] [stderr] Downloaded object v0.22.0 [INFO] [stderr] Downloaded adler v0.2.3 [INFO] [stderr] Downloaded itoa v0.4.6 [INFO] [stderr] Downloaded serde-json-wasm v0.2.1 [INFO] [stderr] Downloaded snafu-derive v0.6.9 [INFO] [stderr] Downloaded schemars_derive v0.7.6 [INFO] [stderr] Downloaded cw20 v0.3.2 [INFO] [stderr] Downloaded libc v0.2.80 [INFO] [stderr] Downloaded cosmwasm-schema v0.11.2 [INFO] [stderr] Downloaded schemars v0.7.6 [INFO] [stderr] Downloaded proc-macro2 v1.0.24 [INFO] [stderr] Downloaded gimli v0.23.0 [INFO] [stderr] Downloaded cw721 v0.3.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 23161b9a3f603da046078fd8b461b1dccc8f10252cfee8cb075f4a4b0a698a4c [INFO] running `Command { std: "docker" "start" "-a" "23161b9a3f603da046078fd8b461b1dccc8f10252cfee8cb075f4a4b0a698a4c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "23161b9a3f603da046078fd8b461b1dccc8f10252cfee8cb075f4a4b0a698a4c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "23161b9a3f603da046078fd8b461b1dccc8f10252cfee8cb075f4a4b0a698a4c", kill_on_drop: false }` [INFO] [stdout] 23161b9a3f603da046078fd8b461b1dccc8f10252cfee8cb075f4a4b0a698a4c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 880a8a42632f047bf90d3070ec5f7518556d74796901ed60954540b803feb8fd [INFO] running `Command { std: "docker" "start" "-a" "880a8a42632f047bf90d3070ec5f7518556d74796901ed60954540b803feb8fd", kill_on_drop: false }` [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /opt/rustwide/workdir/contracts/marketplace/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [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 serde_json v1.0.59 [INFO] [stderr] Checking itoa v0.4.6 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Compiling schemars v0.7.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 thiserror-impl v1.0.21 [INFO] [stderr] Compiling schemars_derive v0.7.6 [INFO] [stderr] Checking thiserror v1.0.21 [INFO] [stderr] Checking snafu v0.6.9 [INFO] [stderr] Checking serde-json-wasm v0.2.1 [INFO] [stderr] Checking cosmwasm-std v0.11.2 [INFO] [stderr] Checking cosmwasm-schema v0.11.2 [INFO] [stderr] Checking cw0 v0.3.2 (/opt/rustwide/workdir/packages/cw0) [INFO] [stderr] Checking cw0 v0.3.2 [INFO] [stderr] Checking cw-storage-plus v0.3.2 [INFO] [stderr] Checking cw-storage-plus v0.3.2 (/opt/rustwide/workdir/packages/storage-plus) [INFO] [stderr] Checking cw4 v0.3.2 (/opt/rustwide/workdir/packages/cw4) [INFO] [stderr] Checking cw1 v0.3.2 (/opt/rustwide/workdir/packages/cw1) [INFO] [stdout] warning: trait `EmptyPrefix` is never used [INFO] [stdout] --> packages/storage-plus/src/keys.rs:109:11 [INFO] [stdout] | [INFO] [stdout] 109 | pub trait EmptyPrefix { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking cw2 v0.3.2 (/opt/rustwide/workdir/packages/cw2) [INFO] [stderr] Checking cw20 v0.3.2 [INFO] [stderr] Checking cw721 v0.3.2 [INFO] [stderr] Checking cw2 v0.3.2 [INFO] [stderr] Checking cw721 v0.3.2 (/opt/rustwide/workdir/packages/cw721) [INFO] [stderr] Checking cw20 v0.3.2 (/opt/rustwide/workdir/packages/cw20) [INFO] [stderr] Checking cw3 v0.3.2 (/opt/rustwide/workdir/packages/cw3) [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> packages/storage-plus/src/map.rs:326:13 [INFO] [stdout] | [INFO] [stdout] 325 | ALLOWANCE.update(&mut store, (b"owner", b"spender"), |v| { [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] 326 | Ok(v.unwrap_or_default() + 222) [INFO] [stdout] | ^^ cannot infer type of the type parameter `E` declared on the enum `Result` [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: From` [INFO] [stdout] note: required by a bound in `map::Map::<'a, K, T>::update` [INFO] [stdout] --> packages/storage-plus/src/map.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn update(&self, store: &mut S, k: K, action: A) -> Result [INFO] [stdout] | ------ required by a bound in this associated function [INFO] [stdout] ... [INFO] [stdout] 71 | E: From, [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `Map::<'a, K, T>::update` [INFO] [stdout] help: consider specifying the generic arguments [INFO] [stdout] | [INFO] [stdout] 326 | Ok::(v.unwrap_or_default() + 222) [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> packages/storage-plus/src/map.rs:326:13 [INFO] [stdout] | [INFO] [stdout] 326 | Ok(v.unwrap_or_default() + 222) [INFO] [stdout] | ^^ cannot infer type of the type parameter `E` declared on the enum `Result` [INFO] [stdout] 327 | })?; [INFO] [stdout] | - type must be known at this point [INFO] [stdout] | [INFO] [stdout] = note: multiple `impl`s satisfying `cosmwasm_std::StdError: From<_>` found in the following crates: `core`, `cosmwasm_std`: [INFO] [stdout] - impl From for cosmwasm_std::StdError; [INFO] [stdout] - impl From for cosmwasm_std::StdError; [INFO] [stdout] - impl From for T; [INFO] [stdout] help: consider specifying the generic arguments [INFO] [stdout] | [INFO] [stdout] 326 | Ok::(v.unwrap_or_default() + 222) [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> packages/storage-plus/src/map.rs:360:38 [INFO] [stdout] | [INFO] [stdout] 360 | allow.update(&mut store, |x| Ok(x.unwrap_or_default() * 2))?; [INFO] [stdout] | ------ ^^ cannot infer type of the type parameter `E` declared on the enum `Result` [INFO] [stdout] | | [INFO] [stdout] | type must be known at this point [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: From` [INFO] [stdout] note: required by a bound in `path::Path::::update` [INFO] [stdout] --> packages/storage-plus/src/path.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn update(&self, store: &mut S, action: A) -> Result [INFO] [stdout] | ------ required by a bound in this associated function [INFO] [stdout] ... [INFO] [stdout] 75 | E: From, [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `Path::::update` [INFO] [stdout] help: consider specifying the generic arguments [INFO] [stdout] | [INFO] [stdout] 360 | allow.update(&mut store, |x| Ok::(x.unwrap_or_default() * 2))?; [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> packages/storage-plus/src/map.rs:360:38 [INFO] [stdout] | [INFO] [stdout] 360 | allow.update(&mut store, |x| Ok(x.unwrap_or_default() * 2))?; [INFO] [stdout] | ^^ - type must be known at this point [INFO] [stdout] | | [INFO] [stdout] | cannot infer type of the type parameter `E` declared on the enum `Result` [INFO] [stdout] | [INFO] [stdout] = note: multiple `impl`s satisfying `cosmwasm_std::StdError: From<_>` found in the following crates: `core`, `cosmwasm_std`: [INFO] [stdout] - impl From for cosmwasm_std::StdError; [INFO] [stdout] - impl From for cosmwasm_std::StdError; [INFO] [stdout] - impl From for T; [INFO] [stdout] help: consider specifying the generic arguments [INFO] [stdout] | [INFO] [stdout] 360 | allow.update(&mut store, |x| Ok::(x.unwrap_or_default() * 2))?; [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> packages/storage-plus/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: 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] --> packages/storage-plus/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] --> packages/storage-plus/src/item.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | const CONFIG: Item = Item::new(b"config"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(const_item_mutation)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> packages/storage-plus/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] --> packages/storage-plus/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] --> packages/storage-plus/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] --> packages/storage-plus/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] --> packages/storage-plus/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] --> packages/storage-plus/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] --> packages/storage-plus/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] ... | [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] --> packages/storage-plus/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] --> packages/storage-plus/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] --> packages/storage-plus/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] --> packages/storage-plus/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] --> packages/storage-plus/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] --> packages/storage-plus/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] --> packages/storage-plus/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] --> packages/storage-plus/src/item.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | const CONFIG: Item = Item::new(b"config"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking cosmons v0.0.0 (/opt/rustwide/workdir/contracts/cosmons) [INFO] [stdout] For more information about this error, try `rustc --explain E0283`. [INFO] [stdout] [INFO] [stderr] error: could not compile `cw-storage-plus` (lib test) due to 4 previous errors; 6 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "880a8a42632f047bf90d3070ec5f7518556d74796901ed60954540b803feb8fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "880a8a42632f047bf90d3070ec5f7518556d74796901ed60954540b803feb8fd", kill_on_drop: false }` [INFO] [stdout] 880a8a42632f047bf90d3070ec5f7518556d74796901ed60954540b803feb8fd