Conversation
arora-aman
reviewed
Jan 30, 2021
Member
arora-aman
left a comment
There was a problem hiding this comment.
Just things that I feel need to chage. Will do nits later
194b37d to
cadf23b
Compare
arora-aman
requested changes
Jan 30, 2021
cadf23b to
92ae1ce
Compare
arora-aman
reviewed
Jan 31, 2021
92ae1ce to
5f854d3
Compare
arora-aman
requested changes
Feb 3, 2021
Member
There was a problem hiding this comment.
There are two fake read causes. One ForLet and one ForMatch. We probably should capture the correct one. I don't think it will be too much work to do that, but I think if this works fine for now, we should delay that until we fix bugs/ we get close to getting this to work.
751a599 to
84157b4
Compare
arora-aman
reviewed
Feb 21, 2021
src/test/ui/closures/2229_closure_analysis/run_pass/destructure_patterns-1.rs
Outdated
Show resolved
Hide resolved
523a104 to
31e3451
Compare
arora-aman
reviewed
Feb 25, 2021
Member
There was a problem hiding this comment.
Did you get a chance to try HashSet, because in case of
let c = || {
let (t1, _) = t;
let (_, t2) = t;
}we will introduce 2 fake reads, when one should suffice
Member
There was a problem hiding this comment.
Note to self: Read this logic properly
Member
Author
There was a problem hiding this comment.
Yes,
error[E0603]: module `as_place` is private
--> compiler/rustc_mir_build/src/build/mod.rs:2:25
|
2 | use crate::build::expr::as_place::PlaceBuilder;
| ^^^^^^^^ private module
|
note: the module `as_place` is defined here
--> compiler/rustc_mir_build/src/build/expr/mod.rs:65:1
|
65 | mod as_place;
| ^^^^^^^^^^^^^
error[E0603]: module `as_place` is private
--> compiler/rustc_mir_build/src/build/matches/mod.rs:8:25
|
8 | use crate::build::expr::as_place::PlaceBuilder;
| ^^^^^^^^ private module
|
note: the module `as_place` is defined here
--> compiler/rustc_mir_build/src/build/expr/mod.rs:65:1
|
65 | mod as_place;
| ^^^^^^^^^^^^^
error[E0603]: module `as_place` is private
--> compiler/rustc_mir_build/src/build/matches/simplify.rs:15:25
|
15 | use crate::build::expr::as_place::PlaceBuilder;
| ^^^^^^^^ private module
|
note: the module `as_place` is defined here
--> compiler/rustc_mir_build/src/build/expr/mod.rs:65:1
|
65 | mod as_place;
| ^^^^^^^^^^^^^
error[E0603]: module `as_place` is private
--> compiler/rustc_mir_build/src/build/matches/test.rs:8:25
|
8 | use crate::build::expr::as_place::PlaceBuilder;
| ^^^^^^^^ private module
|
note: the module `as_place` is defined here
--> compiler/rustc_mir_build/src/build/expr/mod.rs:65:1
|
65 | mod as_place;
| ^^^^^^^^^^^^^
error[E0603]: module `as_place` is private
--> compiler/rustc_mir_build/src/build/matches/util.rs:1:25
|
1 | use crate::build::expr::as_place::PlaceBuilder;
| ^^^^^^^^ private module
|
note: the module `as_place` is defined here
--> compiler/rustc_mir_build/src/build/expr/mod.rs:65:1
|
65 | mod as_place;
| ^^^^^^^^^^^^^
error: aborting due to 5 previous errors
Member
Author
|
Opened PR on rust-lang rust-lang#82536 |
d566cb4 to
9aca998
Compare
06ff810 to
459ebf8
Compare
459ebf8 to
88de9c2
Compare
88de9c2 to
189d206
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Using the following test:
The relevant log output is as follows: