-
Notifications
You must be signed in to change notification settings - Fork 211
Description
From this discussion in a PR: #1026 (comment)
It's mostly a matter of consistency and surprise factor -- when I see
core::, my association is immediatelyno_std, but maybe the Rust community sees this differently, and usingcorewhen it suffices is good practice.Most of the codebase currently uses
std::though, with a handful ofcore::occurrences for things likecore::cmp::Ord,core::marker::PhantomData-- but even those are not used consistently. It's only a cosmetic issue though.
While no_std should be irrelevant for all the main, openly available targets, it might be slightly relevant for consoles or other obscure platforms. If the cost to support it is reasonably low, it should be a nice-to-have.
Otherwise, we can change all imports from core to std for consistency.