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:
commit
b6a23b8537
18 changed files with 128 additions and 142 deletions
|
@ -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(),
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue