Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use interior mutability in translaion contexts instead of passing mutable borrows everywhere. #1355

Merged
merged 1 commit into from
Feb 12, 2025

Conversation

jhjourdan
Copy link
Collaborator

The crucial point is the use of OnceMap, which provides a hash map where we can add new elements using a shared borrow and where we can get interior shared borrows.

@jhjourdan jhjourdan force-pushed the interior_mutable_contexts branch from 63533f6 to e03b3a4 Compare February 12, 2025 08:34
@jhjourdan jhjourdan enabled auto-merge February 12, 2025 08:35
@jhjourdan jhjourdan merged commit f4b9eda into master Feb 12, 2025
6 checks passed
@jhjourdan jhjourdan deleted the interior_mutable_contexts branch February 12, 2025 08:39
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.

1 participant