Closed
Description
std::sync::ONCE_INIT
is in effect just an alias to std::sync::Once::new()
, anyone using the former can use the latter since v1.2.0. I guess we can't outright deprecate ONCE_INIT
given our backwards compatibility policy, but I would like to lint on its usage and at the very least call it out in the documentation ("use Once::new()
instead").
This also opens the conversation around the larger problem of what to do with the parts of the API that would get superseded by new features, like const generics, or in this case const fns.