Skip to content

Add HashMap::rustc_try_insert#722

Merged
cuviper merged 2 commits intorust-lang:mainfrom
cuviper:rustc_try_insert
Apr 20, 2026
Merged

Add HashMap::rustc_try_insert#722
cuviper merged 2 commits intorust-lang:mainfrom
cuviper:rustc_try_insert

Conversation

@cuviper
Copy link
Copy Markdown
Member

@cuviper cuviper commented Apr 20, 2026

This works like try_insert but with RustcOccupiedEntry in the error
case. The error also contains the attempted key as requested in the
upstream try_insert tracking issue.

This works like `try_insert` but with `RustcOccupiedEntry` in the error
case. The error also contains the attempted key as requested in the
upstream `try_insert` tracking issue.
Comment thread src/rustc_entry.rs Outdated
@clarfonthey
Copy link
Copy Markdown
Contributor

Looks okay to me with one minor comment. Would be cool with you merging after that's fixed.

@cuviper cuviper added this pull request to the merge queue Apr 20, 2026
Merged via the queue into rust-lang:main with commit 420e83b Apr 20, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants