mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
handle match scrutinee in closure captures
This commit is contained in:
parent
e8ae2d3976
commit
c5ea2d7adc
8 changed files with 137 additions and 10 deletions
|
@ -389,7 +389,7 @@ pub struct InferenceResult {
|
|||
standard_types: InternedStandardTypes,
|
||||
/// Stores the types which were implicitly dereferenced in pattern binding modes.
|
||||
pub pat_adjustments: FxHashMap<PatId, Vec<Ty>>,
|
||||
pub pat_binding_modes: FxHashMap<PatId, BindingMode>,
|
||||
pub binding_modes: ArenaMap<BindingId, BindingMode>,
|
||||
pub expr_adjustments: FxHashMap<ExprId, Vec<Adjustment>>,
|
||||
pub(crate) closure_info: FxHashMap<ClosureId, (Vec<CapturedItem>, FnTrait)>,
|
||||
// FIXME: remove this field
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue