]> git.lizzy.rs Git - rust.git/log
rust.git
6 years agofix cross-crate-links test
QuietMisdreavus [Sun, 17 Jun 2018 21:27:46 +0000 (16:27 -0500)]
fix cross-crate-links test

hey look, macros properly link to the right place now

6 years agorustdoc: import cross-crate macros alongside everything else
QuietMisdreavus [Sun, 17 Jun 2018 19:54:28 +0000 (14:54 -0500)]
rustdoc: import cross-crate macros alongside everything else

6 years agoAuto merge of #51392 - glaubitz:powerpc-tests, r=petrochenkov
bors [Sun, 17 Jun 2018 11:53:56 +0000 (11:53 +0000)]
Auto merge of #51392 - glaubitz:powerpc-tests, r=petrochenkov

test: Ignore some problematic tests on powerpc and powerpc64*

This updates the list of tests which can be safely ignored on powerpc and powerpc64*.

6 years agotest: Ignore some problematic tests on powerpc and powerpc64*
John Paul Adrian Glaubitz [Tue, 5 Jun 2018 22:12:00 +0000 (00:12 +0200)]
test: Ignore some problematic tests on powerpc and powerpc64*

6 years agoAuto merge of #51425 - QuietMisdreavus:thats-def-a-namespace-there, r=petrochenkov
bors [Sun, 17 Jun 2018 09:48:10 +0000 (09:48 +0000)]
Auto merge of #51425 - QuietMisdreavus:thats-def-a-namespace-there, r=petrochenkov

refactor: create multiple HIR items for imports

When lowering `use` statements into HIR, they get a `Def` of the thing they're pointing at. This is great for things that need to know what was just pulled into scope. However, this is a bit misleading, because a `use` statement can pull things from multiple namespaces if their names collide. This is a problem for rustdoc, because if there are a module and a function with the same name (for example) then it will only document the module import, because that's that the lowered `use` statement points to.

The current version of this PR does the following:

* Whenever the resolver comes across a `use` statement, it loads the definitions into a new `import_map` instead of the existing `def_map`. This keeps the resolutions per-namespace so that all the target definitions are available.
* When lowering `use` statements, it looks up the resolutions in the `import_map` and creates multiple `Item`s if there is more than one resolution.
* To ensure the `NodeId`s are properly tracked in the lowered module, they need to be created in the AST, and pulled out as needed if multiple resolutions are available.

Fixes https://github.com/rust-lang/rust/issues/34843

6 years agoAuto merge of #51466 - joshlf:ref-split, r=dtolnay
bors [Sun, 17 Jun 2018 07:49:25 +0000 (07:49 +0000)]
Auto merge of #51466 - joshlf:ref-split, r=dtolnay

Add Ref/RefMut map_split method

