Commit Graph

79276 Commits

Author SHA1 Message Date
bors
1abb4ef636 Auto merge of #51498 - topecongiro:pub-parse_ident, r=petrochenkov
Make parse_ident public

`parse_ident` was made private in #51265. In rustfmt the method is used to create a custom parser for macro call.
2018-06-12 02:48:10 +00:00
bors
4367e41ea2 Auto merge of #51241 - glandium:globalalloc, r=sfackler,SimonSapin
Stabilize GlobalAlloc and #[global_allocator]

This PR implements the changes discussed in https://github.com/rust-lang/rust/issues/49668#issuecomment-393263510

Fixes #49668
Fixes #27389

This does not change the default global allocator: #36963
2018-06-12 00:36:21 +00:00
Havvy
e9e0ca0382 Slightly better summary for E0538 2018-06-11 17:21:15 -07:00
Havvy
45748256ef Long diagnostic for E0538 2018-06-11 15:49:54 -07:00
bors
f9944fde37 Auto merge of #50617 - GuillaumeGomez:fix-extern-prelude, r=QuietMisdreavus
Fix extern prelude failure in rustdoc

Fixes #50561.

r? @QuietMisdreavus
2018-06-11 22:23:08 +00:00
Simon Sapin
7f0d54d988 More alloc docs tweaks 2018-06-11 13:48:57 -07:00
Simon Sapin
9dcb64f346 Alloc docs teaks 2018-06-11 13:48:57 -07:00
Simon Sapin
b2d526cc8c Mark alloc_jemalloc as perma-unstable 2018-06-11 13:48:57 -07:00
Simon Sapin
a24924f683 Move Unstable Book sections for #[global_allocator] and System to std::alloc docs 2018-06-11 13:48:57 -07:00
Simon Sapin
fd6e08a1e6 Remove some '#[feature]' attributes for stabilized features 2018-06-11 13:48:57 -07:00
Simon Sapin
999690ce5d Stabilize the #[global_allocator] attribute
Fixes https://github.com/rust-lang/rust/issues/27389
2018-06-11 13:48:56 -07:00
Simon Sapin
8111717da1 Stabilize the System allocator 2018-06-11 13:48:39 -07:00
Simon Sapin
90d19728fc Move set_oom_hook and take_oom_hook to a dedicated tracking issue 2018-06-11 13:48:39 -07:00
Simon Sapin
125b259b35 Stabilize alloc::oom (but not set_oom_hook or take_oom_hook) 2018-06-11 13:48:39 -07:00
Simon Sapin
45d6d207b0 Stabilize alloc free functions for the global allocators. 2018-06-11 13:48:39 -07:00
Simon Sapin
bbaff036e7 Stablize the GlobalAlloc trait
Fixes https://github.com/rust-lang/rust/issues/49668
2018-06-11 13:48:39 -07:00
Simon Sapin
77606f20c9 Stabilize alloc::Layout (with only some of its methods) 2018-06-11 13:48:33 -07:00
Simon Sapin
75e17da873 Mark as permanently-unstable some implementation details 2018-06-11 13:48:27 -07:00
Simon Sapin
951bc28fd0 Stablize the alloc module without changing stability of its contents. 2018-06-11 13:48:25 -07:00
Simon Sapin
e9fd063edb Document memory allocation APIs
Add some docs where they were missing,
attempt to fix them where they were out of date.
2018-06-11 13:47:28 -07:00
Simon Sapin
0081d8826b Remove some unneeded casts 2018-06-11 13:47:28 -07:00
Simon Sapin
11f992c958 Remove the deprecated Heap type/const 2018-06-11 13:47:28 -07:00
Simon Sapin
8c30c51686 Remove deprecated heap modules
The heap.rs file was already unused.
2018-06-11 13:47:27 -07:00
Mike Hommey
3373204ac4 Replace impl GlobalAlloc for Global with a set of free functions 2018-06-11 13:47:23 -07:00
Mike Hommey
f6ab74b8e7 Remove alloc::Opaque and use *mut u8 as pointer type for GlobalAlloc 2018-06-11 13:47:23 -07:00
Guillaume Gomez
dadfa13f47 Fix extern prelude failure in rustdoc 2018-06-11 22:24:35 +02:00
bors
1d4dbf488a Auto merge of #51442 - tinaun:more-future-impls, r=cramertj
[futures] add a few blanket impls to std

these were defined in the futures crate, but with the core definitions moving to std these would need to move too.
2018-06-11 20:14:39 +00:00
PSeitz
6fd9ede0cd
Make span_fatal and parse_block public
span_fatal and parse_block  were made private in #51265. These methods are used in stainless.

