Skip to content

Commit c63ba87

Browse files
committed
internal: make salsa::Id::from_u32 pub, but #[doc(hidden)]
1 parent fbc78e5 commit c63ba87

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/id.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ impl Id {
2929
/// In general, you should not need to create salsa ids yourself,
3030
/// but it can be useful if you are using the type as a general
3131
/// purpose "identifier" internally.
32+
#[doc(hidden)]
3233
#[track_caller]
33-
pub(crate) const fn from_u32(x: u32) -> Self {
34+
pub const fn from_u32(x: u32) -> Self {
3435
Id {
3536
value: match NonZeroU32::new(x + 1) {
3637
Some(v) => v,

0 commit comments

Comments
 (0)