Skip to content

Commit 2bb8ea3

Browse files
committed
Auto merge of rust-lang#132581 - workingjubilee:rollup-4wj318p, r=workingjubilee
Rollup of 6 pull requests Successful merges: - rust-lang#126136 (Call the target libdir target libdir) - rust-lang#132516 (Add bad-reg inline assembly ui test for RISC-V and s390x) - rust-lang#132521 (replace manual time convertions with std ones, comptime time format parsing) - rust-lang#132560 (Remove outdated tidy license fixmes) - rust-lang#132563 (Modify `NonZero` documentation to reference the underlying integer type) - rust-lang#132574 (compiler: Directly use rustc_abi almost everywhere) r? `@ghost` `@rustbot` modify labels: rollup
2 parents 4390c35 + 699702f commit 2bb8ea3

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

core/src/num/nonzero.rs

+9-1
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,15 @@ macro_rules! nonzero_integer {
472472
reversed = $reversed:literal,
473473
leading_zeros_test = $leading_zeros_test:expr,
474474
) => {
475-
/// An integer that is known not to equal zero.
475+
#[doc = sign_dependent_expr!{
476+
$signedness ?
477+
if signed {
478+
concat!("An [`", stringify!($Int), "`] that is known not to equal zero.")
479+
}
480+
if unsigned {
481+
concat!("A [`", stringify!($Int), "`] that is known not to equal zero.")
482+
}
483+
}]
476484
///
477485
/// This enables some memory layout optimization.
478486
#[doc = concat!("For example, `Option<", stringify!($Ty), ">` is the same size as `", stringify!($Int), "`:")]

0 commit comments

Comments
 (0)