Skip to content

Commit

Permalink
Notes - Forgot to save the SBC note
Browse files Browse the repository at this point in the history
  • Loading branch information
thepowersgang committed Aug 26, 2023
1 parent 97bcdae commit 028926a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Notes/ISSUE-StaticBorrowClosures.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ Options:
- ISSUE: When a closure is extracted in SBC, its generics change from a mix of I/M into just M. That mapping cannot be applied to the various instances around. The issue is the node changing, not the type leaking and needing to be monomorphised.
>> Maybe I can leave a tag on the borrow node that indicates that it's static? And then use a second pass to make the actual static?
- Instead of making closure expansion two-phase, make SBC two-phase. First pass tags static borrows, and second pass extracts/replaces them.
- One small change to lifetime_infer to
- One small change to lifetime_infer to make it treat a borrow with this tag as `&'static` even if its body isn't.

0 comments on commit 028926a

Please sign in to comment.