Many times I found myself refactoring a closure to a standalone fn, for many reasons (the most recent one being closures unable to be generic). It'd be nice if rust-analyzer can do that automatically, escalating captures to parameters.
Maybe I can work on this myself later.
@rustbot label +A-assists