rust/library/core/src
Dylan DPC d6ea99d2ed
Rollup merge of #103702 - WaffleLapkin:lift-sized-bounds-from-pointer-methods-where-applicable, r=m-ou-se
Lift `T: Sized` bounds from some `strict_provenance` pointer methods

This PR removes requirement for `T` (pointee type) to be `Sized` to call `pointer::{addr, expose_addr, with_addr, map_addr}`. These functions don't use `T`'s size, so there is no reason for them to require this. Updated public API:

cc ``@Gankra,`` #95228
r? libs-api
2023-01-18 15:55:36 +05:30
..
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 use consistent terminology 2022-10-29 09:23:12 +02:00
cell Auto merge of #105651 - tgross35:once-cell-inline, r=m-ou-se 2022-12-30 19:22:33 +00: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 Added error documentation for write_fmt 2023-01-03 12:27:47 +01:00
future Suggest more impl Trait on -> _ 2023-01-03 23:50:31 +00:00
hash Fix some ~const usage in libcore 2022-12-20 15:01:37 +00:00
intrinsics fix custom mir doc tests 2022-12-28 09:18:43 -05:00
iter Rollup merge of #106860 - anden3:doc-double-spaces, r=Dylan-DPC 2023-01-14 18:45:29 +01: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 #106880 - tspiteri:borrowing-sub-typo, r=cuviper 2023-01-15 01:01:39 +01:00
ops Update bootstrap cfg 2022-12-28 09:18:43 -05: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 Rollup merge of #103702 - WaffleLapkin:lift-sized-bounds-from-pointer-methods-where-applicable, r=m-ou-se 2023-01-18 15:55:36 +05:30
slice Rollup merge of #106997 - Sp00ph:introselect, r=scottmcm 2023-01-18 06:59:22 +01:00
str Auto merge of #95644 - WaffleLapkin:str_split_as_str_refactor_take2, r=Amanieu 2023-01-03 11:06:08 +00:00
sync Make // SAFETY comment part of the doctest, and not surrounding code 2023-01-12 07:28:43 +00:00
task Add PhantomData marker to Context to make Context !Send and !Sync 2023-01-02 10:20:59 -08: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 Inline <EscapeDefault as Iterator>::next 2022-03-10 15:35:22 +01:00
asserting.rs [RFC 2011] Library code 2022-05-22 07:18:32 -03:00
bool.rs Add missing assertion 2022-09-22 02:12:06 -04:00
borrow.rs Minor grammar nit. 2022-12-12 16:22:01 -07:00
cell.rs Replace libstd, libcore, liballoc in line comments. 2022-12-30 14:00:42 +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 cfg-step code 2022-11-06 17:21:21 -05:00
error.md Small round of typo fixes 2022-11-04 20:06:18 -07:00
error.rs Revert "Implement allow-by-default multiple_supertrait_upcastable lint" 2022-12-29 00:47:23 -08:00
hint.rs Make some trivial functions #[inline(always)] 2022-12-07 17:11:17 +01:00
internal_macros.rs ignore a doctest for the non-exported macro 2022-05-03 18:33:56 +09:00
intrinsics.rs Update bootstrap cfg 2022-12-28 09:18:43 -05:00
lib.rs Auto merge of #106004 - fee1-dead-contrib:const-closures, r=oli-obk 2023-01-13 05:04:48 +00:00
marker.rs Rollup merge of #104081 - joshlf:patch-6, r=dtolnay 2023-01-07 20:43:19 +01:00
option.rs Rollup merge of #104965 - zacklukem:p-option-as_ref-docs, r=scottmcm 2023-01-14 12:04:31 +09: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.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
primitive_docs.rs disable strict-provenance-violating doctests in Miri 2022-11-22 11:49:02 +01:00
result.rs Improve wording for Option and Result 2022-12-13 14:49:10 -05:00
time.rs Bump version placeholders to release 2022-11-06 17:11:02 -05:00
tuple.rs const Compare Tuples 2022-11-09 09:52:04 +01:00
unit.rs Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00