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

Rust backend: allow const_item_mutation warning, simplify deref_addrof pattern #487

Merged
merged 3 commits into from
Sep 24, 2024

Conversation

R1kM
Copy link
Collaborator

@R1kM R1kM commented Sep 20, 2024

With the recent addition of mutability inference, accesses to top-level constants do not require mutable borrows anymore, which was the cause of the const_item_mutation warning.

Additionally, this PR adds a micropass to simplify the deref_addrof pattern, e.g., *&[]

@msprotz
Copy link
Contributor

msprotz commented Sep 20, 2024

Not sure why CI failed here

@msprotz msprotz merged commit 5fdba7f into master Sep 24, 2024
2 checks passed
@msprotz msprotz deleted the afromher_rs branch September 24, 2024 15:24
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