]> git.lizzy.rs Git - rust.git/log
rust.git
6 years agoUse MTRef and MTLock to avoid a RefCell
John Kåre Alsaker [Fri, 8 Jun 2018 15:49:21 +0000 (17:49 +0200)]
Use MTRef and MTLock to avoid a RefCell

6 years agoAdd MTRef and a lock_mut function to MTLock
John Kåre Alsaker [Fri, 8 Jun 2018 15:48:31 +0000 (17:48 +0200)]
Add MTRef and a lock_mut function to MTLock

6 years agoParallelize trans item collection
John Kåre Alsaker [Sun, 21 Jan 2018 18:46:14 +0000 (19:46 +0100)]
Parallelize trans item collection

6 years agoSave query results and the dep graph in parallel
John Kåre Alsaker [Wed, 24 Jan 2018 08:59:08 +0000 (09:59 +0100)]
Save query results and the dep graph in parallel

6 years agoParallel code
John Kåre Alsaker [Thu, 15 Mar 2018 09:08:52 +0000 (10:08 +0100)]
Parallel code

6 years agoAdd par_body_owners
John Kåre Alsaker [Thu, 15 Mar 2018 09:05:33 +0000 (10:05 +0100)]
Add par_body_owners

6 years agoAuto merge of #50894 - teiesti:stabilize_path_ancestors, r=dtolnay
bors [Mon, 18 Jun 2018 18:56:13 +0000 (18:56 +0000)]
Auto merge of #50894 - teiesti:stabilize_path_ancestors, r=dtolnay

Stabilize std::path::Path::ancestors

Closes #48581

r? @BurntSushi

6 years agoStabilize std::path::Path:ancestors
Tobias Stolzmann [Sat, 19 May 2018 15:49:13 +0000 (17:49 +0200)]
Stabilize std::path::Path:ancestors

6 years agoAuto merge of #51460 - nikomatsakis:nll-perf-examination-refactor-1, r=pnkfelix
bors [Mon, 18 Jun 2018 16:37:10 +0000 (16:37 +0000)]
Auto merge of #51460 - nikomatsakis:nll-perf-examination-refactor-1, r=pnkfelix

Improve memoization and refactor NLL type check

I have a big branch that is refactoring NLL type check with the goal of introducing canonicalization-based memoization for all of the operations it does. This PR contains an initial prefix of that branch which, I believe, stands alone. It does introduce a few smaller optimizations of its own:

- Skip operations that are trivially a no-op
- Cache the results of the dropck-outlives computations done by liveness
- Skip resetting unifications if nothing changed

r? @pnkfelix

6 years agoAuto merge of #51414 - oli-obk:impl_trait_type_def, r=pnkfelix
bors [Mon, 18 Jun 2018 14:34:52 +0000 (14:34 +0000)]
Auto merge of #51414 - oli-obk:impl_trait_type_def, r=pnkfelix

Add existential type definitions

Note: this does not allow creating named existential types, it just desugars `impl Trait` to a less (but still very) hacky version of actual `existential type` items.

r? @nikomatsakis

6 years agoAuto merge of #51605 - ericfindlay:master, r=kennytm
bors [Mon, 18 Jun 2018 00:27:58 +0000 (00:27 +0000)]
Auto merge of #51605 - ericfindlay:master, r=kennytm

Fixed minor error in Compiler Error Index, E0603.

6 years agoAuto merge of #51404 - clarcharr:never_hash, r=KodrAus
bors [Sun, 17 Jun 2018 22:25:34 +0000 (22:25 +0000)]
Auto merge of #51404 - clarcharr:never_hash, r=KodrAus

impl Hash for !

This was missing in some generic code I was writing and I figured that it would be worthwhile to add this. Blanket-requiring these traits to allow usage of errors in `HashSet`s and `HashMap`s isn't too unreasonable of a use case, and a prerequisite for allowing `!` as an error in such situations is this impl.

