about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2025-08-23 14:51:59 +0000
committerGitHub <noreply@github.com>2025-08-23 14:51:59 +0000
commit9e1c9eb0de22854c5d38d60eba2fbe344a5c8ae4 (patch)
tree8c4aa00b09d4c61318c50c2d8ee49e0c60e69bcd /tests
parent7dd11b8119aae6d9d3b8b2c29966a052857aabc6 (diff)
parentcf3f61ce161e057199c935caeb4ca88063e6bb94 (diff)
downloadrust-9e1c9eb0de22854c5d38d60eba2fbe344a5c8ae4.tar.gz
rust-9e1c9eb0de22854c5d38d60eba2fbe344a5c8ae4.zip
`entry`: link to `Entry` API if can't make a suggestion (#15546)
For https://github.com/rust-lang/rust-clippy/issues/11598

changelog: [`entry`] link to `Entry` API if can't make a suggestion
Diffstat (limited to 'tests')
-rw-r--r--tests/ui/entry_unfixable.stderr5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ui/entry_unfixable.stderr b/tests/ui/entry_unfixable.stderr
index 0197d2ab4cf..f92f472512f 100644
--- a/tests/ui/entry_unfixable.stderr
+++ b/tests/ui/entry_unfixable.stderr
@@ -10,6 +10,7 @@ LL | |                 false
 LL | |             }
    | |_____________^
    |
+   = help: consider using the `Entry` API: https://doc.rust-lang.org/std/collections/struct.HashMap.html#entry-api
    = note: `-D clippy::map-entry` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::map_entry)]`
 
@@ -24,6 +25,8 @@ LL | |     } else {
 LL | |         hm.insert(key, true);
 LL | |     }
    | |_____^
+   |
+   = help: consider using the `Entry` API: https://doc.rust-lang.org/std/collections/struct.HashMap.html#entry-api
 
 error: usage of `contains_key` followed by `insert` on a `HashMap`
   --> tests/ui/entry_unfixable.rs:80:13
@@ -36,6 +39,8 @@ LL | |                 let interner = INTERNER.lock().unwrap();
 LL | |                 return Err(interner.resolve(name).unwrap().to_owned());
 LL | |             }
    | |_____________^
+   |
+   = help: consider using the `Entry` API: https://doc.rust-lang.org/std/collections/struct.HashMap.html#entry-api
 
 error: aborting due to 3 previous errors