-
Notifications
You must be signed in to change notification settings - Fork 296
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
With default-features = false
, I get the following error,
Compiling wasm-wave v0.235.0
error[E0599]: no function or associated item named `with_capacity` found for struct `IndexMap` in the current scope
--> /Users/chenyan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/wasm-wave-0.235.0/src/parser.rs:179:35
|
179 | let mut flags = IndexMap::with_capacity(1);
| ^^^^^^^^^^^^^ function or associated item not found in `IndexMap<_, _, _>`
|
note: if you're trying to build a new `IndexMap<_, _, _>` consider using one of the following associated functions:
IndexMap::<K, V, S>::with_capacity_and_hasher
IndexMap::<K, V, S>::with_hasher
--> /Users/chenyan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/indexmap-2.10.0/src/map.rs:161:5
|
161 | pub fn with_capacity_and_hasher(n: usize, hash_builder: S) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
176 | pub const fn with_hasher(hash_builder: S) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
help: there is a method `capacity` with a similar name, but with different arguments
--> /Users/chenyan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/indexmap-2.10.0/src/map.rs:211:5
|
211 | pub fn capacity(&self) -> usize {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
For more information about this error, try `rustc --explain E0599`.
error: could not compile `wasm-wave` (lib) due to 1 previous error
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working