std: Unsafe-wrap HashMap::get_many_unchecked_mut · model-checking/verify-rust-std@4679f9a (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit 4679f9a
std: Unsafe-wrap HashMap::get_many_unchecked_mut
File tree
1 file changed
lines changed
1 file changed
lines changed
Lines changed: 1 addition & 3 deletions
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
1 | -#![allow(unsafe_op_in_unsafe_fn)] | |
2 | - | |
3 | 1 | #[cfg(test)] |
4 | 2 | mod tests; |
5 | 3 | |
@@ -1020,7 +1018,7 @@ where | ||
1020 | 1018 | K: Borrow<Q>, |
1021 | 1019 | Q: Hash + Eq, |
1022 | 1020 | { |
1023 | -self.base.get_many_unchecked_mut(ks) | |
1021 | +unsafe { self.base.get_many_unchecked_mut(ks) } | |
1024 | 1022 | } |
1025 | 1023 | |
1026 | 1024 | /// Returns `true` if the map contains a value for the specified key. |