Skip to content

Commit

Permalink
Partially work around ridiculous rust-analyzer behavior
Browse files Browse the repository at this point in the history
As far as I can tell there is still no way to prevent it from importing
those traits from this private path: dyn_clone::__private::Clone.
  • Loading branch information
dtolnay committed Aug 17, 2023
1 parent ef128eb commit c6685d5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,13 @@ mod macros;
// Not public API.
#[doc(hidden)]
pub mod __private {
pub use alloc::boxed::Box;
#[doc(hidden)]
pub use core::clone::Clone;
#[doc(hidden)]
pub use core::marker::{Send, Sync};

#[doc(hidden)]
pub type Box<T> = alloc::boxed::Box<T>;
}

mod sealed {
Expand Down

0 comments on commit c6685d5

Please sign in to comment.