6 years agoAuto merge of #51529 - nodakai:improve-sys_common-mutex, r=oli-obk
bors [Sun, 17 Jun 2018 20:11:35 +0000 (20:11 +0000)]
Auto merge of #51529 - nodakai:improve-sys_common-mutex, r=oli-obk

libstd: add an RAII utility for sys_common::mutex::Mutex

It is indeed debatable whether or not we should introduce more sophistication like this to the lowest layer of a system library. In fact, `Drop::drop()` cannot be `unsafe` (IIRC there was a discussion on introducing an unsafe variant of `Drop` whose entire scope must be within `unsafe`)

6 years agoAuto merge of #51555 - ccesare:remove_unused_variables_redox_os, r=kennytm
bors [Sun, 17 Jun 2018 18:06:31 +0000 (18:06 +0000)]
Auto merge of #51555 - ccesare:remove_unused_variables_redox_os, r=kennytm

Removed two unused variables in os.rs

Issue #51419 suggested removing two unused variables in `libstd/sys/redox/os.rs`. This PR implements that change.

It compiles for me locally, but I haven't run any other tests.

6 years agoAuto merge of #51552 - ccesare:patch-1, r=kennytm
bors [Sun, 17 Jun 2018 16:07:29 +0000 (16:07 +0000)]
Auto merge of #51552 - ccesare:patch-1, r=kennytm

Minor language change to CONTRIBUTING.md

In the `#building` section, the doc read that a default configuration "shall use around 3.5 GB of disk space." Changed "shall use" to "requires," as I don't think it's meant to sound so prescriptive.

6 years agoAuto merge of #51549 - PSeitz:patch-1, r=kennytm
bors [Sun, 17 Jun 2018 14:05:43 +0000 (14:05 +0000)]
Auto merge of #51549 - PSeitz:patch-1, r=kennytm

Follow up to #51508, make parse_block public instead parse_block_expr

This is an follow up to #51508

I mistakenly made parse_block_expr public instead of parse_block.
This fixes this.

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 agolibstd: add an RAII utility for sys_common::mutex::Mutex
NODA, Kai [Sat, 9 Jun 2018 13:13:04 +0000 (21:13 +0800)]
libstd: add an RAII utility for sys_common::mutex::Mutex

Signed-off-by: NODA, Kai <nodakai@gmail.com>
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 agoFixed minor error in Compiler Error Index, E0603.
Eric Findlay [Sun, 17 Jun 2018 02:35:53 +0000 (11:35 +0900)]
Fixed minor error in Compiler Error Index, E0603.

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 agoFollow up on https://github.com/rust-lang/rust/pull/51508, make parse_block public...
PSeitz [Thu, 14 Jun 2018 08:18:44 +0000 (10:18 +0200)]
Follow up on https://github.com/rust-lang/rust/pull/51508, make parse_block public instead parse_block_expr

This is an follow up to #51508

I mistakenly made parse_block_expr public instead of parse_block.
This fixes this.

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 agoimpl Hash for !
Clar Charr [Wed, 6 Jun 2018 23:40:03 +0000 (19:40 -0400)]
impl Hash for !

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 agoRemoved two unused variables
Chris Cesare [Thu, 14 Jun 2018 15:39:28 +0000 (11:39 -0400)]
Removed two unused variables

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 agoMinor language change to CONTRIBUTING.md
ccesare [Thu, 14 Jun 2018 13:23:28 +0000 (09:23 -0400)]
Minor language change to CONTRIBUTING.md

In the `#building` section, the doc read that a default configuration "shall use around 3.5 GB of disk space." Changed "shall use" to "requires," as I don't think it's meant to sound so prescriptive.

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 agoTidy
Oliver Schneider [Wed, 13 Jun 2018 17:10:41 +0000 (19:10 +0200)]
Tidy

6 years agoThe param_env of an existential type is its function's param_env
Oliver Schneider [Wed, 13 Jun 2018 16:52:01 +0000 (18:52 +0200)]
The param_env of an existential type is its function's param_env

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 agoVarious cleanups
Oliver Schneider [Wed, 13 Jun 2018 07:11:23 +0000 (09:11 +0200)]
Various cleanups

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