Mara Bos
e077dffaec
Rollup merge of #81767 - exrook:layout-error-stability, r=Mark-Simulacrum
...
Update LayoutError/LayoutErr stability attributes
`LayoutError` ended up not making it into 1.49.0, updating the stability attributes to reflect that.
I also pushed `LayoutErr` deprecation back a release to allow 2 releases before the deprecation comes into effect.
This change should be backported to beta.
2021-02-05 12:26:07 +01:00
Jacob Hughes
0c3a7d8b85
Update LayoutError/LayoutErr stability attributes
2021-02-04 19:02:57 -05:00
RustyYato
d06384ac29
make Allocator object-safe
...
add test to ensure object-safety
This allows for runtime polymorphic allocators
2021-02-03 20:46:16 -05:00
Tim Diekmann
9274b37d99
Rename AllocRef to Allocator and (de)alloc to (de)allocate
2020-12-04 14:47:15 +01:00
Mara Bos
5bbf75da78
Rollup merge of #77691 - exrook:rename-layouterr, r=KodrAus
...
Rename/Deprecate LayoutErr in favor of LayoutError
Implements rust-lang/wg-allocators#73 .
This patch renames LayoutErr to LayoutError, and uses a type alias to support users using the old name.
The new name will be instantly stable in release 1.49 (current nightly), the type alias will become deprecated in release 1.51 (so that when the current nightly is 1.51, 1.49 will be stable).
This is the only error type in `std` that ends in `Err` rather than `Error`, if this PR lands all stdlib error types will end in `Error` 🥰
2020-11-16 17:26:17 +01:00
Jacob Hughes
8ff0c14dc5
Change layouterr deprecation message
2020-10-27 04:48:37 -04:00
Joshua Nelson
65835d1059
Deny broken intra-doc links in linkchecker
...
Since rustdoc isn't warning about these links, check for them manually.
2020-10-15 20:22:16 -04:00
Jacob Hughes
0266c134a7
Deprecate LayoutErr
2020-10-08 01:19:21 -04:00
Jacob Hughes
a97abb40ab
Rename LayoutErr to LayoutError in core
2020-10-08 00:39:18 -04:00
Dylan DPC
70740b1b82
Rollup merge of #77315 - exrook:rename-allocerror, r=joshtriplett
...
Rename AllocErr to AllocError
Implements rust-lang/wg-allocators#57
2020-10-01 02:13:39 +02:00
Jacob Hughes
5829560a68
Rename AllocErr to AllocError
2020-09-28 14:51:03 -04:00
Tim Diekmann
c22d896b9b
Change AllocRef::by_ref to take &self instead of &mut self
2020-09-28 10:42:29 +02:00
blitzerr
2b19b14cec
a few more &mut self -> self changes
2020-09-22 21:04:31 -07:00
blitzerr
3ffd403c6b
removing &mut self for other methods of AllocRef
2020-09-22 06:22:02 -07:00
blitzerr
d9d02fa168
Changing the alloc() to accept &self instead of &mut self
2020-09-21 16:43:36 -07:00
Tim Diekmann
438c40efa1
Allow reallocation to different alignment
2020-08-19 06:46:47 +02:00
Tim Diekmann
a9fe0ca47a
Clean up AllocRef implementation and documentation
2020-08-18 09:53:22 +02:00
Tim Diekmann
c619b36975
Remove fast path in reallocation for same layout sizes
2020-08-17 13:23:38 +02:00
Tim Diekmann
93d98328d1
Revert missing "memory block"
2020-08-04 19:24:08 +02:00
Tim Diekmann
929e37d4bf
Revert renaming of "memory block"
2020-08-04 19:15:48 +02:00
Tim Diekmann
ab9362ad9a
Replace Memoryblock with NonNull<[u8]>
2020-08-04 18:03:34 +02:00
Tim Diekmann
6395659168
Apply suggestions from code review
...
Co-authored-by: Amanieu d'Antras <amanieu@gmail.com>
2020-08-04 00:21:05 +02:00
Tim Diekmann
db7d07b83b
Remove a trailing whitespace
2020-08-01 21:53:00 +02:00
Tim Diekmann
9cd9286e20
Update doc-comment for grow_zeroed
2020-08-01 21:51:50 +02:00
Tim Diekmann
076ef66ba2
Remove in-place allocation and revert to separate methods for zeroed allocations
...
Fix docs
2020-07-28 12:41:18 +02:00
mark
2c31b45ae8
mv std libs to library/
2020-07-27 19:51:13 -05:00