rust/library/core/src
Matthias Krüger c6de7ca41a
Rollup merge of #142708 - Darksonn:location-len-without-nul, r=Mark-Simulacrum
Do not include NUL-terminator in computed length

This PR contains just the first commit of rust-lang/rust#142579 which changes it so that the string length stored in the `Location` is the length of the `&str` rather than the length of the `&CStr`. Since most users will want the `&str` length, it seems better to optimize for that use-case.

There should be no visible changes in the behavior or API.
2025-06-28 22:05:28 +02:00
..
alloc Add some track_caller info to precondition panics 2025-05-21 09:10:06 -04:00
array impl Default for array::IntoIter 2025-05-26 15:21:03 +08: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 Rollup merge of #129334 - ChayimFriedman2:more-lazy-methods, r=Amanieu 2025-05-10 16:26:01 +02: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 Corrected spelling mistake in c_str.rs 2025-06-24 15:30:32 -04:00
fmt Implement DesugaringKind::FormatLiteral 2025-06-22 10:58:25 +02:00
future update cfg(bootstrap) 2025-05-12 15:33:37 +02:00
hash library/compiler: add PointeeSized bounds 2025-06-16 23:04:33 +00:00
intrinsics library/compiler: add PointeeSized bounds 2025-06-16 23:04:33 +00:00
io Remove a panicking branch in BorrowedCursor::advance 2025-06-17 13:09:49 +02: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 Add diagnostic items for Clippy 2025-06-20 17:53:09 +02:00
net Add Ipv4Addr and Ipv6Addr diagnostic items 2025-05-14 09:34:25 +02:00
num integer docs: remove extraneous text 2025-06-20 20:38:29 +02:00
ops Add Sub, Mul, Div, Rem as const_traits 2025-06-25 17:41:27 +05:30
panic Use a NonNull pointer 2025-06-23 13:45:56 +00:00
pin centralize aliasing rules discussion in UnsafeCell docs 2025-06-07 21:57:45 +02:00
prelude Remove the deprecated concat_idents! macro 2025-06-24 11:07:16 +00:00
ptr Auto merge of #142613 - workingjubilee:rollup-yuod2hg, r=workingjubilee 2025-06-17 18:14:08 +00:00
range Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
slice Rollup merge of #142787 - samueltardieu:diag-items-for-clippy, r=Manishearth,Urgau 2025-06-21 10:53:26 +02:00
str Rollup merge of #142779 - Erk-:fix/core/142734, r=jhpratt 2025-06-24 11:20:08 +02: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 fix missing word in comment 2025-04-16 18:53:40 -07: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 Move select_unpredictable to the hint module 2025-04-13 01:34:25 +01:00
borrow.rs Suggest borrowing on fn argument that is impl AsRef 2024-05-09 23:25:31 +00:00
cell.rs make RefCell unstably const 2025-06-25 17:06:49 -07:00
clone.rs Make Clone a const_trait 2025-06-19 16:36:33 -07:00
cmp.rs Make PartialEq a const_trait 2025-06-23 08:45:26 +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 Remove #[cfg(not(test))] gates in core 2025-03-06 13:21:59 -08: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 make tidy-alphabetical use a natural sort 2025-06-25 22:52:38 +02:00
marker.rs library/compiler: add PointeeSized bounds 2025-06-16 23:04:33 +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 Add sym::macro_pin diagnostic item for core::pin::pin!() 2025-06-25 17:15:34 +02:00
primitive.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
primitive_docs.rs Rollup merge of #141947 - zachs18:patch-4, r=workingjubilee,traviscross 2025-06-12 20:03:36 +02: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 Tracking the old name of renamed unstable library attribute 2025-06-12 19:24:11 +08:00
time.rs Split duration_constructors to get non-controversial bits out faster. 2025-05-09 22:52:39 -04:00
tuple.rs library/compiler: add PointeeSized bounds 2025-06-16 23:04:33 +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