This repository has been archived by the owner on Apr 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Use min capture results everywhere #18
Comments
arora-aman
changed the title
Write min capture results to the final TypechkResults
Write min capture results to TypechkResults
Oct 15, 2020
This will also close rust-lang/rust#76005, since the span will available using |
Note once this is implemented we can remove Span from |
For ease, we can
|
arora-aman
added a commit
to sexxi-goose/rust
that referenced
this issue
Nov 15, 2020
Clippy uses `ExprUseVisitor` and atleast in some cases it runs after writeback. We currently don't writeback the min_capture results of closure capture analysis since no place within the compiler itself uses it. In the short term to fix clippy we add a fallback when walking captures of a closure to check if closure_capture analysis has any entries in it. Writeback for closure_min_captures will be implemented in rust-lang/project-rfc-2229#18
7 tasks
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Dec 12, 2020
…nikomatsakis Capture precise paths in THIR and MIR This PR allows THIR and MIR to use the result of the new capture analysis to actually capture precise paths To achieve we: - Writeback min capture results to TypeckResults - Move handling upvars to PlaceBuilder in mir_build - Lower precise paths in THIR build by reading min_captures - Search for ancestors in min_capture when trying to build a MIR place which starts off of an upvar Closes: rust-lang/project-rfc-2229#10 Partly implements: rust-lang/project-rfc-2229#18 Work that remains (not in this PR): - [ ] [Known bugs when feature gate is enabled](https://github.com/rust-lang/project-rfc-2229/projects/1?card_filter_query=label%3Abug) - [ ] Use min_capure_map for - [ ] Liveness analysis - [ ] rustc_mir/interpret/validity.rs - [ ] regionck - [ ] rust-lang/project-rfc-2229#8 - [ ] remove closure_captures and upvar_capture_map r? `@ghost`
arora-aman
changed the title
Write min capture results to TypechkResults
Use min capture results everywhere
Jan 6, 2021
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Mar 19, 2021
…r=nikomatsakis Replace closures_captures and upvar_capture with closure_min_captures Removed all uses of closures_captures and upvar_capture and refactored code to work with closure_min_captures. This also involved removing functions that were no longer needed like the bridge. Closes rust-lang/project-rfc-2229#18 r? `@nikomatsakis`
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Currently, min capture analysis results are written to MaybeTypeckResults, which is a transient data structure within rustc_typeck.
For the results to be available post-typeck they need to be written out to TypeckResults.
The writeback stage in
rustc_typeck/src/check/writeback.rs
needs to be updated to add the analysis results to the final results table.The text was updated successfully, but these errors were encountered: