Closed EFanZh closed 1 year ago
LGTM. I think we also remove
__private_api
and use::core
instead, but this way works just as well.
I think ::core
is not necessarily the core
crate from the standard library. Like the log
crate can rename core
as std
, downstream crates can also rename some other crate as core
:
extern crate log as core;
fn main() {
::core::info!("xxx");
}
Since we have dropped support for pre-1.30 compilers.