Related #51498 #51504
2018-06-11 21:19:12 +02:00
Aaron Power
33ceb03efd Removed incorrect release note. fixes #51091 2018-06-11 20:11:28 +01:00
Josh Stone
f81e34b825 Regenerate character tables for Unicode 11 2018-06-11 10:54:30 -07:00
jeb
7e56261fcb Make parse_seq_to_end and parse_path public 2018-06-11 10:40:58 -06:00
bors
0b7c9e756e Auto merge of #51490 - Havvy:diagnostic-list, r=GuillaumeGomez
Long diagnostic for E0541

r? @GuillaumeGomez
2018-06-11 15:28:44 +00:00
Seiichi Uchida
ed74b0b016 Make parse_ident public 2018-06-11 23:04:11 +09:00
bors
0d763178e5 Auto merge of #51478 - crlf0710:patch-2, r=QuietMisdreavus
Add #[doc(inline)] in std::task

Add #[doc(inline)] in `std::task` to make the nightly docs seem right.
2018-06-11 13:24:00 +00:00
Havvy
cf3fcab973 More E0541 long diagnostic wording tweaks 2018-06-11 03:51:04 -07:00
bors
13f8d073fe Auto merge of #51480 - dtolnay:lifetime, r=kennytm
Enable fall through past $:lifetime matcher

```rust
macro_rules! is_lifetime {
    ($lifetime:lifetime) => { true };
    ($other:tt) => { false };
}

fn main() {
    println!("{}", is_lifetime!('lifetime));
    println!("{}", is_lifetime!(@));
}
```

Before this fix, the `is_lifetime!` invocation would fail to compile with:

```
error: expected a lifetime, found `@`
 --> src/main.rs:8:33
  |
8 |     println!("{}", is_lifetime!(@));
  |                                 ^
```

Fixes #50903.
Fixes #51477.

r? @kennytm
2018-06-11 10:43:20 +00:00
Havvy
0c91bd200e Make tidy happy 2018-06-11 03:04:08 -07:00
Havvy
2d7b046d71 Fix typos in previous commit 2018-06-11 02:44:55 -07:00
Havvy
f7df1f38dd Long diagnostic for E0541 2018-06-11 01:52:12 -07:00
bors
18a00bd985 Auto merge of #51467 - toidiu:ak-51409, r=nikomatsakis
create separate dep-nodes for predicates_of and explicit_predicates_of

Fix for https://github.com/rust-lang/rust/issues/51409

- added incremental compilation test for infer_outlives_requirements
- created separate dep-node for explicit_predicates_of
2018-06-11 08:37:01 +00:00
bors
a32e979ba5 Auto merge of #51423 - RalfJung:from_raw_parts, r=sfackler
Improve docs for slice::from_raw_parts

Explain why the pointer must be non-null and aligned.

Cc @hsivonen
2018-06-11 03:48:23 +00:00
bors
7dc61f3022 Auto merge of #51461 - estebank:e0423-doc, r=petrochenkov
Update E0423 description

E0423 doesn't apply only to structs, update the error index description
to make this clear.

Fix #42077.
2018-06-11 00:32:22 +00:00
bors
b202bebdee Auto merge of #51475 - GuillaumeGomez:fix-error-codes, r=Manishearth
Fix error codes
2018-06-10 22:30:14 +00:00
David Tolnay
987020846c
Enable fall through past $:lifetime matcher 2018-06-10 14:39:16 -07:00
bors
a805a2a5eb Auto merge of #50205 - topecongiro:include-parens-to-type-parameter, r=petrochenkov
Include parens to type parameter

The motivation of this PR is to fix a bug in rustfmt (cc https://github.com/rust-lang-nursery/rustfmt/issues/2630).
2018-06-10 20:09:22 +00:00
CrLF0710
02c96d4733
Add #[doc(inline)] in std::task
Add #[doc(inline)] in `std::task` to make the doc seem right.
2018-06-11 03:09:30 +08:00
bors
cabb679bf1 Auto merge of #51474 - llogiq:from-docs, r=TimNN
add some docs to `From` conversions

This adds a helpful document to the bool → int* conversions as well as to the lossless integer conversions.

One of #51430 down, some more to go.
2018-06-10 18:00:12 +00:00
bors
c5a129e809 Auto merge of #51200 - tmccombs:stable-iter-repeat-with, r=Centril,kennytm
Stabilize iterator_repeat_with

Fixes #48169
2018-06-10 15:48:14 +00:00
bors
900037e3c3 Auto merge of #51079 - GuillaumeGomez:stabilize-entry-or-default, r=SimonSapin
Stabilize entry-or-default

Fixes #44324.

cc @SimonSapin
2018-06-10 12:46:14 +00:00
Guillaume Gomez
f2349d5ec6 Fix error codes 2018-06-10 14:04:48 +02:00