rust/library/core/src
bors e58621a4a3 Auto merge of #102169 - scottmcm:constify-some-conditions, r=thomcc
Make ZST checks in core/alloc more readable

There's a bunch of these checks because of special handing for ZSTs in various unsafe implementations of stuff.

This lets them be `T::IS_ZST` instead of `mem::size_of::<T>() == 0` every time, making them both more readable and more terse.

*Not* proposed for stabilization.  Would be `pub(crate)` except `alloc` wants to use it too.

(And while it doesn't matter now, if we ever get something like #85836 making it a const can help codegen be simpler.)
2022-09-25 01:20:11 +00:00
..
alloc Add const_trait to Allocator 2022-09-16 12:08:45 +08:00
array Auto merge of #100214 - scottmcm:strict-range, r=thomcc 2022-09-21 00:41:33 +00:00
async_iter
cell
char Make char::is_lowercase and char::is_uppercase const 2022-09-04 08:07:53 -07:00
convert Add more const_trait annotations 2022-09-16 11:48:42 +08:00
ffi Rollup merge of #100291 - WaffleLapkin:cstr_const_methods, r=oli-obk 2022-09-12 22:47:14 +02:00
fmt Rollup merge of #100823 - WaffleLapkin:less_offsets, r=scottmcm 2022-09-24 14:29:52 +02:00
future
hash Adjust cfgs 2022-08-12 16:28:15 -04:00
iter Rollup merge of #102186 - ink-feather-org:const_try_trait, r=fee1-dead 2022-09-24 14:29:54 +02:00
macros Fix typo in concat_bytes documentation 2022-09-12 21:40:28 -04:00
mem Add some more documentation 2022-09-24 12:12:41 -07:00
num Added which number is computed in compute_float. 2022-09-22 11:34:42 +02:00
ops Constify Residual behind const_try 2022-09-23 20:17:31 +02:00
panic
prelude
ptr The <*const T>::guaranteed_* methods now return an option for the unknown case 2022-09-09 15:16:04 +00:00
slice Auto merge of #102169 - scottmcm:constify-some-conditions, r=thomcc 2022-09-25 01:20:11 +00:00
str Add missing documentation for bool::from_str 2022-09-21 14:17:11 +02:00
sync Add #[inline] to trivial functions on core::sync::Exclusive 2022-09-22 22:15:27 -07:00
task Added tracking issue 2022-09-19 15:07:12 +02:00
unicode Bump Unicode to version 15.0.0, regenerate tables 2022-09-14 13:21:19 -07:00
any.rs Add Provider::{would_be_satisfied_by_value_of,would_be_satisfied_by_ref_of} 2022-08-23 10:48:59 -04:00
ascii.rs
asserting.rs
bool.rs Add missing assertion 2022-09-22 02:12:06 -04:00
borrow.rs Add const_traits 2022-09-16 11:48:42 +08:00
cell.rs Tone down explanation on RefCell::get_mut 2022-09-03 21:48:17 +02:00
clone.rs
cmp.rs append_const_msg for std traits 2022-09-16 11:48:43 +08:00
const_closure.rs Remove unused ConstFn(Once)Closure structs. 2022-09-23 19:55:51 +02:00
default.rs Prevent errors for stage0 rustc build 2022-09-16 11:48:42 +08:00
error.md Move error trait into core 2022-08-22 13:28:25 -07:00
error.rs error::Error: remove some comments 2022-08-25 07:42:07 +01:00
hint.rs Compile spin_loop_hint as pause on x86 even without sse2 enabled 2022-09-06 20:08:04 +02:00
internal_macros.rs
intrinsics.rs The <*const T>::guaranteed_* methods now return an option for the unknown case 2022-09-09 15:16:04 +00:00
lazy.rs
lib.rs Added const_closure 2022-09-23 13:42:31 +02:00
marker.rs Add doc aliases on Sized trait 2022-09-21 16:20:15 +02:00
option.rs Constify Residual behind const_try 2022-09-23 20:17:31 +02:00
panic.rs
panicking.rs Reduce code size of assert_matches_failed 2022-08-24 00:56:04 +02:00
pin.rs
primitive_docs.rs array docs - advertise how to get array from slice 2022-09-10 19:37:07 -07:00
primitive.rs
result.rs Constify Residual behind const_try 2022-09-23 20:17:31 +02:00
time.rs Fix a bunch of typo 2022-08-31 18:24:55 +08:00
tuple.rs Adjust cfgs 2022-08-12 16:28:15 -04:00
unit.rs