As proposed [here](https://internals.rust-lang.org/t/make-refcell-support-slice-splitting/7707).

TLDR: Add a `map_split` method that allows multiple `RefMut`s to exist simultaneously so long as they refer to non-overlapping regions of the original `RefCell`. This is useful for things like the slice `split_at_mut` method.

6 years agoAuto merge of #51382 - GuillaumeGomez:intra-link-lint, r=QuietMisdreavus
bors [Sun, 17 Jun 2018 02:57:40 +0000 (02:57 +0000)]
Auto merge of #51382 - GuillaumeGomez:intra-link-lint, r=QuietMisdreavus

Add lint for intra link resolution failure

This PR is almost done, just remains this note:

```
note: requested on the command line with `-W intra-link-resolution-failure`
```

I have no idea why my lint is considered as being passed through command line and wasn't able to find where it was set. If anyone has an idea, it'd be very helpful!

cc @QuietMisdreavus

6 years agoAuto merge of #51596 - Mark-Simulacrum:bootstrap-racy-tests, r=petrochenkov
bors [Sat, 16 Jun 2018 23:48:16 +0000 (23:48 +0000)]
Auto merge of #51596 - Mark-Simulacrum:bootstrap-racy-tests, r=petrochenkov

Prevent Windows filesystem races in bootstrap tests

Fixes #51595.

This also makes bootstrap tests run near last in `./x.py test` invocations
since they are unlikely to fail.

r? @petrochenkov

6 years agoAuto merge of #51594 - eddyb:issue-51582, r=nagisa
bors [Sat, 16 Jun 2018 21:48:31 +0000 (21:48 +0000)]
Auto merge of #51594 - eddyb:issue-51582, r=nagisa

rustc_codegen_llvm: don't treat i1 as signed, even for #[repr(i8)] enums.

Fixes #51582. r? @nagisa cc @nox @oli-obk

6 years agoAuto merge of #51558 - Manishearth:manish-is-stupid, r=oli-obk
bors [Sat, 16 Jun 2018 19:49:33 +0000 (19:49 +0000)]
Auto merge of #51558 - Manishearth:manish-is-stupid, r=oli-obk

Fix my comment on editions

me = idiot

r? @oli-obk

6 years agoAuto merge of #51584 - QuietMisdreavus:globs-and-crosses, r=ollie27
bors [Sat, 16 Jun 2018 17:43:24 +0000 (17:43 +0000)]
Auto merge of #51584 - QuietMisdreavus:globs-and-crosses, r=ollie27

rustdoc: process cross-crate glob re-exports

Turns out, we were deliberately ignoring glob re-exports when they were occurring across crates, even though we were fully processing them for local re-exports. This will at least bring the two into parity.

Fixes https://github.com/rust-lang/rust/issues/51252

6 years agoPrevent Windows filesystem races in bootstrap tests
Mark Simulacrum [Sat, 16 Jun 2018 17:12:15 +0000 (11:12 -0600)]
Prevent Windows filesystem races in bootstrap tests

6 years agoMove bootstrap tests to the end of the default test run
Mark Simulacrum [Sat, 16 Jun 2018 17:11:06 +0000 (11:11 -0600)]
Move bootstrap tests to the end of the default test run

Since they are unlikely to fail and are almost never going to fail
except with bootstrap changes (which would be tested locally anyway) it
makes sense to run these tests close to last.

6 years agoAuto merge of #51591 - pietroalbini:release-notes-fix, r=Mark-Simulacrum
bors [Sat, 16 Jun 2018 13:08:16 +0000 (13:08 +0000)]
Auto merge of #51591 - pietroalbini:release-notes-fix, r=Mark-Simulacrum

Remove `?` macro separator compatibility note from 1.27 release notes

The implementation has been reverted in https://github.com/rust-lang/rust/pull/51417, so this no longer applies to 1.27.0.

r? @Mark-Simulacrum

6 years agorustc_codegen_llvm: don't treat i1 as signed, even for #[repr(i8)] enums.
Eduard-Mihai Burtescu [Sat, 16 Jun 2018 11:19:05 +0000 (14:19 +0300)]
rustc_codegen_llvm: don't treat i1 as signed, even for #[repr(i8)] enums.

6 years agoRemove `?` macro separator compatibility note from 1.27 release notes
Pietro Albini [Sat, 16 Jun 2018 11:39:35 +0000 (13:39 +0200)]
Remove `?` macro separator compatibility note from 1.27 release notes

The implementation has been reverted.

6 years agoAuto merge of #51562 - SimonSapin:transparent, r=cramertj
bors [Sat, 16 Jun 2018 10:59:40 +0000 (10:59 +0000)]
Auto merge of #51562 - SimonSapin:transparent, r=cramertj

Stabilize #[repr(transparent)]

Tracking issue FCP: https://github.com/rust-lang/rust/issues/43036#issuecomment-394094318
Reference PR: https://github.com/rust-lang-nursery/reference/pull/353

6 years agoAuto merge of #51550 - eddyb:queries-not-maps, r=nikomatsakis
bors [Sat, 16 Jun 2018 08:48:46 +0000 (08:48 +0000)]
Auto merge of #51550 - eddyb:queries-not-maps, r=nikomatsakis

rustc: rename ty::maps to ty::query.

Should've never been `maps` but "query system/engine" didn't fully settle from the start.

r? @michaelwoerister or @nikomatsakis

6 years agoAuto merge of #51581 - GuillaumeGomez:keyword-doc, r=QuietMisdreavus
bors [Sat, 16 Jun 2018 06:38:16 +0000 (06:38 +0000)]
Auto merge of #51581 - GuillaumeGomez:keyword-doc, r=QuietMisdreavus

Keyword doc

Part of #51451.

r? @QuietMisdreavus

6 years agoAuto merge of #51411 - nnethercote:process_predicate, r=nikomatsakis
bors [Sat, 16 Jun 2018 03:06:10 +0000 (03:06 +0000)]
Auto merge of #51411 - nnethercote:process_predicate, r=nikomatsakis

Speed up obligation forest code

Here are the rustc-perf benchmarks that get at least a 1% speedup on one or more of their runs with these patches applied:
```
inflate-check
        avg: -8.7%      min: -12.1%     max: 0.0%
inflate
        avg: -5.9%      min: -8.6%      max: 1.1%
inflate-opt
        avg: -1.5%      min: -2.0%      max: -0.3%
clap-rs-check
        avg: -0.6%      min: -1.9%      max: 0.5%
coercions
        avg: -0.2%?     min: -1.3%?     max: 0.6%?
serde-opt
        avg: -0.6%      min: -1.0%      max: 0.1%
coercions-check
        avg: -0.4%?     min: -1.0%?     max: -0.0%?
```

6 years agoprocess cross-crate glob re-exports
QuietMisdreavus [Fri, 15 Jun 2018 23:16:43 +0000 (18:16 -0500)]
process cross-crate glob re-exports

6 years agoAuto merge of #51462 - Havvy:refactor-cmp, r=nikomatsakis
bors [Fri, 15 Jun 2018 23:16:09 +0000 (23:16 +0000)]
Auto merge of #51462 - Havvy:refactor-cmp, r=nikomatsakis

Refactor: Rename ExistentialPredicate::cmp to ExistentialPredicate::stable_cmp

See https://github.com/rust-lang/rust/pull/51276#discussion_r193549404 for
rationale.

Because stable_cmp takes three arguments and Ord::cmp takes two, I am confident that there is no shadowing happening here.

r? @nikomatsakis

6 years agoAdd rustdoc-js tester should-fail option
Guillaume Gomez [Fri, 15 Jun 2018 21:39:20 +0000 (23:39 +0200)]
Add rustdoc-js tester should-fail option

6 years agoFix search fn keyword
Guillaume Gomez [Fri, 15 Jun 2018 21:23:25 +0000 (23:23 +0200)]
Fix search fn keyword

6 years agoAdd doc for fn keyword
Guillaume Gomez [Fri, 15 Jun 2018 21:23:11 +0000 (23:23 +0200)]
Add doc for fn keyword

6 years agoturn expect_full_def_from_use into an iterator
QuietMisdreavus [Fri, 15 Jun 2018 19:47:07 +0000 (14:47 -0500)]
turn expect_full_def_from_use into an iterator

6 years agoAuto merge of #50296 - cmdd:master, r=nikomatsakis
bors [Fri, 15 Jun 2018 19:05:25 +0000 (19:05 +0000)]
Auto merge of #50296 - cmdd:master, r=nikomatsakis

Add error message for using >= 65535 hashes for raw string literal escapes

Fixes #50111.

6 years agoAuto merge of #51565 - kennytm:fix-toolstate-on-appveyor, r=Mark-Simulacrum
bors [Fri, 15 Jun 2018 16:38:08 +0000 (16:38 +0000)]
Auto merge of #51565 - kennytm:fix-toolstate-on-appveyor, r=Mark-Simulacrum

Fix the recent spurious breakage on AppVeyor.

Fixed the spurious error introduced by d2b5b7603b6b7ecb4ff93981c785aef640015e68 due to a wrongly resolved relative path on AppVeyor.

This only starts to happen today because we just entered the last week of the 6-week cycle.

6 years agoFix issue on unix
Guillaume Gomez [Fri, 15 Jun 2018 08:00:57 +0000 (10:00 +0200)]
Fix issue on unix

6 years agoadd test for issue 34843
QuietMisdreavus [Fri, 8 Jun 2018 18:38:10 +0000 (13:38 -0500)]
add test for issue 34843

6 years agorustdoc: discard struct ctors from imports
QuietMisdreavus [Thu, 14 Jun 2018 21:34:32 +0000 (16:34 -0500)]
rustdoc: discard struct ctors from imports

6 years agocreate multiple HIR items for a use statement
QuietMisdreavus [Wed, 13 Jun 2018 16:44:06 +0000 (11:44 -0500)]
create multiple HIR items for a use statement

6 years agoFix checkregression breakage of toolstate builder on AppVeyor.
kennytm [Thu, 14 Jun 2018 19:49:13 +0000 (03:49 +0800)]
Fix checkregression breakage of toolstate builder on AppVeyor.

6 years agoFix comment on editions
Manish Goregaokar [Thu, 14 Jun 2018 17:46:50 +0000 (10:46 -0700)]
Fix comment on editions

6 years agorustc: rename ty::maps to ty::query.
Eduard-Mihai Burtescu [Wed, 13 Jun 2018 13:44:43 +0000 (16:44 +0300)]
rustc: rename ty::maps to ty::query.

6 years agoAuto merge of #51542 - ccesare:remove_update-reference, r=oli-obk
bors [Wed, 13 Jun 2018 23:29:51 +0000 (23:29 +0000)]
Auto merge of #51542 - ccesare:remove_update-reference, r=oli-obk

Removed various update-reference and update-all-references scripts

A PR that addresses #50853 changes that made `update-reference` and `update-all-references` scripts obsolete.

6 years agoRemoved various update-reference and update-all-references scripts
Chris Cesare [Wed, 13 Jun 2018 22:15:50 +0000 (18:15 -0400)]
Removed various update-reference and update-all-references scripts

6 years agoAdd missing allow_missing_docs
Guillaume Gomez [Wed, 13 Jun 2018 20:28:21 +0000 (22:28 +0200)]
Add missing allow_missing_docs

6 years agoRename intra-doc lint
Guillaume Gomez [Wed, 13 Jun 2018 19:17:15 +0000 (21:17 +0200)]
Rename intra-doc lint

6 years agoAuto merge of #51532 - MajorBreakfast:task-future, r=cramertj
bors [Wed, 13 Jun 2018 20:44:17 +0000 (20:44 +0000)]
Auto merge of #51532 - MajorBreakfast:task-future, r=cramertj

Improve core::task::TaskObj

- Rename `UnsafePoll` to `UnsafeTask` to avoid confusion with `Poll`
- Rename `TaskObj::from_poll_task()` to `TaskObj::new()`
- Rename `TaskObj`'s `poll` and `drop` fields to `poll_fn` and `drop_fn`
- Implement `Future` for `TaskObj`. Reason: It's a custom trait object for a future, so it should implement future
- Remove `unsafe impl Sync` for `TaskObj`. I don't think we need it. Was this safe? `UnsafeTask` only requires to implement `Send`

@cramertj
@aturon

6 years agoUpdate help message to escape square brackets
Guillaume Gomez [Sat, 9 Jun 2018 19:07:09 +0000 (21:07 +0200)]
Update help message to escape square brackets

6 years agoFix rustdoc test failure
Guillaume Gomez [Sat, 9 Jun 2018 19:06:40 +0000 (21:06 +0200)]
Fix rustdoc test failure

6 years agoAdd help for intra-link lint
Guillaume Gomez [Sat, 9 Jun 2018 15:30:22 +0000 (17:30 +0200)]
Add help for intra-link lint

6 years agoFix options issues
Guillaume Gomez [Sat, 9 Jun 2018 15:20:58 +0000 (17:20 +0200)]
Fix options issues

6 years agoAuto merge of #51539 - dhiru30:patch-1, r=estebank
bors [Wed, 13 Jun 2018 18:39:56 +0000 (18:39 +0000)]
Auto merge of #51539 - dhiru30:patch-1, r=estebank

Update README.md

Corrected the grammar of the document.

6 years agoAdd Ref/RefMut map_split method
Joshua Liebow-Feeser [Sun, 10 Jun 2018 05:32:05 +0000 (22:32 -0700)]
Add Ref/RefMut map_split method

6 years agoUpdate README.md
Dhirendra Kumar Kashyap [Wed, 13 Jun 2018 17:50:50 +0000 (23:20 +0530)]
Update README.md

6 years agoUpdate README.md
Dhirendra Kumar Kashyap [Wed, 13 Jun 2018 17:23:50 +0000 (22:53 +0530)]
Update README.md

Corrected the grammar of the document.

6 years agoAuto merge of #51531 - Havvy:patch-1, r=kennytm
bors [Wed, 13 Jun 2018 12:12:22 +0000 (12:12 +0000)]
Auto merge of #51531 - Havvy:patch-1, r=kennytm

Remove stray commented one use statement

[Insert embarrassed face here]

6 years agoAuto merge of #51527 - kennytm:do-not-auto-hide-inherent-impl, r=GuillaumeGomez
bors [Wed, 13 Jun 2018 10:03:05 +0000 (10:03 +0000)]
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.

6 years agoDon't auto-hide inherent impls even if `rustdoc-collapse == true`.
kennytm [Sun, 10 Jun 2018 20:38:04 +0000 (04:38 +0800)]
Don't auto-hide inherent impls even if `rustdoc-collapse == true`.

6 years agoImprove core::task::TaskObj
Josef Reinhard Brandl [Wed, 13 Jun 2018 07:09:57 +0000 (09:09 +0200)]
Improve core::task::TaskObj

6 years agoRemove stray commented one use statement
Ryan Scheel [Wed, 13 Jun 2018 07:27:57 +0000 (00:27 -0700)]
Remove stray commented one use statement

[Insert embarrassed face here]

6 years agoAuto merge of #50941 - kennytm:never-ok, r=sfackler
bors [Wed, 13 Jun 2018 00:10:12 +0000 (00:10 +0000)]
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)]`)

6 years agoReplace `core::iter::AlwaysOk<T>` by `Result<T, !>`
kennytm [Mon, 21 May 2018 14:50:25 +0000 (22:50 +0800)]
Replace `core::iter::AlwaysOk<T>` by `Result<T, !>`

6 years agoAuto merge of #51521 - Mark-Simulacrum:rollup, r=Mark-Simulacrum
bors [Tue, 12 Jun 2018 17:37:12 +0000 (17:37 +0000)]
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:

6 years agoRollup merge of #51510 - Havvy:diagnostic-list, r=GuillaumeGomez
Mark Rousskov [Tue, 12 Jun 2018 17:22:54 +0000 (11:22 -0600)]
Rollup merge of #51510 - Havvy:diagnostic-list, r=GuillaumeGomez

Long diagnostic for E0538

r? @GuillaumeGomez

6 years agoRollup merge of #51502 - jebrosen:pub_parse_methods, r=Mark-Simulacrum
Mark Rousskov [Tue, 12 Jun 2018 17:22:53 +0000 (11:22 -0600)]
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.

6 years agoRollup merge of #51261 - Aaronepower:master, r=Mark-Simulacrum
Mark Rousskov [Tue, 12 Jun 2018 17:22:52 +0000 (11:22 -0600)]
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

6 years agoUpdated RELEASES.md for 1.27.0
Aaron Power [Thu, 31 May 2018 22:32:20 +0000 (23:32 +0100)]
Updated RELEASES.md for 1.27.0

6 years agoAuto merge of #51519 - ExpHP:issue-51331-b, r=petrochenkov
bors [Tue, 12 Jun 2018 15:23:28 +0000 (15:23 +0000)]
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.)

6 years agoAuto merge of #51507 - Aaronepower:fix_51091, r=Mark-Simulacrum
bors [Tue, 12 Jun 2018 13:16:20 +0000 (13:16 +0000)]
Auto merge of #51507 - Aaronepower:fix_51091, r=Mark-Simulacrum

Removed incorrect release note.

 fixes #51091

6 years agofix issue #51331 by updating qself.position
Michael Lamparski [Mon, 11 Jun 2018 23:44:48 +0000 (19:44 -0400)]
fix issue #51331 by updating qself.position

6 years agoadd fold::Folder::fold_qpath
Michael Lamparski [Mon, 11 Jun 2018 23:26:53 +0000 (19:26 -0400)]
add fold::Folder::fold_qpath

6 years agoadd tests for $crate in QSelf paths
Michael Lamparski [Mon, 11 Jun 2018 23:29:12 +0000 (19:29 -0400)]
add tests for $crate in QSelf paths

6 years agoAuto merge of #51508 - PSeitz:master, r=Mark-Simulacrum
bors [Tue, 12 Jun 2018 11:06:09 +0000 (11:06 +0000)]
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

6 years agoAuto merge of #51505 - cuviper:these-go-to-11, r=estebank
bors [Tue, 12 Jun 2018 07:08:09 +0000 (07:08 +0000)]
Auto merge of #51505 - cuviper:these-go-to-11, r=estebank

Regenerate character tables for Unicode 11

None

6 years agoStabilize #[repr(transparent)]
Simon Sapin [Wed, 6 Jun 2018 11:24:16 +0000 (13:24 +0200)]
Stabilize #[repr(transparent)]

Tracking issue FCP: https://github.com/rust-lang/rust/issues/43036#issuecomment-394094318
Reference PR: https://github.com/rust-lang-nursery/reference/pull/353

6 years agoAuto merge of #51498 - topecongiro:pub-parse_ident, r=petrochenkov
bors [Tue, 12 Jun 2018 02:48:10 +0000 (02:48 +0000)]
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.

6 years agoAuto merge of #51241 - glandium:globalalloc, r=sfackler,SimonSapin
bors [Tue, 12 Jun 2018 00:36:21 +0000 (00:36 +0000)]
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

6 years agoSlightly better summary for E0538
Havvy [Tue, 12 Jun 2018 00:21:15 +0000 (17:21 -0700)]
Slightly better summary for E0538

6 years agoLong diagnostic for E0538
Havvy [Mon, 11 Jun 2018 20:26:03 +0000 (13:26 -0700)]
Long diagnostic for E0538

6 years agoAuto merge of #50617 - GuillaumeGomez:fix-extern-prelude, r=QuietMisdreavus
bors [Mon, 11 Jun 2018 22:23:08 +0000 (22:23 +0000)]
Auto merge of #50617 - GuillaumeGomez:fix-extern-prelude, r=QuietMisdreavus

Fix extern prelude failure in rustdoc

Fixes #50561.

r? @QuietMisdreavus

6 years agoMore alloc docs tweaks
Simon Sapin [Fri, 1 Jun 2018 07:18:25 +0000 (09:18 +0200)]
More alloc docs tweaks

6 years agoAlloc docs teaks
Simon Sapin [Fri, 1 Jun 2018 00:19:36 +0000 (02:19 +0200)]
Alloc docs teaks

6 years agoMark alloc_jemalloc as perma-unstable
Simon Sapin [Thu, 31 May 2018 18:24:50 +0000 (20:24 +0200)]
Mark alloc_jemalloc as perma-unstable

6 years agoMove Unstable Book sections for #[global_allocator] and System to std::alloc docs
Simon Sapin [Thu, 31 May 2018 18:22:59 +0000 (20:22 +0200)]
Move Unstable Book sections for #[global_allocator] and System to std::alloc docs

6 years agoRemove some '#[feature]' attributes for stabilized features
Simon Sapin [Thu, 31 May 2018 17:31:00 +0000 (19:31 +0200)]
Remove some '#[feature]' attributes for stabilized features

6 years agoStabilize the #[global_allocator] attribute
Simon Sapin [Thu, 31 May 2018 17:33:13 +0000 (19:33 +0200)]
Stabilize the #[global_allocator] attribute

Fixes https://github.com/rust-lang/rust/issues/27389

6 years agoStabilize the `System` allocator
Simon Sapin [Thu, 31 May 2018 17:16:24 +0000 (19:16 +0200)]
Stabilize the `System` allocator

6 years agoMove set_oom_hook and take_oom_hook to a dedicated tracking issue
Simon Sapin [Thu, 31 May 2018 17:15:11 +0000 (19:15 +0200)]
Move set_oom_hook and take_oom_hook to a dedicated tracking issue

6 years agoStabilize alloc::oom (but not set_oom_hook or take_oom_hook)
Simon Sapin [Thu, 31 May 2018 17:13:57 +0000 (19:13 +0200)]
Stabilize alloc::oom (but not set_oom_hook or take_oom_hook)

6 years agoStabilize alloc free functions for the global allocators.
Simon Sapin [Thu, 31 May 2018 17:13:37 +0000 (19:13 +0200)]
Stabilize alloc free functions for the global allocators.

6 years agoStablize the GlobalAlloc trait
Simon Sapin [Thu, 31 May 2018 17:13:18 +0000 (19:13 +0200)]
Stablize the GlobalAlloc trait

Fixes https://github.com/rust-lang/rust/issues/49668

6 years agoStabilize alloc::Layout (with only some of its methods)
Simon Sapin [Thu, 31 May 2018 17:10:08 +0000 (19:10 +0200)]
Stabilize alloc::Layout (with only some of its methods)

6 years agoMark as permanently-unstable some implementation details
Simon Sapin [Thu, 31 May 2018 16:38:39 +0000 (18:38 +0200)]
Mark as permanently-unstable some implementation details

6 years agoStablize the alloc module without changing stability of its contents.
Simon Sapin [Thu, 31 May 2018 16:36:51 +0000 (18:36 +0200)]
Stablize the alloc module without changing stability of its contents.

6 years agoDocument memory allocation APIs
Simon Sapin [Thu, 31 May 2018 16:23:42 +0000 (18:23 +0200)]
Document memory allocation APIs

Add some docs where they were missing,
attempt to fix them where they were out of date.

6 years agoRemove some unneeded casts
Simon Sapin [Wed, 30 May 2018 19:04:17 +0000 (21:04 +0200)]
Remove some unneeded casts

6 years agoRemove the deprecated Heap type/const
Simon Sapin [Wed, 30 May 2018 19:15:40 +0000 (21:15 +0200)]
Remove the deprecated Heap type/const

6 years agoRemove deprecated heap modules
Simon Sapin [Wed, 30 May 2018 18:46:59 +0000 (20:46 +0200)]
Remove deprecated heap modules

The heap.rs file was already unused.

6 years agoReplace `impl GlobalAlloc for Global` with a set of free functions
Mike Hommey [Thu, 31 May 2018 07:10:01 +0000 (16:10 +0900)]
Replace `impl GlobalAlloc for Global` with a set of free functions

6 years agoRemove alloc::Opaque and use *mut u8 as pointer type for GlobalAlloc
Mike Hommey [Thu, 31 May 2018 06:57:43 +0000 (15:57 +0900)]
Remove alloc::Opaque and use *mut u8 as pointer type for GlobalAlloc

6 years agoFix extern prelude failure in rustdoc
Guillaume Gomez [Thu, 10 May 2018 18:13:25 +0000 (20:13 +0200)]
Fix extern prelude failure in rustdoc

6 years agoAuto merge of #51442 - tinaun:more-future-impls, r=cramertj
bors [Mon, 11 Jun 2018 20:14:39 +0000 (20:14 +0000)]
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.

6 years agoMake span_fatal and parse_block public
PSeitz [Mon, 11 Jun 2018 19:19:12 +0000 (21:19 +0200)]
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

6 years agoRemoved incorrect release note. fixes #51091
Aaron Power [Mon, 11 Jun 2018 19:11:28 +0000 (20:11 +0100)]
Removed incorrect release note. fixes #51091

6 years agoRegenerate character tables for Unicode 11
Josh Stone [Mon, 11 Jun 2018 17:54:30 +0000 (10:54 -0700)]
Regenerate character tables for Unicode 11

6 years agoMake parse_seq_to_end and parse_path public
jeb [Mon, 11 Jun 2018 16:40:58 +0000 (10:40 -0600)]
Make parse_seq_to_end and parse_path public

6 years agoAuto merge of #51490 - Havvy:diagnostic-list, r=GuillaumeGomez
bors [Mon, 11 Jun 2018 15:28:44 +0000 (15:28 +0000)]
Auto merge of #51490 - Havvy:diagnostic-list, r=GuillaumeGomez

Long diagnostic for E0541

r? @GuillaumeGomez