Use differently named __private module per patch release

This commit is contained in:
David Tolnay
2025-09-15 09:48:58 -07:00
parent 957996f5fb
commit cbe98a9888
7 changed files with 54 additions and 10 deletions
+4 -1
View File
@@ -96,7 +96,10 @@ struct private;
impl private {
fn ident(&self) -> Ident {
Ident::new("__private", Span::call_site())
Ident::new(
concat!("__private", env!("CARGO_PKG_VERSION_PATCH")),
Span::call_site(),
)
}
}