Skip to content

Commit

Permalink
internal: make salsa::Id::new pub, but #[doc(hidden)]
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbarsky committed Dec 17, 2024
1 parent 3b42b9c commit 35fd2af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 35fd2af

Please sign in to comment.