From 35fd2afe38b9010c8c6439c894f825e49032af62 Mon Sep 17 00:00:00 2001 From: David Barsky Date: Tue, 3 Dec 2024 16:16:03 +0000 Subject: [PATCH] internal: make `salsa::Id::new` pub, but `#[doc(hidden)]` --- src/id.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/id.rs b/src/id.rs index 859039ac3..06b54b88b 100644 --- a/src/id.rs +++ b/src/id.rs @@ -29,8 +29,9 @@ impl Id { /// In general, you should not need to create salsa ids yourself, /// but it can be useful if you are using the type as a general /// purpose "identifier" internally. + #[doc(hidden)] #[track_caller] - pub(crate) const fn from_u32(x: u32) -> Self { + pub const fn from_u32(x: u32) -> Self { Id { value: match NonZeroU32::new(x + 1) { Some(v) => v,