mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
Add hover for closure
This commit is contained in:
parent
370b72c7dd
commit
5df545b3f0
7 changed files with 249 additions and 7 deletions
|
@ -62,7 +62,7 @@ mod path;
|
|||
mod expr;
|
||||
mod pat;
|
||||
mod coerce;
|
||||
mod closure;
|
||||
pub(crate) mod closure;
|
||||
mod mutability;
|
||||
|
||||
/// The entry point of type inference.
|
||||
|
@ -426,7 +426,7 @@ impl InferenceResult {
|
|||
_ => None,
|
||||
})
|
||||
}
|
||||
pub(crate) fn closure_info(&self, closure: &ClosureId) -> &(Vec<CapturedItem>, FnTrait) {
|
||||
pub fn closure_info(&self, closure: &ClosureId) -> &(Vec<CapturedItem>, FnTrait) {
|
||||
self.closure_info.get(closure).unwrap()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue