rust/library/core/src
Matthias Krüger e3fbaa87c9
Rollup merge of #122990 - SkiFire13:transmute-may-copy, r=jhpratt
Clarify transmute example

The example claims using an iterator will copy the entire vector, but this is not true in practice thanks to internal specializations in the stdlib (see https://godbolt.org/z/cnxo3MYs5 for confirmation that this doesn't reallocate nor iterate over the vec's elements). Since neither the copy nor the optimization is guaranteed I opted for saying that they _may_ happen.
2024-03-25 11:00:13 +01:00
..
alloc SeqCst->Relaxed in doc examples. 2024-03-19 15:27:11 +01:00
array add missing PartialOrd impl doc for array 2024-03-06 10:28:56 +01:00
ascii implement Default for AsciiChar 2024-02-13 12:04:44 +01:00
async_iter Step all bootstrap cfgs forward 2024-02-08 07:44:34 -05:00
cell Add some optimizations 2023-10-13 14:54:33 +02:00
char move assert_unsafe_preconditions to its own file 2024-03-23 18:44:17 +01:00
cmp Use generic NonZero everywhere in core. 2024-02-22 15:17:33 +01:00
convert step cfgs 2024-03-20 08:49:13 -04:00
ffi step cfgs 2024-03-20 08:49:13 -04:00
fmt Rename Arguments::as_const_str to as_statically_known_str 2024-03-23 21:49:29 -07:00
future Use root obligation on E0277 for some cases 2024-03-03 18:53:35 +00:00
hash step cfgs 2024-03-20 08:49:13 -04:00
intrinsics Rollup merge of #122762 - RoboSchmied:RoboSchmied-typo, r=workingjubilee 2024-03-23 22:59:41 -07:00
io BorrowedCursor docs clarification 2024-03-10 09:48:56 +01:00
iter Implement FusedIterator for gen block 2024-03-22 02:02:34 +09:00
macros Implement macro-based deref!() syntax for deref patterns 2024-03-21 11:42:49 -04:00
mem Auto merge of #122582 - scottmcm:swap-intrinsic-v2, r=oli-obk 2024-03-23 13:57:55 +00:00
net net: Add branch to Parser::read_number for parsing without checked 2024-03-04 18:46:09 -05:00
num move assert_unsafe_preconditions to its own file 2024-03-23 18:44:17 +01:00
ops move assert_unsafe_preconditions to its own file 2024-03-23 18:44:17 +01:00
panic add panic location to 'panicked while processing panic' 2024-03-23 09:44:04 +01:00
prelude Implement macro-based deref!() syntax for deref patterns 2024-03-21 11:42:49 -04:00
ptr move assert_unsafe_preconditions to its own file 2024-03-23 18:44:17 +01:00
slice Auto merge of #122629 - RalfJung:assert-unsafe-precondition, r=saethlin 2024-03-23 21:11:00 +00:00
str move assert_unsafe_preconditions to its own file 2024-03-23 18:44:17 +01:00
sync Rust is a proper name: rust → Rust 2024-03-07 07:49:22 +01:00
task fix: remove memory leak due to missing drop implementation for local waker. Also, fix some 2024-03-09 14:38:58 -03:00
unicode Bump Unicode to version 15.1.0, regenerate tables 2024-02-09 17:35:46 +01:00
any.rs Fix Hash impl 2024-02-25 14:09:30 +00:00
arch.rs Rust is a proper name: rust → Rust 2024-03-07 07:49:22 +01:00
ascii.rs Use generic NonZero internally. 2024-02-15 08:09:42 +01:00
asserting.rs [RFC 2011] Library code 2022-05-22 07:18:32 -03:00
bool.rs core is now compilable 2023-04-16 07:20:26 +00:00
borrow.rs doc: replace wrong punctuation mark 2023-07-28 14:46:17 +02:00
cell.rs Explain why we don't use intrinsics::is_nonoverlapping 2024-03-09 13:36:36 -05:00
clone.rs remove redundant imports 2023-12-10 10:56:22 +08:00
cmp.rs Rollup merge of #115386 - RalfJung:partial-eq-chain, r=dtolnay 2024-02-05 11:07:25 +01:00
default.rs core: document default attribute stabilization 2024-03-16 21:20:29 -07:00
error.md Fix minor grammar typo 2023-09-06 09:47:22 -07:00
error.rs style library/core/src/error.rs 2024-03-02 16:03:23 +08:00
escape.rs Use generic NonZero internally. 2024-02-15 08:09:42 +01:00
hint.rs move assert_unsafe_preconditions to its own file 2024-03-23 18:44:17 +01:00
internal_macros.rs add track_caller for arith ops 2023-11-24 00:54:06 +08:00
intrinsics.rs Clarify transmute example 2024-03-24 11:27:34 +01:00
lib.rs Auto merge of #122629 - RalfJung:assert-unsafe-precondition, r=saethlin 2024-03-23 21:11:00 +00:00
marker.rs Forbid implementing Freeze even if the trait is stabilized 2024-02-29 14:10:29 +00:00
option.rs Manually implement PartialOrd/Ord for Option 2024-03-19 16:32:07 +00:00
panic.rs Distinguish between library and lang UB in assert_unsafe_precondition 2024-03-08 18:53:58 -05:00
panicking.rs core/panicking: fix outdated comment 2024-03-23 21:36:22 +01:00
pin.rs Fix some typos in the pin.rs 2024-03-23 16:51:40 +08:00
primitive.rs
primitive_docs.rs Use generic NonZero everywhere in core. 2024-02-22 15:17:33 +01:00
result.rs Add flatmap/flat_map -> and_then suggestions 2024-02-22 18:05:28 +00:00
time.rs Implement Duration::as_millis_{f64,f32} 2024-03-14 01:37:12 +03:00
tuple.rs Rollup merge of #118307 - scottmcm:tuple-eq-simpler, r=joshtriplett 2024-02-11 08:25:41 +01:00
ub_checks.rs refactor check_{lang,library}_ub: use a single intrinsic, put policy into library 2024-03-23 18:45:05 +01:00
unit.rs Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00