Fix few bugs in closure capture computation, and add tests

Also create a test infrastructure for capture computation.
This commit is contained in:
Chayim Refael Friedman 2024-08-24 22:35:49 +03:00
parent 9b724459b5
commit da931e7398
4 changed files with 291 additions and 3 deletions

View file

@ -4133,6 +4133,7 @@ impl ClosureCapture {
}
}
#[derive(Clone, Copy, PartialEq, Eq)]
pub enum CaptureKind {
SharedRef,
UniqueSharedRef,