-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Unboxed closure metabug #18101
Copy link
Copy link
Closed
Labels
A-closuresArea: Closures (`|…| { … }`)Area: Closures (`|…| { … }`)metabugIssues about issues themselves ("bugs about bugs")Issues about issues themselves ("bugs about bugs")
Metadata
Metadata
Assignees
Labels
A-closuresArea: Closures (`|…| { … }`)Area: Closures (`|…| { … }`)metabugIssues about issues themselves ("bugs about bugs")Issues about issues themselves ("bugs about bugs")
Type
Fields
Give feedbackNo fields configured for issues without a type.
This is a metabug for tracking work remaining to be done on unboxed closures. It contains only the high-level remaining issues. For a comprehensive list of closure bugs, search using the A-closures label.
1.0 Issues
Fntraits be treated like everything in trait selectionFnOnceFnMutfor&mut FwhereF: FnMutCompleted issues
Fntraits an associated type #20871 -- Make return type of theFntraits an associated typeFn,FnMut, etc #16640 -- Implement unboxed closure upvar inferencemovewhen passing an unboxed closure to Fn* + Send #18799 -- InfermoveusingSendtrait|&mut:|wants (Copy) upvar to be mutable when it shouldn't #16749 --|&mut:|wants (Copy) upvar to be mutable when it shouldn'tFntraits #19730 -- "perfect forwarding" traits are not accepted by HRTBSend, but sugary version|&: ...|does not #16560 -- Struct + Fn fulfillsSend, but sugary version|&: ...|does notref-prefixed closures still capture by value #16814 -- Unboxed closures:ref-prefixed closures still capture by valueBox<Fn(int) -> int + 'static>is not accepted: "explicit lifetime bound required" #18772 --Box<Fn() + 'static>not accepted