mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Fix few bugs in closure capture computation, and add tests
Also create a test infrastructure for capture computation.
This commit is contained in:
parent
9b724459b5
commit
da931e7398
4 changed files with 291 additions and 3 deletions
|
@ -4133,6 +4133,7 @@ impl ClosureCapture {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, PartialEq, Eq)]
|
||||
pub enum CaptureKind {
|
||||
SharedRef,
|
||||
UniqueSharedRef,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue