-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Borrow checker should exploit information provided by match alternatives #13956
Comments
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Feb 13, 2023
Update command-group from 1.0.8 to 2.0.1 With rust-lang#13552 the depencency of on the command-group crate was introduced, which also introduced a dependency on nix. That version of nix does not build on Haiku. This change introduces a newer version of command-group, which also updates nix from 0.22.3 to 0.26.1, which is compatible on Haiku.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following code gives a borrow checker error because the borrow of
a
in the result ofa.foo()
overlaps with the mutable borrow ofa.bar()
:The borrow checker should be able to recognize that the
None
alternative of matching anOption<&T>
can't contain a borrowed pointer.The text was updated successfully, but these errors were encountered: