rust/library/core/src
许杰友 Jieyou Xu (Joe) 074256988f
Rollup merge of #143130 - xizheyin:142966, r=ibraheemdev
doc(std): clarify `NonZero<T>` usage limitation in doc comment

Closes rust-lang/rust#142966

This PR clarifies `NonZero<T>` usage limitation in doc comment and fixes a typo.

r? libs
2025-07-07 19:45:38 +08:00
..
alloc Add some track_caller info to precondition panics 2025-05-21 09:10:06 -04:00
array simplify receivers for some array method calls 2025-07-03 14:39:27 +00:00
ascii Add some track_caller info to precondition panics 2025-05-21 09:10:06 -04:00
async_iter Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
bstr Replace colon with parentheses, add missing period 2025-04-21 10:48:46 -04:00
cell Update version placeholders 2025-07-01 10:54:33 -07:00
char Add diagnostic items for Clippy 2025-06-20 17:53:09 +02:00
clone CloneToUninit: use a private specialization trait 2024-07-29 20:44:43 +03:00
cmp Use generic NonZero everywhere in core. 2024-02-22 15:17:33 +01:00
convert library/compiler: add PointeeSized bounds 2025-06-16 23:04:33 +00:00
ffi move the va_copy, va_arg and va_end to core::intrinsics 2025-07-05 09:18:49 +02:00
fmt Rollup merge of #134006 - klensy:typos, r=nnethercote 2025-07-03 13:29:35 +02:00
future Address documentation issues identified with Future 2025-06-07 20:13:54 +01:00
hash Remove some unsized tuple impls now that we don't support unsizing tuples anymore 2025-07-02 14:17:54 +00:00
intrinsics move the va_copy, va_arg and va_end to core::intrinsics 2025-07-05 09:18:49 +02:00
io setup CI and tidy to use typos for spellchecking and fix few typos 2025-07-03 10:51:06 +03:00
iter Rollup merge of #143067 - GrigorenkoPV:142269, r=workingjubilee 2025-06-26 20:15:30 -04:00
macros Rollup merge of #142704 - tgross35:remove-concat_idents, r=fee1-dead 2025-06-24 15:39:38 +02:00
marker phantom_variance_markers: fix identifier usage in macro 2025-06-22 16:06:25 -07:00
mem miri: improve errors for type validity assertion failures 2025-07-02 17:47:46 +02:00
net Add Ipv4Addr and Ipv6Addr diagnostic items 2025-05-14 09:34:25 +02:00
num Rollup merge of #143130 - xizheyin:142966, r=ibraheemdev 2025-07-07 19:45:38 +08:00
ops Rollup merge of #143040 - SciMind2460:patch-1, r=workingjubilee 2025-07-04 23:26:20 -07:00
panic Use a NonNull pointer 2025-06-23 13:45:56 +00:00
pin Remove PointerLike trait 2025-07-03 20:03:49 +00:00
prelude Remove the deprecated concat_idents! macro 2025-06-24 11:07:16 +00:00
ptr Remove PointerLike trait 2025-07-03 20:03:49 +00:00
range Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
slice use div_ceil instead of manual logic 2025-07-05 10:55:42 +02:00
str lib: more eagerly return self.len() from ceil_char_boundary 2025-07-07 02:14:58 +03:00
sync core docs: improve clarity of considerations about atomic CAS operations 2025-06-10 17:14:04 +02:00
task Rollup merge of #142158 - xizheyin:141617, r=jdonszelmann 2025-06-13 05:16:56 +02:00
unicode Remove unneeded parentheses. 2025-03-08 12:56:00 +01:00
any.rs Stop backends from needing to support nullary intrinsics 2025-06-30 08:04:19 +00:00
arch.rs update version placeholders 2025-05-12 15:33:30 +02:00
ascii.rs add doc(alias("AsciiChar")) to core::ascii::Char 2025-06-20 11:11:51 -05:00
asserting.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
bool.rs Add methods for converting bool to Result<(), E> 2025-06-19 23:20:06 +02:00
borrow.rs Suggest borrowing on fn argument that is impl AsRef 2024-05-09 23:25:31 +00:00
cell.rs Remove PointerLike trait 2025-07-03 20:03:49 +00:00
clone.rs Make Clone a const_trait 2025-06-19 16:36:33 -07:00
cmp.rs remove redundant #[must_use] 2025-07-03 13:44:35 +00:00
contracts.rs Apply suggestions from code review 2025-04-10 16:32:56 -07:00
default.rs Marks ADT live if it appears in pattern 2025-06-14 13:44:43 +08:00
error.md Mention core's PanicInfo in error.md. 2024-06-11 15:47:00 +02:00
error.rs Detect more cases of unused_parens around types 2025-07-01 08:56:20 +02:00
escape.rs Get rid of EscapeDebugInner. 2025-06-15 22:08:41 +02:00
hint.rs Auto merge of #129658 - saethlin:spare-a-crumb, r=jhpratt 2025-05-27 22:11:53 +00:00
internal_macros.rs Use cfg_match in core 2025-03-26 14:32:35 -04:00
lib.miri.rs add 'x.py miri', and make it work for 'library/{core,alloc,std}' 2024-04-03 20:27:20 +02:00
lib.rs setup CI and tidy to use typos for spellchecking and fix few typos 2025-07-03 10:51:06 +03:00
marker.rs Remove PointerLike trait 2025-07-03 20:03:49 +00:00
option.rs Rollup merge of #142158 - xizheyin:141617, r=jdonszelmann 2025-06-13 05:16:56 +02:00
panic.rs update cfgs 2024-11-27 15:14:54 +00:00
panicking.rs Insert checks for enum discriminants when debug assertions are enabled 2025-06-27 09:37:36 +00:00
pat.rs update cfgs 2025-04-09 12:29:59 +01:00
pin.rs setup CI and tidy to use typos for spellchecking and fix few typos 2025-07-03 10:51:06 +03:00
primitive.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
primitive_docs.rs Link to 2024 edition page for ! fallback changes 2025-07-03 10:20:53 +00:00
random.rs random: add tracking issue, address other comments 2024-09-23 10:36:16 +02:00
range.rs update cfg(bootstrap) 2025-02-18 09:32:44 -08:00
result.rs Update version placeholders 2025-07-01 10:54:33 -07:00
time.rs Split duration_constructors to get non-controversial bits out faster. 2025-05-09 22:52:39 -04:00
tuple.rs Remove some unsized tuple impls now that we don't support unsizing tuples anymore 2025-07-02 14:17:54 +00:00
ub_checks.rs Add some track_caller info to precondition panics 2025-05-21 09:10:06 -04:00
unit.rs core: Make Debug impl of raw pointers print metadata if present 2025-02-15 17:27:55 +01:00
unsafe_binder.rs Add unwrap_unsafe_binder and wrap_unsafe_binder macro operators 2024-12-12 16:29:40 +00:00