2023-09-23 17:34:05 +00:00
|
|
|
error: manual implementation of `BuildHasher::hash_one`
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/manual_hash_one.rs:9:5
|
2023-09-23 17:34:05 +00:00
|
|
|
|
|
|
|
|
LL | hasher.finish()
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::manual-hash-one` implied by `-D warnings`
|
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::manual_hash_one)]`
|
|
|
|
help: try
|
|
|
|
|
|
|
|
|
LL ~
|
|
|
|
LL ~
|
|
|
|
LL ~ b.hash_one(&true)
|
|
|
|
|
|
|
|
|
|
|
|
|
error: manual implementation of `BuildHasher::hash_one`
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/manual_hash_one.rs:15:13
|
2023-09-23 17:34:05 +00:00
|
|
|
|
|
|
|
|
LL | let _ = hasher.finish();
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: try
|
|
|
|
|
|
|
|
|
LL ~
|
|
|
|
LL ~
|
|
|
|
LL ~ let _ = b.hash_one(&s[4..10]);
|
|
|
|
|
|
|
|
|
|
|
|
|
error: manual implementation of `BuildHasher::hash_one`
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/manual_hash_one.rs:21:13
|
2023-09-23 17:34:05 +00:00
|
|
|
|
|
|
|
|
LL | let _ = hasher.finish();
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: try
|
|
|
|
|
|
|
|
|
LL ~
|
|
|
|
LL ~
|
|
|
|
LL ~ let _ = b.hash_one(&v);
|
|
|
|
|
|
|
|
|
|
|
|
|
error: manual implementation of `BuildHasher::hash_one`
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/manual_hash_one.rs:88:13
|
2023-09-23 17:34:05 +00:00
|
|
|
|
|
|
|
|
LL | let _ = hasher.finish();
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: try
|
|
|
|
|
|
|
|
|
LL ~
|
|
|
|
LL ~
|
|
|
|
LL ~ let _ = b.hash_one(&v);
|
|
|
|
|
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|