You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0f65864
Browse filesBrowse the repository at this point in the historyBrowse files
`stable_sort` rules had 2 version of rules: one that takes a lambda and
one that takes a function pointer. This PR removes the duplication by
adding a new trait in libcc2rs: Callable.
Callable is implemented by `Fn` (closures, safe function items, safe
function pointers) and `unsafe fn` pointers. Unsafe functoin items reach
the `Callable` trait to an explicit cast to `unsafe fn` pointers because
they don't implement `Fn`.
0 commit comments