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

Mutable references (&mut T) with complex aliasing (meta-issue) #420

Open
W95Psp opened this issue Jan 5, 2024 · 1 comment
Open

Mutable references (&mut T) with complex aliasing (meta-issue) #420

W95Psp opened this issue Jan 5, 2024 · 1 comment
Labels
keep-open meta unsupported-rust Rust code rejected by hax. Unless marked wontfix, we want to support it soon. wontfix-v1 This will not be worked on, but might after v1.

Comments

@W95Psp
Copy link
Collaborator

W95Psp commented Jan 5, 2024

Hax promotes a functional style in Rust: it doesn't aim at supporting complex mutation schemes.

We allow:

  • &mut arguments on user-defined functions;
  • pass &mut arguments to any function or operator;
  • use of certain &mut-returning functions.

We disallow:

  1. defining &mut-returning functions (see Full &mut support #418);
  2. aliasing an &mut-typed variable (i.e. fn f(x: &mut u8) { let y = x; ...}, see Unsupported: implicit reborrowing #419).
@W95Psp W95Psp added wontfix This will not be worked on unsupported-rust Rust code rejected by hax. Unless marked wontfix, we want to support it soon. wontfix-v1 This will not be worked on, but might after v1. and removed wontfix This will not be worked on labels Jan 5, 2024
Copy link

github-actions bot commented Oct 1, 2024

This issue has been marked as stale due to a lack of activity for 60 days. If you believe this issue is still relevant, please provide an update or comment to keep it open. Otherwise, it will be closed in 7 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
keep-open meta unsupported-rust Rust code rejected by hax. Unless marked wontfix, we want to support it soon. wontfix-v1 This will not be worked on, but might after v1.
Projects
No open projects
Status: No status
Development

No branches or pull requests

2 participants