Skip to content

Commit

Permalink
Delete tombstones of the __private module
Browse files Browse the repository at this point in the history
These are previous names of the `__private` module -- first
`serde::export` then `serde::private` then `serde::__private` -- in all
cases marked `doc(hidden)` and documented as not public API. Leaving a
tombstone made rustc give a better diagnostic "module is private" rather
than "unresolved import". But the rename to `__private` was 2.5 years
ago in dd1f4b4 so it's unlikely anyone
is still benefiting from the tombstone at this point.
  • Loading branch information
dtolnay committed Jul 31, 2023
1 parent 339dca8 commit 8a8a8a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions serde/src/de/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1231,9 +1231,9 @@ pub trait Deserializer<'de>: Sized {
self,
_: crate::actually_private::T,
visitor: V,
) -> Result<crate::private::de::Content<'de>, Self::Error>
) -> Result<crate::__private::de::Content<'de>, Self::Error>
where
V: Visitor<'de, Value = crate::private::de::Content<'de>>,
V: Visitor<'de, Value = crate::__private::de::Content<'de>>,
{
self.deserialize_any(visitor)
}
Expand Down
5 changes: 0 additions & 5 deletions serde/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,11 +307,6 @@ pub use crate::ser::{Serialize, Serializer};
#[path = "private/mod.rs"]
pub mod __private;

#[allow(unused_imports)]
use self::__private as export;
#[allow(unused_imports)]
use self::__private as private;

#[path = "de/seed.rs"]
mod seed;

Expand Down

0 comments on commit 8a8a8a7

Please sign in to comment.