Simon Sapin
157ff8cd05
Remove the now-unit-struct AllocErr parameter of oom()
2018-04-12 22:53:13 +02:00
Simon Sapin
86753ce1cc
Use the GlobalAlloc trait for #[global_allocator]
2018-04-12 22:53:12 +02:00
Simon Sapin
eb69593f73
Implement GlobalAlloc for System
2018-04-12 22:53:03 +02:00
Simon Sapin
ba7081a033
Make AllocErr a zero-size unit struct
2018-04-12 22:53:03 +02:00
Alex Crichton
a4caac5e93
Update to most recent version of dlmalloc
...
Inline the definition of `GlobalAlloc` for `dlmalloc` on wasm and don't rely on
usage of unstable features in `dlmalloc` itself.
2018-04-12 22:53:02 +02:00
Simon Sapin
5e5a0c21fc
Separate alloc::heap::Alloc trait for stage0 #[global_allocator]
2018-04-12 22:52:54 +02:00
Simon Sapin
e521b8b472
Actually deprecate the Heap type
2018-04-12 22:52:47 +02:00
Simon Sapin
88ebd2d752
Rename the Heap type to Global
...
… since it is the entry point for what’s registered with `#[global_allocator]`
2018-04-12 22:52:47 +02:00
Simon Sapin
743c29bdc5
Actually deprecate heap modules.
2018-04-12 22:52:47 +02:00
Simon Sapin
09e8db1e4f
Rename heap
modules in the core, alloc, and std crates to alloc
2018-04-12 22:52:47 +02:00
Simon Sapin
1b895d8b88
Import the alloc
crate as alloc_crate
in std
...
… to make the name `alloc` available.
2018-04-12 22:52:47 +02:00
Simon Sapin
c660cedc02
Add a GlobalAlloc trait
2018-04-12 22:52:47 +02:00
Simon Sapin
9b068867f0
Add a core::heap::Void extern type.
2018-04-12 22:52:47 +02:00
Simon Sapin
1569f8f812
Inline docs for the heap module’s reexports
2018-04-12 22:52:47 +02:00
QuietMisdreavus
3366032ab7
add test for using target features in doctests
2018-04-12 15:51:11 -05:00
Andre Bogus
2f603413ab
improve Atomic*::fetch_update docs
2018-04-12 22:48:48 +02:00
Vadim Petrochenkov
fcf48520a0
Add some new tests + Fix failing tests
2018-04-12 23:06:03 +03:00
Vadim Petrochenkov
d3f8b8be6f
Move hygiene tests to UI
2018-04-12 23:06:03 +03:00
Vadim Petrochenkov
4f69b7fb85
Avoid comparing fields by name when possible
...
Resolve them into field indices once and then use those resolutions
+ Fix rebase
2018-04-12 23:06:03 +03:00
Vadim Petrochenkov
44acea4d88
AST/HIR: Merge field access expressions for named and numeric fields
2018-04-12 23:02:09 +03:00
John Kåre Alsaker
807c1a0935
Make OnDiskCache thread-safer
2018-04-12 21:53:56 +02:00
toidiu
6a229cbfac
Implement inferring outlives requirements for references, structs, enum, union, and projection types. added a feature gate and tests for these scenarios.
2018-04-12 13:52:06 -04:00
Mark Simulacrum
de345332b5
Add check builder for Windows to Travis
2018-04-12 11:09:31 -06:00
bors
6c537493d0
Auto merge of #49558 - Zoxc:sync-misc, r=michaelwoerister
...
Even more thread-safety changes
r? @michaelwoerister
2018-04-12 16:22:36 +00:00
Chris Coulson
6f10146f9f
Fix test failure in src/tools/rustdoc-themes when rust.rpath = false
2018-04-12 15:01:49 +01:00
bors
9afed64645
Auto merge of #49551 - scottmcm:deprecate-offset_to, r=KodrAus
...
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-12 08:29:10 +00:00
Seiichi Uchida
23b880ade5
Run rustfmt on build_helper
2018-04-12 14:49:03 +09:00
bors
252a459d37
Auto merge of #49371 - scottmcm:catch-wrapping, r=nikomatsakis
...
Add ok-wrapping to catch blocks, per RFC
Updates the `catch{}` lowering to wrap the result in `Try::from_ok`.
r? @nikomatsakis
Fixes #41414
Fixes #43818
2018-04-12 05:38:49 +00:00
Tatsuyuki Ishi
b15df80345
traits: Implement interning for Goal and Clause
2018-04-12 13:43:10 +09:00
bors
47778811d9
Auto merge of #48528 - bitshifter:repr_packed, r=eddyb
...
Implementation of `#[repr(packed(n))]` RFC 1399.
Tracking issue https://github.com/rust-lang/rust/issues/33158 .
2018-04-12 03:08:14 +00:00
varkor
105c518094
Abstract cs_eq for partial_eq
2018-04-12 01:53:21 +01:00
bors
d26f9e42df
Auto merge of #49698 - SimonSapin:unicode-for-everyone, r=alexcrichton
...
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-12 00:35:33 +00:00
varkor
60dc4f8ec8
Improve the comment for cs_fold1
2018-04-12 01:33:52 +01:00
varkor
88a9c69121
Update partial_ord codegen summary
2018-04-12 00:51:08 +01:00
Santiago Pastorino
55fb12c274
Fix unsoundness bug in functions input references
...
Check that function input references are well formed
2018-04-11 20:02:14 -03:00
Santiago Pastorino
0e2e179571
Make prove_predicates take an Iterator
2018-04-11 20:02:14 -03:00
Santiago Pastorino
9ec7aa256a
Run rustfmt over type_check/mod.rs
2018-04-11 20:02:14 -03:00
Simon Sapin
ef41788cf3
Mark the rest of the unicode
feature flag as perma-unstable.
2018-04-12 00:13:53 +02:00
Simon Sapin
1ca2905cda
Dedicated tracking issue for UnicodeVersion and UNICODE_VERSION.
2018-04-12 00:13:53 +02:00
Simon Sapin
670e85339a
Move core::char::printable to core::unicode::printable
2018-04-12 00:13:53 +02:00
Simon Sapin
d4ed1e6fa4
Merge unstable Utf16Encoder into EncodeUtf16
2018-04-12 00:13:53 +02:00
Simon Sapin
0d9afcd9b9
Merge core::unicode::str into core::str
...
And the UnicodeStr trait into StrExt
2018-04-12 00:13:52 +02:00
Simon Sapin
33358dc3c5
Remove the CharExt trait, now that libcore has inherent methods for char
2018-04-12 00:13:52 +02:00
Simon Sapin
34c52534f7
Move the rest of core::unicode::char to core::unicode
2018-04-12 00:13:52 +02:00
Simon Sapin
1800d695b9
Move char conversions into a separate private module.
2018-04-12 00:13:52 +02:00
Simon Sapin
955450212a
Move char decoding iterators into a separate private module.
2018-04-12 00:13:52 +02:00
Simon Sapin
939692409d
Reexport from core::unicode::char in core::char rather than vice versa
2018-04-12 00:13:52 +02:00
Simon Sapin
3613b0b52f
Move the core::char module to its own directory
2018-04-12 00:13:52 +02:00
Simon Sapin
b2027ef17c
Deprecate the std_unicode crate
2018-04-12 00:13:51 +02:00
Simon Sapin
5807be7ccb
Move contents of libstd_unicode into libcore
2018-04-12 00:13:43 +02:00