1
Fork 0

Auto merge of #121454 - reitermarkus:generic-nonzero-library, r=dtolnay

Use generic `NonZero` everywhere in `library`.

Tracking issue: https://github.com/rust-lang/rust/issues/120257

Use generic `NonZero` everywhere (except stable examples).

r? `@dtolnay`
This commit is contained in:
bors 2024-02-23 14:27:33 +00:00
commit b6a23b8537
18 changed files with 128 additions and 142 deletions

View file

@ -136,7 +136,7 @@ thread_local! {
arena: arena::Arena::new(),
names: fxhash::FxHashMap::default(),
strings: Vec::new(),
// Start with a base of 1 to make sure that `NonZeroU32` works.
// Start with a base of 1 to make sure that `NonZero<u32>` works.
sym_base: NonZero::new(1).unwrap(),
});
}