about summary refs log tree commit diff
path: root/src/libcore
AgeCommit message (Collapse)AuthorLines
2018-04-12Conversions between Result<*mut u8, AllocErr>> and *mut VoidSimon Sapin-0/+21
2018-04-12realloc with a new size only, not a full new layout.Simon Sapin-51/+36
Changing the alignment with realloc is not supported.
2018-04-12Return Result instead of Option in alloc::Layout constructorsSimon Sapin-22/+41
2018-04-12Remove the now-unit-struct AllocErr field inside CollectionAllocErrSimon Sapin-3/+3
2018-04-12Remove the now-unit-struct AllocErr parameter of oom()Simon Sapin-1/+1
2018-04-12Implement GlobalAlloc for SystemSimon Sapin-0/+4
2018-04-12Make AllocErr a zero-size unit structSimon Sapin-50/+8
2018-04-12Actually deprecate heap modules.Simon Sapin-1/+4
2018-04-12Rename `heap` modules in the core, alloc, and std crates to `alloc`Simon Sapin-1/+5
2018-04-12Add a GlobalAlloc traitSimon Sapin-0/+30
2018-04-12Add a core::heap::Void extern type.Simon Sapin-0/+21
2018-04-12improve Atomic*::fetch_update docsAndre Bogus-2/+2
2018-04-12Auto merge of #49551 - scottmcm:deprecate-offset_to, r=KodrAusbors-9/+14
Deprecate offset_to; switch core&alloc to using offset_from instead Bonus: might make code than uses `.len()` on slice iterators faster cc https://github.com/rust-lang/rust/issues/41079
2018-04-12Auto merge of #49698 - SimonSapin:unicode-for-everyone, r=alexcrichtonbors-924/+6152
Merge the std_unicode crate into the core crate [The standard library facade](https://github.com/rust-lang/rust/issues/27783) has historically contained a number of crates with different roles, but that number has decreased over time. `rand` and `libc` have moved to crates.io, and [`collections` was merged into `alloc`](https://github.com/rust-lang/rust/pull/42648). Today we have `core` that applies everywhere, `std` that expects a full operating system, and `alloc` in-between that only requires a memory allocator (which can be provided by users)… and `std_unicode`, which doesn’t really have a reason to be separate anymore. It contains functionality based on Unicode data tables that can be large, but as long as relevant functions are not called the tables should be removed from binaries by linkers. This deprecates the unstable `std_unicode` crate and moves all of its contents into `core`, replacing them with `pub use` reexports. The crate can be removed later. This also removes the `CharExt` trait (replaced with inherent methods in libcore) and `UnicodeStr` trait (merged into `StrExt`). There traits were both unstable and not intended to be used or named directly. A number of new items are newly-available in libcore and instantly stable there, but only if they were already stable in libstd. Fixes #49319.
2018-04-12Mark the rest of the `unicode` feature flag as perma-unstable.Simon Sapin-1/+1
2018-04-12Dedicated tracking issue for UnicodeVersion and UNICODE_VERSION.Simon Sapin-3/+6
2018-04-12Move core::char::printable to core::unicode::printableSimon Sapin-4/+4
2018-04-12Merge unstable Utf16Encoder into EncodeUtf16Simon Sapin-58/+0
2018-04-12Merge core::unicode::str into core::strSimon Sapin-189/+173
And the UnicodeStr trait into StrExt
2018-04-12Remove the CharExt trait, now that libcore has inherent methods for charSimon Sapin-190/+107
2018-04-12Move the rest of core::unicode::char to core::unicodeSimon Sapin-274/+266
2018-04-12Move char conversions into a separate private module.Simon Sapin-290/+315
2018-04-12Move char decoding iterators into a separate private module.Simon Sapin-249/+265
2018-04-12Reexport from core::unicode::char in core::char rather than vice versaSimon Sapin-23/+16
2018-04-12Move the core::char module to its own directorySimon Sapin-3/+258
2018-04-12Deprecate the std_unicode crateSimon Sapin-1/+1
2018-04-12Move contents of libstd_unicode into libcoreSimon Sapin-0/+4784
2018-04-12Move Utf8Lossy decoder to libcoreSimon Sapin-0/+309
2018-04-12Move char::REPLACEMENT_CHARACTER to libcoreSimon Sapin-0/+8
2018-04-11Rollup merge of #49575 - tmccombs:option-filter-stabilize, r=withoutboatskennytm-3/+1
Stabilize `Option::filter`. Fixes #45860
2018-04-11Auto merge of #49715 - Mark-Simulacrum:deny-warnings, r=alexcrichtonbors-5/+0
Move deny(warnings) into rustbuild This permits easier iteration without having to worry about warnings being denied. Fixes #49517
2018-04-10Add symmetric requirement of PartialOrd.Steven Malis-8/+8
2018-04-11std: Mark `ptr::Unique` with `#[doc(hidden)]`Daiki Mizukami-0/+1
2018-04-09Fix various nits from PR reviewDylan MacKenzie-7/+6
- Remove redundant "unsafe" from module description. - Add a missing `Safety` heading to `read_unaligned`. - Remove weasel words in `Undefined Behavior` description for `write{,_unaligned,_bytes}`.
2018-04-09std: Be sure to modify atomics in testsAlex Crichton-4/+6
See #49775 for some more information but it looks like this is working around an LLVM bug for the time being. Closes #49775
2018-04-09Auto merge of #49673 - ollie27:stab, r=sfacklerbors-3/+5
Correct a few stability attributes * `const_indexing` language feature was stabilized in 1.26.0 by #46882 * `Display` impls for `PanicInfo` and `Location` were stabilized in 1.26.0 by #47687 * `TrustedLen` is still unstable so its impls should be as well even though `RangeInclusive` was stabilized by #47813 * `!Send` and `!Sync` for `Args` and `ArgsOs` were stabilized in 1.26.0 by #48005 * `EscapeDefault` has been stable since 1.0.0 so should continue to show that even though it was moved to core in #48735 This could be backported to beta like #49612
2018-04-08Move deny(warnings) into rustbuildMark Simulacrum-5/+0
This permits easier iteration without having to worry about warnings being denied. Fixes #49517
2018-04-07Add float NaN tests.Steven Malis-21/+59
2018-04-07Fix broken relative linksDylan MacKenzie-8/+8
2018-04-07fix testsSteven Malis-22/+22
2018-04-07Fix broken link in `write_unaligned` docsDylan MacKenzie-1/+1
2018-04-07Don't link "Undefined Behavior" headingDylan MacKenzie-28/+12
The rendered version does not make clear that this is a link to another page, and it breaks the anchor link.
2018-04-07Fix example for `ptr::replace`Dylan MacKenzie-1/+1
2018-04-07Change `write_bytes` test causing UB to `no_run`Dylan MacKenzie-6/+7
This also fixes improper text wrapping.
2018-04-07Update based on RangeBounds trait being moved to libcore.Steven Malis-12/+63
2018-04-07Rewrite docs for `std::ptr`Dylan MacKenzie-102/+496
- Add links to the GNU libc docs for `memmove`, `memcpy`, and `memset`, as well as internally linking to other functions in `std::ptr` - List sources of UB for all functions. - Add example to `ptr::drop_in_place` and compares it to `ptr::read`. - Add examples which more closely mirror real world uses for the functions in `std::ptr`. Also, move the reimplementation of `mem::swap` to the examples of `ptr::read` and use a more interesting example for `copy_nonoverlapping`. - Change module level description
2018-04-07Auto merge of #49661 - alexcrichton:bump-bootstrap, r=nikomatsakisbors-85/+3
Bump the bootstrap compiler to 1.26.0 beta Holy cow that's a lot of `cfg(stage0)` removed and a lot of new stable language features!
2018-04-06Fix the failing testsStjepan Glavina-0/+3
2018-04-06Consistently default operator Rhs/RHS to SelfNathaniel McCallum-3/+3
Operator traits seem to be inconsistent regarding the right hand side generic. Most default Rhs/RHS to Self, but a few omit this. This patch modifies them all to default to Self. This should not have any backwards compatibility issues because we are only enabling code that previously wouldn't compile.
2018-04-06Change TODO to FIXMEStjepan Glavina-1/+1