rust/library/core/src
Matthias Krüger 782da867c8
Rollup merge of #106798 - scottmcm:signum-via-cmp, r=Mark-Simulacrum
Implement `signum` with `Ord`

Rather than needing to do things like #105840 for `signum` too, might as well just implement that method using `Ord`, since it's doing the same "I need `-1`/`0`/`+1`" behaviour that `cmp` is already doing.

This also seems to slightly improve the assembly: <https://rust.godbolt.org/z/5oEEqbxK1>
2023-01-29 20:03:36 +01:00
..
alloc Rollup merge of #102207 - CraftSpider:const-layout, r=scottmcm 2022-11-22 01:26:07 -05:00
array Remove various double spaces in source comments. 2023-01-14 17:22:04 +01:00
async_iter
cell Add OnceCell<T>: !Sync impl for diagnostics 2023-01-19 20:14:21 +01:00
char update stabilization version numbers 2022-12-28 09:18:42 -05:00
convert Implement From<bool> for f32, f64 2022-12-15 03:55:21 +00:00
ffi Implement va_list and va_arg for s390x FFI 2022-12-19 21:07:57 +01:00
fmt Auto merge of #106745 - m-ou-se:format-args-ast, r=oli-obk 2023-01-26 12:44:47 +00:00
future Transform async ResumeTy in generator transform 2023-01-19 09:03:05 +01:00
hash Fix some ~const usage in libcore 2022-12-20 15:01:37 +00:00
intrinsics Custom mir: Add support for some remaining, easy to support constructs 2023-01-26 03:29:28 -08:00
iter Remove ControlFlow::{BREAK, CONTINUE} 2023-01-27 19:46:42 -08:00
macros Remove HTML tags around warning 2023-01-06 13:20:58 +01:00
mem Rename assert_uninit_valid intrinsic 2022-12-13 18:08:35 +01:00
num Rollup merge of #106798 - scottmcm:signum-via-cmp, r=Mark-Simulacrum 2023-01-29 20:03:36 +01:00
ops Remove ControlFlow::{BREAK, CONTINUE} 2023-01-27 19:46:42 -08:00
panic Replace libstd, libcore, liballoc in line comments. 2022-12-30 14:00:42 +01:00
prelude Replace libstd, libcore, liballoc in docs. 2022-12-30 14:00:40 +01:00
ptr sub_ptr() is equivalent to usize::try_from().unwrap_unchecked(), not usize::from().unwrap_unchecked(). 2023-01-23 14:42:32 +02:00
slice Rollup merge of #104672 - Voultapher:unify-sort-modules, r=thomcc 2023-01-20 21:33:21 -05:00
str Auto merge of #95644 - WaffleLapkin:str_split_as_str_refactor_take2, r=Amanieu 2023-01-03 11:06:08 +00:00
sync core: Support variety of atomic widths in width-agnostic functions 2023-01-25 10:44:03 +08:00
task Transform async ResumeTy in generator transform 2023-01-19 09:03:05 +01:00
unicode Replace libstd, libcore, liballoc in line comments. 2022-12-30 14:00:42 +01:00
any.rs Constify TypeId ordering impls 2023-01-16 21:26:03 +01:00
arch.rs move core::arch into separate file 2022-11-20 10:28:14 +01:00
ascii.rs
asserting.rs
bool.rs
borrow.rs Minor grammar nit. 2022-12-12 16:22:01 -07:00
cell.rs impl DispatchFromDyn for Cell and UnsafeCell 2023-01-24 12:06:12 +01:00
clone.rs Make some trivial functions #[inline(always)] 2022-12-07 17:11:17 +01:00
cmp.rs test use in libcore 2023-01-12 02:28:38 +00:00
const_closure.rs Update bootstrap cfg 2022-12-28 09:18:43 -05:00
default.rs
error.md
error.rs Reintroduce multiple_supertrait_upcastable lint 2023-01-28 15:08:07 +00:00
hint.rs Improve the documentation of black_box 2023-01-07 15:44:38 -05:00
internal_macros.rs
intrinsics.rs Update bootstrap cfg 2022-12-28 09:18:43 -05:00
lib.rs Reintroduce multiple_supertrait_upcastable lint 2023-01-28 15:08:07 +00:00
marker.rs Add rustc_on_unimplemented on Sync for cell types 2023-01-19 21:09:25 +01:00
option.rs Link to the LLVM issue from a comment on SpecOptionPartialEq 2023-01-27 19:09:52 -08:00
panic.rs Replace libstd, libcore, liballoc in docs. 2022-12-30 14:00:40 +01:00
panicking.rs Rollup merge of #106045 - RalfJung:oom-nounwind-panic, r=Amanieu 2023-01-03 17:19:26 -08:00
pin.rs Fix some missed double spaces. 2023-01-14 18:26:38 +01:00
primitive_docs.rs disable strict-provenance-violating doctests in Miri 2022-11-22 11:49:02 +01:00
primitive.rs
result.rs Improve wording for Option and Result 2022-12-13 14:49:10 -05:00
time.rs
tuple.rs
unit.rs