rust/library/core/src
Matthias Krüger dfbb6b246d
Rollup merge of #92630 - steffahn:lift_bounds_on_BuildHasherDefault, r=yaahc
Change PhantomData type for `BuildHasherDefault` (and more)

Changes `PhantomData<H>` to `PhantomData<fn() -> H>` for `BuildHasherDefault`. This preserves the covariance of `H`, while it lifts the currently inferred unnecessary bounds like [`H: Send` for `BuildHasherDefault<H>: Send`](https://doc.rust-lang.org/1.57.0/std/hash/struct.BuildHasherDefault.html#impl-Send), etc.

_Edit:_ Also does a similar change for `iter::Empty` and `future::Pending`.
2022-01-19 19:19:47 +01:00
..
alloc Fix a bunch of typos 2021-12-14 16:40:43 +01:00
array Switch all libraries to the 2021 edition 2021-12-23 19:03:47 +08:00
char Implement TryFrom<char> for u8 2022-01-07 12:28:47 -08:00
convert Rollup merge of #92382 - clarfonthey:const_convert, r=scottmcm 2022-01-15 02:25:14 +01:00
fmt Touch up Debug example from PR 92322 2022-01-04 14:28:28 -08:00
future Also change PhantomData parameter of iter::Empty, and future::Pending 2022-01-07 01:53:51 +01:00
hash change PhantomData type for BuildHasherDefault 2022-01-07 00:39:48 +01:00
iter Rollup merge of #92630 - steffahn:lift_bounds_on_BuildHasherDefault, r=yaahc 2022-01-19 19:19:47 +01:00
macros Auto merge of #92816 - tmiasko:rm-llvm-asm, r=Amanieu 2022-01-17 09:40:29 +00:00
mem Stabilize vec_spare_capacity 2022-01-17 21:07:02 +00:00
num fix typo in max description for f32/f64 2022-01-18 10:30:32 +03:00
ops Rollup merge of #91587 - nrc:dispatchfromdyn-docs, r=yaahc 2022-01-04 21:23:05 +01:00
panic Rollup merge of #89897 - jkugelman:must-use-core, r=joshtriplett 2021-10-31 09:20:26 +01:00
prelude Remove deprecated LLVM-style inline assembly 2022-01-12 18:51:31 +01:00
ptr fix const_ptr_offset_from tracking issue 2022-01-16 15:21:42 -05:00
slice Rollup merge of #92092 - saethlin:fix-sort-guards-sb, r=danielhenrymantilla 2022-01-05 15:05:44 +01:00
str Fix a bunch of typos 2021-12-14 16:40:43 +01:00
stream Remove P: Unpin bound on impl Stream for Pin 2021-12-17 11:14:02 +08:00
sync Add rustc_diagnostic_item attribute to AtomicBool 2022-01-13 23:32:49 +01:00
task Rollup merge of #89897 - jkugelman:must-use-core, r=joshtriplett 2021-10-31 09:20:26 +01:00
unicode Regenerate tables for Unicode 14.0.0 2021-10-06 17:49:33 -07:00
any.rs Reverts #92135 because perf regression 2021-12-26 16:02:33 +03:00
ascii.rs Add #[must_use] to remaining core functions 2021-10-30 18:21:29 -04:00
bool.rs Constify bool::then{,_some} 2021-12-15 00:11:23 +08:00
borrow.rs Make Borrow and BorrowMut impls const 2021-12-04 21:57:39 +09:00
cell.rs Fix a bunch of typos 2021-12-14 16:40:43 +01:00
clone.rs Update Copy/Clone documentation WRT arrays 2021-11-08 13:11:59 -05:00
cmp.rs Touch up stray comment in PR 92953 2022-01-15 20:44:47 -08:00
default.rs Add #[must_use] to remaining core functions 2021-10-30 18:21:29 -04:00
ffi.rs Use target_family = "wasm" 2021-11-10 08:35:42 -08:00
hint.rs Add is_riscv_feature_detected!; modify impl of hint::spin_loop 2022-01-05 15:44:52 +08:00
internal_macros.rs Added docs to internal_macro const 2021-10-22 10:07:35 +13:00
intrinsics.rs fix const_ptr_offset_from tracking issue 2022-01-16 15:21:42 -05:00
lazy.rs Use UnsafeCell::get_mut() in core::lazy::OnceCell::get_mut() 2021-12-30 05:04:44 +02:00
lib.rs Remove deprecated LLVM-style inline assembly 2022-01-12 18:51:31 +01:00
marker.rs Update Copy/Clone documentation WRT arrays 2021-11-08 13:11:59 -05:00
option.rs Fix is_some_with tests. 2022-01-19 00:12:35 +01:00
panic.rs Allow panic!("{}", computed_str) in const fn. 2021-09-15 21:56:43 +01:00
panicking.rs Add const-stability to panicking::panic_* fns 2021-12-23 19:03:43 +08:00
pin.rs Add #[must_use] to remaining core functions 2021-10-30 18:21:29 -04:00
primitive.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
primitive_docs.rs Update docs. 2021-12-04 19:40:33 +01:00
result.rs Fix is_some_with tests. 2022-01-19 00:12:35 +01:00
time.rs Apply cfg-bootstrap switch 2021-11-30 10:51:42 -05:00
tuple.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
unit.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00