-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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 check error with hash maps #6021
Labels
A-lifetimes
Area: Lifetimes / regions
Comments
This is a bug in the existing borrow checker (and the error messages were not updated to reflect the absence of purity). Both problems are addressed in my branch. |
This was referenced May 6, 2013
Closed
Closed
Closed
This was referenced May 7, 2013
Closed
Closed
Merged
bors
added a commit
that referenced
this issue
May 7, 2013
…omatsakis This rather sprawling branch refactors the borrow checker and much of the region code, addressing a number of outstanding issues. I will close them manually after validating that there are test cases for each one, but here is a (probably partial) list: - #4903: Flow sensitivity - #3387: Moves in overloaded operators - #3850: Region granularity - #4666: Odd loaning errors - #6021: borrow check errors with hashmaps - #5910: @mut broken cc #5047 (take 5)
This precise code no longer exists, but I believe the situation to be resolved (modulo #6269) |
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
Sep 24, 2020
…r=flip1995 Treat refs to arrays the same as owned arrays in `indexing_slicing` and `out_of_bounds_indexing` Fixes rust-lang#6021 ...and remove `walk_ptrs_ty` in favour of `peel_refs`, which came in 2019. --- changelog: Fix a false positive in `indexing_slicing` and `out_of_bounds_indexing` where references to arrays weren't treated as arrays.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In
trans::reachable
, there is the following code:A comment says that naming
rmap
and giving it an explicit type should not be necessary, but with incoming, it still is. The error if I inlinermap
is:This confuses me since I thought we removed purity. Anyway, this was an XXX and I figured I would make it into a proper issue. (@nikomatsakis may know more.)
The text was updated successfully, but these errors were encountered: