Skip to content

Commit

Permalink
[macro_util] Add comment to core_reexport (#586)
Browse files Browse the repository at this point in the history
* [macro_util] Add comment to core_reexport

Add a comment explaining why we don't change core_reexport
to `pub use core as core_reexport`.

* [macro_util] Clarify comment on core_reexport
  • Loading branch information
joshlf authored Nov 3, 2023
1 parent 2ab4f2a commit c9772d9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/macro_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,11 @@ pub unsafe fn transmute_mut<'dst, 'src: 'dst, Src: 'src, Dst: 'dst>(
unsafe { &mut *dst }
}

// NOTE: We can't change this to a `pub use core as core_reexport` until [1] is
// fixed or we update to a semver-breaking version (as of this writing, 0.8.0)
// on the `main` branch.
//
// [1] https://github.com/obi1kenobi/cargo-semver-checks/issues/573
pub mod core_reexport {
pub use core::*;

Expand Down

0 comments on commit c9772d9

Please sign in to comment.