Commit Graph

79236 Commits

Author SHA1 Message Date
bors 7f20af002e Auto merge of #51527 - kennytm:do-not-auto-hide-inherent-impl, r=GuillaumeGomez
Don't auto-hide inherent impls even if `rustdoc-collapse == true`.

This PR changes the auto-collapse behavior when a page is first loaded:

* Inherent impls will never be collapsed by default (new behavior).
* Trait impls will always be collapsed by default, same as before.
* Other items are collapsed according to localStorage, same as before.

This should be much more useful since there is no hint what the content of a collapsed inherent impl would be (try to collapse everything in https://doc.rust-lang.org/std/vec/struct.Vec.html and guess where a method like `try_reserve` or `splice` would be).

Manually clicking the global [-]/[+] will still collapse/expand everything.
2018-06-13 10:03:05 +00:00
kennytm ca65a5e485
Don't auto-hide inherent impls even if `rustdoc-collapse == true`. 2018-06-13 18:00:18 +08:00
bors 8398ab82e5 Auto merge of #50941 - kennytm:never-ok, r=sfackler
Replace `core::iter::AlwaysOk<T>` by `Result<T, !>`

#43278 has been fixed, so we don't need this struct anymore.

(Actually we don't even need `.unwrap()` thanks to `#![feature(exhaustive_patterns)]`)
2018-06-13 00:10:12 +00:00
kennytm 8ae188959b
Replace `core::iter::AlwaysOk<T>` by `Result<T, !>` 2018-06-13 06:54:31 +08:00
bors b68432d560 Auto merge of #51521 - Mark-Simulacrum:rollup, r=Mark-Simulacrum
Rollup of 3 pull requests

Successful merges:

 - #51261 (Updated RELEASES.md for 1.27.0)
 - #51502 (Make parse_seq_to_end and parse_path public)
 - #51510 (Long diagnostic for E0538)

Failed merges:
2018-06-12 17:37:12 +00:00
Mark Rousskov 398e570891
Rollup merge of #51510 - Havvy:diagnostic-list, r=GuillaumeGomez
Long diagnostic for E0538

r? @GuillaumeGomez
2018-06-12 11:22:54 -06:00
Mark Rousskov 1e06b1757c
Rollup merge of #51502 - jebrosen:pub_parse_methods, r=Mark-Simulacrum
Make parse_seq_to_end and parse_path public

(see SergioBenitez/Rocket#660, rust-lang/rust#51265)

Rocket currently uses `parse_seq_to_end` and `parse_path` in its codegen macros. Assuming I tested correctly, this is the minimal set of methods that are currently necessary to build Rocket again. I would be happy to add documentation of this and Rocket's other usages, if desired.
2018-06-12 11:22:53 -06:00
Mark Rousskov 2b21f66beb
Rollup merge of #51261 - Aaronepower:master, r=Mark-Simulacrum
Updated RELEASES.md for 1.27.0

[Rendered](https://github.com/Aaronepower/rust/blob/master/RELEASES.md)
r? @Mark-Simulacrum
cc @rust-lang/release
2018-06-12 11:22:52 -06:00
Aaron Power 46f74a3ef5 Updated RELEASES.md for 1.27.0 2018-06-12 16:45:03 +01:00
bors ef8cb40c9c Auto merge of #51519 - ExpHP:issue-51331-b, r=petrochenkov
Fix for $crate var normalization in proc macro for externally defined macros

Fixes #51331, a bug that has existed in at least *some* form for a year and a half.

The PR includes the addition of a `fold_qpath` method to `syntax::fold::Folder`.  Overriding this method is useful for folds that modify paths in a way that invalidates indices (insertion or removal of a component), as it provides the opportunity to update `qself.position` in `<A as B>::C` paths.  I added it because the bugfix is messy without it.

(unfortunately, grepping around the codebase, I did not see anything else that could use it.)
2018-06-12 15:23:28 +00:00
bors 3f3ba6c3cb Auto merge of #51507 - Aaronepower:fix_51091, r=Mark-Simulacrum
Removed incorrect release note.

 fixes #51091
2018-06-12 13:16:20 +00:00
Michael Lamparski d13bfd294c fix issue #51331 by updating qself.position 2018-06-12 08:06:22 -04:00
Michael Lamparski a20c177827 add fold::Folder::fold_qpath 2018-06-12 08:06:22 -04:00
Michael Lamparski d0c59e2c86 add tests for $crate in QSelf paths 2018-06-12 08:04:09 -04:00
bors a1aae290d5 Auto merge of #51508 - PSeitz:master, r=Mark-Simulacrum
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-12 11:06:09 +00:00
bors 56d9bfdf77 Auto merge of #51505 - cuviper:these-go-to-11, r=estebank
Regenerate character tables for Unicode 11

None
2018-06-12 07:08:09 +00:00
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