Skip to content

Instantly share code, notes, and snippets.

@pantsman0
Created December 2, 2023 04:16
Show Gist options
  • Save pantsman0/4d9e0178ba6270ef1e1915c39b1e3e75 to your computer and use it in GitHub Desktop.
Save pantsman0/4d9e0178ba6270ef1e1915c39b1e3e75 to your computer and use it in GitHub Desktop.
caches error no_std
error[E0599]: the method `set_size` exists for struct `AdaptiveCacheBuilder`, but its trait bounds were not satisfied
--> src\lru\adaptive.rs:74:25
|
14 | / pub struct AdaptiveCacheBuilder<
15 | | RH = DefaultHashBuilder,
16 | | REH = DefaultHashBuilder,
17 | | FH = DefaultHashBuilder,
18 | | FEH = DefaultHashBuilder,
19 | | > {
| |_- method `set_size` not found for this struct
...
74 | Self::default().set_size(size)
| ^^^^^^^^ method cannot be called on `AdaptiveCacheBuilder` due to unsatisfied trait bounds
--> /rust/deps\hashbrown-0.14.2\src\map.rs:19:1
|
= note: doesn't satisfy `_: BuildHasher`
|
note: trait bound `hashbrown::hash_map::DefaultHashBuilder: BuildHasher` was not satisfied
--> src\lru\adaptive.rs:78:10
|
78 | impl<RH: BuildHasher, REH: BuildHasher, FH: BuildHasher, FEH: BuildHasher>
| ^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^ unsatisfied trait bound introduced here
| | | |
| | | unsatisfied trait bound introduced here
| | unsatisfied trait bound introduced here
| unsatisfied trait bound introduced here
79 | AdaptiveCacheBuilder<RH, REH, FH, FEH>
| --------------------------------------
error[E0599]: the method `finalize` exists for struct `AdaptiveCacheBuilder`, but its trait bounds were not satisfied
--> src\lru\adaptive.rs:295:41
|
14 | / pub struct AdaptiveCacheBuilder<
15 | | RH = DefaultHashBuilder,
16 | | REH = DefaultHashBuilder,
17 | | FH = DefaultHashBuilder,
18 | | FEH = DefaultHashBuilder,
19 | | > {
| |_- method `finalize` not found for this struct
...
295 | AdaptiveCacheBuilder::new(size).finalize()
| ^^^^^^^^ method cannot be called on `AdaptiveCacheBuilder` due to unsatisfied trait bounds
--> /rust/deps\hashbrown-0.14.2\src\map.rs:19:1
|
= note: doesn't satisfy `_: BuildHasher`
|
note: trait bound `hashbrown::hash_map::DefaultHashBuilder: BuildHasher` was not satisfied
--> src\lru\adaptive.rs:78:10
|
78 | impl<RH: BuildHasher, REH: BuildHasher, FH: BuildHasher, FEH: BuildHasher>
| ^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^ unsatisfied trait bound introduced here
| | | |
| | | unsatisfied trait bound introduced here
| | unsatisfied trait bound introduced here
| unsatisfied trait bound introduced here
79 | AdaptiveCacheBuilder<RH, REH, FH, FEH>
| --------------------------------------
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lru\adaptive.rs:350:50
|
350 | if let Some(ent_ptr) = self.frequent.map.get_mut(&key_ref).map(|node| {
| ^^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lru\adaptive.rs:385:49
|
385 | let mut ent = self.recent_evict.map.remove(&key_ref).unwrap();
| ^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lru\adaptive.rs:399:36
|
399 | if self.frequent_evict.map.contains_key(&key_ref) {
| ^^^^^^^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lru\adaptive.rs:418:51
|
418 | let mut ent = self.frequent_evict.map.remove(&key_ref).unwrap();
| ^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lru\raw.rs:207:13
|
207 | HashMap::with_capacity_and_hasher(self.map.capacity(), self.map.hasher().clone()),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lru\raw.rs:207:56
|
207 | HashMap::with_capacity_and_hasher(self.map.capacity(), self.map.hasher().clone()),
| ^^^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lru\raw.rs:207:77
|
207 | HashMap::with_capacity_and_hasher(self.map.capacity(), self.map.hasher().clone()),
| ^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lru\raw.rs:210:31
|
210 | for entry in self.map.values() {
| ^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0599]: the function or associated item `construct` exists for struct `RawLRU<K, V>`, but its trait bounds were not satisfied
--> src\lru\raw.rs:235:19
|
191 | pub struct RawLRU<K, V, E = DefaultEvictCallback, S = DefaultHashBuilder> {
| ------------------------------------------------------------------------- function or associated item `construct` not found for this struct
...
235 | Self::construct(
| ^^^^^^^^^ function or associated item cannot be called on `RawLRU<K, V>` due to unsatisfied trait bounds
--> /rust/deps\hashbrown-0.14.2\src\map.rs:19:1
|
= note: doesn't satisfy `_: BuildHasher`
|
note: if you're trying to build a new `RawLRU<K, V>`, consider using `RawLRU::<K, V>::new` which returns `Result<RawLRU<K, V>, CacheError>`
--> src\lru\raw.rs:233:5
|
233 | pub fn new(cap: usize) -> Result<Self, CacheError> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: trait bound `hashbrown::hash_map::DefaultHashBuilder: BuildHasher` was not satisfied
--> src\lru\raw.rs:685:46
|
685 | impl<K: Hash + Eq, V, E: OnEvictCallback, S: BuildHasher> RawLRU<K, V, E, S> {
| ^^^^^^^^^^^ ------------------
| |
| unsatisfied trait bound introduced here
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lru\raw.rs:237:17
|
237 | HashMap::with_capacity_and_hasher(cap, DefaultHashBuilder::default()),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0599]: no variant or associated item named `default` found for enum `hashbrown::hash_map::DefaultHashBuilder` in the current scope
--> src\lru\raw.rs:237:76
|
237 | HashMap::with_capacity_and_hasher(cap, DefaultHashBuilder::default()),
| ^^^^^^^ variant or associated item not found in `DefaultHashBuilder`
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lru\raw.rs:260:17
|
260 | HashMap::with_capacity_and_hasher(cap, hash_builder),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0599]: the function or associated item `construct` exists for struct `RawLRU<K, V, E>`, but its trait bounds were not satisfied
--> src\lru\raw.rs:299:19
|
191 | pub struct RawLRU<K, V, E = DefaultEvictCallback, S = DefaultHashBuilder> {
| ------------------------------------------------------------------------- function or associated item `construct` not found for this struct
...
299 | Self::construct(
| ^^^^^^^^^ function or associated item cannot be called on `RawLRU<K, V, E>` due to unsatisfied trait bounds
--> /rust/deps\hashbrown-0.14.2\src\map.rs:19:1
|
= note: doesn't satisfy `_: BuildHasher`
|
note: if you're trying to build a new `RawLRU<K, V, E>`, consider using `RawLRU::<K, V, E>::with_on_evict_cb` which returns `Result<RawLRU<K, V, E>, CacheError>`
--> src\lru\raw.rs:297:5
|
297 | pub fn with_on_evict_cb(cap: usize, cb: E) -> Result<Self, CacheError> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: trait bound `hashbrown::hash_map::DefaultHashBuilder: BuildHasher` was not satisfied
--> src\lru\raw.rs:685:46
|
685 | impl<K: Hash + Eq, V, E: OnEvictCallback, S: BuildHasher> RawLRU<K, V, E, S> {
| ^^^^^^^^^^^ ------------------
| |
| unsatisfied trait bound introduced here
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lru\raw.rs:301:17
|
301 | HashMap::with_capacity_and_hasher(cap, DefaultHashBuilder::default()),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0599]: no variant or associated item named `default` found for enum `hashbrown::hash_map::DefaultHashBuilder` in the current scope
--> src\lru\raw.rs:301:76
|
301 | HashMap::with_capacity_and_hasher(cap, DefaultHashBuilder::default()),
| ^^^^^^^ variant or associated item not found in `DefaultHashBuilder`
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lru\raw.rs:313:33
|
313 | let node_ref = self.map.get_mut(&KeyRef { k: &k });
| ^^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lru\raw.rs:337:26
|
337 | self.map.insert(KeyRef { k: keyref }, node);
| ^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lru\raw.rs:359:37
|
359 | let old_node = self.map.remove(&old_key).unwrap();
| ^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lru\raw.rs:503:24
|
503 | match self.map.get_mut(KeyWrapper::from_ref(k)) {
| ^^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lru\raw.rs:532:18
|
532 | self.map.contains_key(KeyWrapper::from_ref(k))
| ^^^^^^^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lru\raw.rs:556:24
|
556 | match self.map.remove(KeyWrapper::from_ref(k)) {
| ^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lru\raw.rs:611:18
|
611 | self.map.len()
| ^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lru\raw.rs:641:18
|
641 | self.map.len() == 0
| ^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lru\raw.rs:674:24
|
674 | while self.map.len() > cap {
| ^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lru\raw.rs:678:18
|
678 | self.map.shrink_to_fit();
| ^^^^^^^^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lru\raw.rs:719:17
|
719 | HashMap::with_capacity_and_hasher(cap, hasher),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lru\raw.rs:888:24
|
888 | match self.map.get(&KeyRef { k: &k }) {
| ^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lru\raw.rs:916:24
|
916 | match self.map.get_mut(&k_ref) {
| ^^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lru\raw.rs:1063:22
|
1063 | if !self.map.contains_key(&KeyRef { k: &k }) {
| ^^^^^^^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lru\raw.rs:1365:24
|
1365 | match self.map.get_mut(KeyWrapper::from_ref(k)) {
| ^^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lru\raw.rs:1378:14
|
1378 | .get(KeyWrapper::from_ref(k))
| ^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lru\raw.rs:1388:38
|
1388 | if let Some(node) = self.map.get_mut(KeyWrapper::from_ref(k)) {
| ^^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lru\raw.rs:1406:38
|
1406 | if let Some(node) = self.map.get_mut(KeyWrapper::from_ref(k)) {
| ^^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lru\raw.rs:1428:22
|
1428 | .remove(&KeyRef {
| ^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lru\raw.rs:1434:26
|
1434 | self.map.insert(
| ^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lru\raw.rs:1452:22
|
1452 | self.map.insert(KeyRef { k: keyref }, bks);
| ^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lru\raw.rs:1479:22
|
1479 | .remove(&KeyRef {
| ^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lru\raw.rs:1485:26
|
1485 | self.map.insert(
| ^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lru\raw.rs:1498:22
|
1498 | self.map.insert(KeyRef { k: keyref }, bks);
| ^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lru\raw.rs:1508:24
|
1508 | match self.map.remove(KeyWrapper::from_ref(k)) {
| ^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lru\raw.rs:1525:37
|
1525 | let old_node = self.map.remove(&old_key);
| ^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lru\raw.rs:1565:18
|
1565 | self.map.drain().for_each(|(_, node)| unsafe {
| ^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0599]: the method `put` exists for struct `RawLRU<K, V>`, but its trait bounds were not satisfied
--> src\lru\raw.rs:1605:18
|
191 | pub struct RawLRU<K, V, E = DefaultEvictCallback, S = DefaultHashBuilder> {
| -------------------------------------------------------------------------
| |
| method `put` not found for this struct
| doesn't satisfy `RawLRU<K, V>: Cache<K, V>`
...
1605 | this.put(k, v);
| ^^^ method cannot be called on `RawLRU<K, V>` due to unsatisfied trait bounds
--> /rust/deps\hashbrown-0.14.2\src\map.rs:19:1
|
= note: doesn't satisfy `_: BuildHasher`
|
note: trait bound `hashbrown::hash_map::DefaultHashBuilder: BuildHasher` was not satisfied
--> src\lru\raw.rs:383:46
|
383 | impl<K: Hash + Eq, V, E: OnEvictCallback, S: BuildHasher> Cache<K, V> for RawLRU<K, V, E, S> {
| ^^^^^^^^^^^ ----------- ------------------
| |
| unsatisfied trait bound introduced here
error[E0599]: no variant or associated item named `default` found for enum `hashbrown::hash_map::DefaultHashBuilder` in the current scope
--> src\lru\segmented.rs:21:59
|
21 | probationary_hasher: Some(DefaultHashBuilder::default()),
| ^^^^^^^ variant or associated item not found in `DefaultHashBuilder`
error[E0599]: no variant or associated item named `default` found for enum `hashbrown::hash_map::DefaultHashBuilder` in the current scope
--> src\lru\segmented.rs:22:56
|
22 | protected_hasher: Some(DefaultHashBuilder::default()),
| ^^^^^^^ variant or associated item not found in `DefaultHashBuilder`
error[E0599]: no variant or associated item named `default` found for enum `hashbrown::hash_map::DefaultHashBuilder` in the current scope
--> src\lru\segmented.rs:33:59
|
33 | probationary_hasher: Some(DefaultHashBuilder::default()),
| ^^^^^^^ variant or associated item not found in `DefaultHashBuilder`
error[E0599]: no variant or associated item named `default` found for enum `hashbrown::hash_map::DefaultHashBuilder` in the current scope
--> src\lru\segmented.rs:34:56
|
34 | protected_hasher: Some(DefaultHashBuilder::default()),
| ^^^^^^^ variant or associated item not found in `DefaultHashBuilder`
error[E0599]: the method `finalize` exists for struct `SegmentedCacheBuilder`, but its trait bounds were not satisfied
--> src\lru\segmented.rs:176:71
|
9 | pub struct SegmentedCacheBuilder<FH = DefaultHashBuilder, RH = DefaultHashBuilder> {
| ---------------------------------------------------------------------------------- method `finalize` not found for this struct
...
176 | SegmentedCacheBuilder::new(probationary_size, protected_size).finalize()
| ^^^^^^^^ method cannot be called on `SegmentedCacheBuilder` due to unsatisfied trait bounds
--> /rust/deps\hashbrown-0.14.2\src\map.rs:19:1
|
= note: doesn't satisfy `_: BuildHasher`
|
note: trait bound `hashbrown::hash_map::DefaultHashBuilder: BuildHasher` was not satisfied
--> src\lru\segmented.rs:39:10
|
39 | impl<FH: BuildHasher, RH: BuildHasher> SegmentedCacheBuilder<FH, RH> {
| ^^^^^^^^^^^ ^^^^^^^^^^^ -----------------------------
| | |
| | unsatisfied trait bound introduced here
| unsatisfied trait bound introduced here
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lru\segmented.rs:364:51
|
364 | if let Some(ent_ptr) = self.protected.map.get_mut(&key_ref).map(|bks| bks.as_ptr()) {
| ^^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0599]: no variant or associated item named `default` found for enum `hashbrown::hash_map::DefaultHashBuilder` in the current scope
--> src\lru\two_queue.rs:58:53
|
58 | recent_hasher: Some(DefaultHashBuilder::default()),
| ^^^^^^^ variant or associated item not found in `DefaultHashBuilder`
error[E0599]: no variant or associated item named `default` found for enum `hashbrown::hash_map::DefaultHashBuilder` in the current scope
--> src\lru\two_queue.rs:59:51
|
59 | freq_hasher: Some(DefaultHashBuilder::default()),
| ^^^^^^^ variant or associated item not found in `DefaultHashBuilder`
error[E0599]: no variant or associated item named `default` found for enum `hashbrown::hash_map::DefaultHashBuilder` in the current scope
--> src\lru\two_queue.rs:60:52
|
60 | ghost_hasher: Some(DefaultHashBuilder::default()),
| ^^^^^^^ variant or associated item not found in `DefaultHashBuilder`
error[E0599]: the method `set_size` exists for struct `TwoQueueCacheBuilder`, but its trait bounds were not satisfied
--> src\lru\two_queue.rs:88:25
|
27 | / pub struct TwoQueueCacheBuilder<
28 | | RH = DefaultHashBuilder,
29 | | FH = DefaultHashBuilder,
30 | | GH = DefaultHashBuilder,
31 | | > {
| |_- method `set_size` not found for this struct
...
88 | Self::default().set_size(size)
| ^^^^^^^^ method cannot be called on `TwoQueueCacheBuilder` due to unsatisfied trait bounds
--> /rust/deps\hashbrown-0.14.2\src\map.rs:19:1
|
= note: doesn't satisfy `_: BuildHasher`
|
note: trait bound `hashbrown::hash_map::DefaultHashBuilder: BuildHasher` was not satisfied
--> src\lru\two_queue.rs:92:10
|
92 | impl<RH: BuildHasher, FH: BuildHasher, GH: BuildHasher> TwoQueueCacheBuilder<RH, FH, GH> {
| ^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^ --------------------------------
| | | |
| | | unsatisfied trait bound introduced here
| | unsatisfied trait bound introduced here
| unsatisfied trait bound introduced here
error[E0599]: no method named `floor` found for type `f64` in the current scope
--> src\lru\two_queue.rs:194:39
|
194 | let rs = ((size as f64) * rr).floor() as usize;
| ^^^^^ method not found in `f64`
error[E0599]: no method named `floor` found for type `f64` in the current scope
--> src\lru\two_queue.rs:195:39
|
195 | let es = ((size as f64) * gr).floor() as usize;
| ^^^^^ method not found in `f64`
error[E0599]: no method named `floor` found for type `f64` in the current scope
--> src\lru\two_queue.rs:364:39
|
364 | let rs = ((size as f64) * rr).floor() as usize;
| ^^^^^ method not found in `f64`
error[E0599]: no method named `floor` found for type `f64` in the current scope
--> src\lru\two_queue.rs:365:39
|
365 | let es = ((size as f64) * gr).floor() as usize;
| ^^^^^ method not found in `f64`
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lru\two_queue.rs:435:50
|
435 | if let Some(ent_ptr) = self.frequent.map.get_mut(&key_ref).map(|node| {
| ^^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lru\two_queue.rs:478:38
|
478 | match self.ghost.map.remove(&key_ref) {
| ^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lru\two_queue.rs:513:46
|
513 | let mut ent = self.ghost.map.remove(&key_ref).unwrap();
| ^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lfu\sampled.rs:34:24
|
34 | key_costs: HashMap::with_hasher(DefaultHashBuilder::default()),
| ^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0599]: no variant or associated item named `default` found for enum `hashbrown::hash_map::DefaultHashBuilder` in the current scope
--> src\lfu\sampled.rs:34:65
|
34 | key_costs: HashMap::with_hasher(DefaultHashBuilder::default()),
| ^^^^^^^ variant or associated item not found in `DefaultHashBuilder`
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lfu\sampled.rs:47:24
|
47 | key_costs: HashMap::with_hasher(DefaultHashBuilder::default()),
| ^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0599]: no variant or associated item named `default` found for enum `hashbrown::hash_map::DefaultHashBuilder` in the current scope
--> src\lfu\sampled.rs:47:65
|
47 | key_costs: HashMap::with_hasher(DefaultHashBuilder::default()),
| ^^^^^^^ variant or associated item not found in `DefaultHashBuilder`
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lfu\sampled.rs:62:24
|
62 | key_costs: HashMap::with_hasher(hasher),
| ^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lfu\sampled.rs:75:24
|
75 | key_costs: HashMap::with_hasher(hasher),
| ^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lfu\sampled.rs:90:24
|
90 | key_costs: HashMap::with_hasher(DefaultHashBuilder::default()),
| ^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0599]: no variant or associated item named `default` found for enum `hashbrown::hash_map::DefaultHashBuilder` in the current scope
--> src\lfu\sampled.rs:90:65
|
90 | key_costs: HashMap::with_hasher(DefaultHashBuilder::default()),
| ^^^^^^^ variant or associated item not found in `DefaultHashBuilder`
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lfu\sampled.rs:103:24
|
103 | key_costs: HashMap::with_hasher(DefaultHashBuilder::default()),
| ^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0599]: no variant or associated item named `default` found for enum `hashbrown::hash_map::DefaultHashBuilder` in the current scope
--> src\lfu\sampled.rs:103:65
|
103 | key_costs: HashMap::with_hasher(DefaultHashBuilder::default()),
| ^^^^^^^ variant or associated item not found in `DefaultHashBuilder`
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lfu\sampled.rs:123:24
|
123 | key_costs: HashMap::with_hasher(hasher),
| ^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lfu\sampled.rs:176:24
|
176 | self.key_costs.insert(key, cost);
| ^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lfu\sampled.rs:183:24
|
183 | self.key_costs.remove(&kh).map(|cost| {
| ^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lfu\sampled.rs:204:24
|
204 | self.key_costs.clear();
| ^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> src\lfu\sampled.rs:221:30
|
221 | match self.key_costs.get_mut(&k) {
| ^^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0599]: no method named `ln` found for type `f64` in the current scope
--> src\lfu\tinylfu\bloom.rs:39:45
|
39 | let size = -1f64 * num_entries * wrongs.ln() / LN_2.powf(2f64);
| ^^ method not found in `f64`
error[E0599]: no method named `powf` found for type `f64` in the current scope
--> src\lfu\tinylfu\bloom.rs:39:57
|
39 | let size = -1f64 * num_entries * wrongs.ln() / LN_2.powf(2f64);
| ^^^^ method not found in `f64`
error[E0599]: no method named `ceil` found for type `f64` in the current scope
--> src\lfu\tinylfu\bloom.rs:40:44
|
40 | let locs = (LN_2 * size / num_entries).ceil();
| ^^^^ method not found in `f64`
error[E0599]: no method named `clone` found for struct `CountMinSketch` in the current scope
--> src\lfu\tinylfu.rs:156:27
|
156 | ctr: self.ctr.clone(),
| ^^^^^ method not found in `CountMinSketch`
|
::: src\lfu\tinylfu\sketch\count_min_sketch_core.rs:16:1
|
16 | pub(crate) struct CountMinSketch {
| -------------------------------- method `clone` not found for this struct
|
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following trait defines an item `clone`, perhaps you need to implement it:
candidate #1: `Clone`
error[E0599]: the method `set_probationary_hasher` exists for struct `SegmentedCacheBuilder`, but its trait bounds were not satisfied
--> src\lfu\wtinylfu.rs:301:10
|
297 | let slru = SegmentedCacheBuilder::new(
| ____________________-
298 | | self.main_cache_probationary_size,
299 | | self.main_cache_protected_size,
300 | | )
301 | | .set_probationary_hasher(self.main_cache_probationary_hasher.unwrap())
| | -^^^^^^^^^^^^^^^^^^^^^^^ method cannot be called on `SegmentedCacheBuilder` due to unsatisfied trait bounds
| |_________|
|
|
::: src\lru\segmented.rs:9:1
|
9 | pub struct SegmentedCacheBuilder<FH = DefaultHashBuilder, RH = DefaultHashBuilder> {
| ---------------------------------------------------------------------------------- method `set_probationary_hasher` not found for this struct
--> /rust/deps\hashbrown-0.14.2\src\map.rs:19:1
|
= note: doesn't satisfy `_: BuildHasher`
|
note: trait bound `hashbrown::hash_map::DefaultHashBuilder: BuildHasher` was not satisfied
--> src\lru\segmented.rs:39:10
|
39 | impl<FH: BuildHasher, RH: BuildHasher> SegmentedCacheBuilder<FH, RH> {
| ^^^^^^^^^^^ ^^^^^^^^^^^ -----------------------------
| | |
| | unsatisfied trait bound introduced here
| unsatisfied trait bound introduced here
error[E0277]: the trait bound `hashbrown::hash_map::DefaultHashBuilder: BuildHasher` is not satisfied
--> src\lfu\wtinylfu.rs:415:59
|
415 | WTinyLFUCacheBuilder::new(wsz, hsz, csz, samples).finalize()
| ^^^^^^^^ the trait `BuildHasher` is not implemented for `hashbrown::hash_map::DefaultHashBuilder`
|
= help: the trait `BuildHasher` is implemented for `BuildHasherDefault<H>`
note: required by a bound in `WTinyLFUCacheBuilder::<K, KH, FH, RH, WH>::finalize`
--> src\lfu\wtinylfu.rs:86:42
|
86 | impl<K: Hash + Eq, KH: KeyHasher<K>, FH: BuildHasher, RH: BuildHasher, WH: BuildHasher>
| ^^^^^^^^^^^ required by this bound in `WTinyLFUCacheBuilder::<K, KH, FH, RH, WH>::finalize`
...
269 | pub fn finalize<V>(self) -> Result<WTinyLFUCache<K, V, KH, FH, RH, WH>, WTinyLFUError>
| -------- required by a bound in this associated function
error[E0277]: the trait bound `hashbrown::hash_map::DefaultHashBuilder: BuildHasher` is not satisfied
--> src\lfu\wtinylfu.rs:415:9
|
415 | WTinyLFUCacheBuilder::new(wsz, hsz, csz, samples).finalize()
| ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `BuildHasher` is not implemented for `hashbrown::hash_map::DefaultHashBuilder`
|
= help: the trait `BuildHasher` is implemented for `BuildHasherDefault<H>`
note: required by a bound in `WTinyLFUCacheBuilder::<K, KH, FH, RH, WH>::new`
--> src\lfu\wtinylfu.rs:66:13
|
66 | FH: BuildHasher + Default,
| ^^^^^^^^^^^ required by this bound in `WTinyLFUCacheBuilder::<K, KH, FH, RH, WH>::new`
...
72 | pub fn new(
| --- required by a bound in this associated function
error[E0277]: the trait bound `hashbrown::hash_map::DefaultHashBuilder: Default` is not satisfied
--> src\lfu\wtinylfu.rs:415:9
|
415 | WTinyLFUCacheBuilder::new(wsz, hsz, csz, samples).finalize()
| ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Default` is not implemented for `hashbrown::hash_map::DefaultHashBuilder`
|
note: required by a bound in `WTinyLFUCacheBuilder::<K, KH, FH, RH, WH>::new`
--> src\lfu\wtinylfu.rs:66:27
|
66 | FH: BuildHasher + Default,
| ^^^^^^^ required by this bound in `WTinyLFUCacheBuilder::<K, KH, FH, RH, WH>::new`
...
72 | pub fn new(
| --- required by a bound in this associated function
error[E0277]: the trait bound `hashbrown::hash_map::DefaultHashBuilder: BuildHasher` is not satisfied
--> src\lfu\wtinylfu.rs:436:10
|
436 | .finalize()
| ^^^^^^^^ the trait `BuildHasher` is not implemented for `hashbrown::hash_map::DefaultHashBuilder`
|
= help: the trait `BuildHasher` is implemented for `BuildHasherDefault<H>`
note: required by a bound in `WTinyLFUCacheBuilder::<K, KH, FH, RH, WH>::finalize`
--> src\lfu\wtinylfu.rs:86:42
|
86 | impl<K: Hash + Eq, KH: KeyHasher<K>, FH: BuildHasher, RH: BuildHasher, WH: BuildHasher>
| ^^^^^^^^^^^ required by this bound in `WTinyLFUCacheBuilder::<K, KH, FH, RH, WH>::finalize`
...
269 | pub fn finalize<V>(self) -> Result<WTinyLFUCache<K, V, KH, FH, RH, WH>, WTinyLFUError>
| -------- required by a bound in this associated function
error[E0277]: the trait bound `hashbrown::hash_map::DefaultHashBuilder: BuildHasher` is not satisfied
--> src\lfu\wtinylfu.rs:430:9
|
430 | WTinyLFUCacheBuilder::new(
| ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `BuildHasher` is not implemented for `hashbrown::hash_map::DefaultHashBuilder`
|
= help: the trait `BuildHasher` is implemented for `BuildHasherDefault<H>`
note: required by a bound in `WTinyLFUCacheBuilder::<K, KH, FH, RH, WH>::new`
--> src\lfu\wtinylfu.rs:66:13
|
66 | FH: BuildHasher + Default,
| ^^^^^^^^^^^ required by this bound in `WTinyLFUCacheBuilder::<K, KH, FH, RH, WH>::new`
...
72 | pub fn new(
| --- required by a bound in this associated function
error[E0277]: the trait bound `hashbrown::hash_map::DefaultHashBuilder: Default` is not satisfied
--> src\lfu\wtinylfu.rs:430:9
|
430 | WTinyLFUCacheBuilder::new(
| ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Default` is not implemented for `hashbrown::hash_map::DefaultHashBuilder`
|
note: required by a bound in `WTinyLFUCacheBuilder::<K, KH, FH, RH, WH>::new`
--> src\lfu\wtinylfu.rs:66:27
|
66 | FH: BuildHasher + Default,
| ^^^^^^^ required by this bound in `WTinyLFUCacheBuilder::<K, KH, FH, RH, WH>::new`
...
72 | pub fn new(
| --- required by a bound in this associated function
error[E0277]: the trait bound `hashbrown::hash_map::DefaultHashBuilder: BuildHasher` is not satisfied
--> src\lfu\wtinylfu.rs:456:9
|
456 | WTinyLFUCacheBuilder::default()
| ^^^^^^^^^^^^^^^^^^^^ the trait `BuildHasher` is not implemented for `hashbrown::hash_map::DefaultHashBuilder`
|
= help: the trait `BuildHasher` is implemented for `BuildHasherDefault<H>`
note: required for `WTinyLFUCacheBuilder<K>` to implement `Default`
--> src\lfu\wtinylfu.rs:45:7
|
42 | FH: BuildHasher + Default,
| ----------- unsatisfied trait bound introduced here
...
45 | > Default for WTinyLFUCacheBuilder<K, KH, FH, RH, WH>
| ^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0277]: the trait bound `hashbrown::hash_map::DefaultHashBuilder: Default` is not satisfied
--> src\lfu\wtinylfu.rs:456:9
|
456 | WTinyLFUCacheBuilder::default()
| ^^^^^^^^^^^^^^^^^^^^ the trait `Default` is not implemented for `hashbrown::hash_map::DefaultHashBuilder`
|
= help: the trait `Default` is implemented for `WTinyLFUCacheBuilder<K, KH, FH, RH, WH>`
note: required for `WTinyLFUCacheBuilder<K>` to implement `Default`
--> src\lfu\wtinylfu.rs:45:7
|
42 | FH: BuildHasher + Default,
| ------- unsatisfied trait bound introduced here
...
45 | > Default for WTinyLFUCacheBuilder<K, KH, FH, RH, WH>
| ^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0277]: the trait bound `hashbrown::hash_map::DefaultHashBuilder: Clone` is not satisfied
--> src\lfu.rs:31:5
|
28 | #[derive(Clone)]
| ----- in this derive macro expansion
...
31 | hasher: DefaultHashBuilder,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `hashbrown::hash_map::DefaultHashBuilder`
|
= note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0599]: no variant or associated item named `default` found for enum `hashbrown::hash_map::DefaultHashBuilder` in the current scope
--> src\lfu.rs:38:41
|
38 | hasher: DefaultHashBuilder::default(),
| ^^^^^^^ variant or associated item not found in `DefaultHashBuilder`
error[E0599]: no method named `build_hasher` found for enum `hashbrown::hash_map::DefaultHashBuilder` in the current scope
--> src\lfu.rs:49:33
|
49 | let mut s = self.hasher.build_hasher();
| ^^^^^^^^^^^^ method not found in `DefaultHashBuilder`
warning: unused import: `Hasher`
--> src\lfu.rs:15:37
|
15 | use core::hash::{BuildHasher, Hash, Hasher};
| ^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
warning: unused import: `BuildHasher`
--> src\lfu.rs:15:18
|
15 | use core::hash::{BuildHasher, Hash, Hasher};
| ^^^^^^^^^^^
Some errors have detailed explanations: E0277, E0433, E0599, E0658.
For more information about an error, try `rustc --explain E0277`.
warning: `caches` (lib) generated 2 warnings
error: could not compile `caches` (lib) due to 124 previous errors; 2 warnings emitted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment