| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2018-01-24 | Auto merge of #47299 - cramertj:unsafe-placer, r=alexcrichton | bors | -1/+1 | |
| Make core::ops::Place an unsafe trait Consumers of `Place` would reasonably expect that the `pointer` function returns a valid pointer to memory that can actually be written to. | ||||
| 2018-01-20 | Assign its own tracking issue to Box::into_raw_non_null | Simon Sapin | -1/+3 | |
| https://github.com/rust-lang/rust/issues/47336 | ||||
| 2018-01-20 | Revert Box::into_raw_non_null to unstable | Simon Sapin | -1/+1 | |
| 2018-01-20 | Rename Box::into_non_null_raw to Box::into_raw_non_null | Simon Sapin | -6/+6 | |
| 2018-01-20 | Remove `Box::from_non_null_raw` | Simon Sapin | -35/+3 | |
| Per https://github.com/rust-lang/rust/pull/46952#issuecomment-353956225 | ||||
| 2018-01-20 | Rename Box::*_nonnull_raw to *_non_null_raw | Simon Sapin | -11/+11 | |
| 2018-01-20 | Stabilize std::ptr::NonNull | Simon Sapin | -8/+2 | |
| 2018-01-20 | Replace Box::{from,into}_unique with {from,into}_nonnull_raw | Simon Sapin | -20/+27 | |
| Thew `_raw` prefix is included because the fact that `Box`’s ownership semantics are "dissolved" or recreated seem more important than the exact parameter type or return type. | ||||
| 2018-01-09 | Make core::ops::Place an unsafe trait | Taylor Cramer | -1/+1 | |
| 2017-11-29 | Update bootstrap compiler | Alex Crichton | -12/+4 | |
| Also remove a number of `stage0` annotations and such | ||||
| 2017-11-23 | Auto merge of #45881 - Centril:box-leak, r=alexcrichton | bors | -0/+53 | |
| Add Box::leak<'a>(Box<T>) -> &'a mut T where T: 'a Adds: ```rust impl<T: ?Sized> Box<T> { pub fn leak<'a>(b: Box<T>) -> &'a mut T where T: 'a { unsafe { &mut *Box::into_raw(b) } } } ``` which is useful for when you just want to put some stuff on the heap and then have a reference to it for the remainder of the program. r? @sfackler cc @durka | ||||
| 2017-11-22 | Box::leak: update unstable issue number (46179). | Mazdak | -1/+1 | |
| 2017-11-19 | rustc: don't special-case Box<T> as having a pointer layout. | Eduard-Mihai Burtescu | -4/+14 | |
| 2017-11-09 | Box::leak - made an oops, fixed now =) | Mazdak | -1/+4 | |
| 2017-11-09 | Box::leak - updated documentation | Mazdak | -2/+2 | |
| 2017-11-09 | Box::leak - relaxed constraints wrt. lifetimes | Mazdak | -2/+2 | |
| 2017-11-09 | Box::leak - fixed bug in documentation | Mazdak | -8/+16 | |
| 2017-11-08 | Box::leak - improve documentation | Mazdak | -5/+6 | |
| 2017-11-08 | added associated function Box::leak | Mazdak | -0/+41 | |
| 2017-10-10 | Auto merge of #44877 - nvzqz:box-conversions, r=alexcrichton | bors | -4/+40 | |
| Improve raw Box conversions This PR has two goals: - Reduce use of `mem::transmute` in `Box` conversions I understand that `mem::transmute`-ing non `#[repr(C)]` types is implementation-defined behavior. This may not matter within the reference implementation of Rust, but I believe it's important to remain consistent. For example, I noticed that `str::from_utf8_unchecked` went from using `mem::transmute` to using pointer casts. - Make `Box` pointer conversions more straightforward regarding `Unique` | ||||
| 2017-10-06 | Add unique feature in Box::from_unique docs | Nikolai Vazquez | -3/+7 | |
| 2017-10-06 | Add missing word in Box::from_unique docs | Nikolai Vazquez | -2/+2 | |
| 2017-10-06 | Create Box::from_unique function | Nikolai Vazquez | -3/+35 | |
| Provides a reasonable interface for Box::from_raw implementation. Does not get around the requirement of mem::transmute for converting back and forth between Unique and Box. | ||||
| 2017-10-06 | Revert to using mem::transmute in Box::from_raw | Nikolai Vazquez | -1/+1 | |
| Same reasons as commit 904133e1e28b690e2bbd101b719509aa897539a0. | ||||
| 2017-10-06 | Revert to using mem::transmute in Box::into_unique | Nikolai Vazquez | -3/+1 | |
| Seems to cause this error: "Cannot handle boxed::Box<[u8]> represented as TyLayout". | ||||
| 2017-09-27 | Remove mem::transmute used in Box<str> conversions | Nikolai Vazquez | -3/+1 | |
| 2017-09-26 | Remove uses of mem::transmute in Box methods | Nikolai Vazquez | -3/+5 | |
| Makes use of conversions via Unique. | ||||
| 2017-09-12 | impl Hasher for {&mut Hasher, Box<Hasher>} | kennytm | -1/+47 | |
| 2017-08-28 | Merge branch 'master' of https://github.com/rust-lang/rust into gen | John Kåre Alsaker | -1/+1 | |
| 2017-08-24 | Fix inconsistent doc headings | lukaramu | -1/+1 | |
| This fixes headings reading "Unsafety" and "Example", they should be "Safety" and "Examples" according to RFC 1574. | ||||
| 2017-08-16 | Merge remote-tracking branch 'origin/master' into gen | Alex Crichton | -1/+1 | |
| 2017-08-15 | use field init shorthand EVERYWHERE | Zack M. Davis | -1/+1 | |
| Like #43008 (f668999), but _much more aggressive_. | ||||
| 2017-07-28 | Rename State to GeneratorState | John Kåre Alsaker | -2/+2 | |
| 2017-07-28 | Remove support for `gen arg` | Alex Crichton | -4/+4 | |
| 2017-07-28 | Fill in generator tracking issue in a few more locations | Alex Crichton | -1/+1 | |
| 2017-07-28 | std: Add forwarding impls of `Generator` trait | Alex Crichton | -1/+12 | |
| 2017-07-22 | Add Box::into_unique | Simon Sapin | -0/+31 | |
| 2017-07-10 | Correct some stability attributes | Oliver Middleton | -2/+2 | |
| These show up in rustdoc so need to be correct. | ||||
| 2017-07-05 | rustc: Implement the #[global_allocator] attribute | Alex Crichton | -14/+13 | |
| This PR is an implementation of [RFC 1974] which specifies a new method of defining a global allocator for a program. This obsoletes the old `#![allocator]` attribute and also removes support for it. [RFC 1974]: https://github.com/rust-lang/rfcs/pull/197 The new `#[global_allocator]` attribute solves many issues encountered with the `#![allocator]` attribute such as composition and restrictions on the crate graph itself. The compiler now has much more control over the ABI of the allocator and how it's implemented, allowing much more freedom in terms of how this feature is implemented. cc #27389 | ||||
| 2017-06-23 | Removed as many "```ignore" as possible. | kennytm | -1/+3 | |
| Replaced by adding extra imports, adding hidden code (`# ...`), modifying examples to be runnable (sorry Homura), specifying non-Rust code, and converting to should_panic, no_run, or compile_fail. Remaining "```ignore"s received an explanation why they are being ignored. | ||||
| 2017-06-13 | Merge crate `collections` into `alloc` | Murarth | -0/+2 | |
| 2017-05-20 | Correct some stability versions | Oliver Middleton | -1/+1 | |
| These were found by running tidy on stable versions of rust and finding features stabilised with the wrong version numbers. | ||||
| 2017-05-04 | Deprecate heap::EMPTY in favour of Unique::empty or otherwise. | Alexis Beingessner | -1/+1 | |
| 2017-04-24 | More methods for str boxes. | Clar Charr | -5/+13 | |
| 2017-03-08 | Box docs: no allocation is done for ZSTs. | Clar Charr | -0/+2 | |
| 2017-02-14 | Conversions between CStr/OsStr/Path and boxes. | Clar Charr | -0/+8 | |
| 2017-02-06 | Direct conversions between slices and boxes. | Clar Charr | -0/+17 | |
| 2017-02-03 | Bump version, upgrade bootstrap | Alex Crichton | -1/+0 | |
| This commit updates the version number to 1.17.0 as we're not on that version of the nightly compiler, and at the same time this updates src/stage0.txt to bootstrap from freshly minted beta compiler and beta Cargo. | ||||
| 2017-01-30 | Implement Drop for Box | Vadim Petrochenkov | -0/+8 | |
| 2017-01-30 | Merge ty::TyBox into ty::TyAdt | Vadim Petrochenkov | -0/+1 | |
