Commit Graph

79477 Commits

Author SHA1 Message Date
bors
61ba018093 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
2018-06-16 10:59:40 +00:00
bors
a385095f9a 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
2018-06-16 08:48:46 +00:00
bors
01fb32b25f Auto merge of #51581 - GuillaumeGomez:keyword-doc, r=QuietMisdreavus
Keyword doc

Part of #51451.

r? @QuietMisdreavus
2018-06-16 06:38:16 +00:00
PSeitz
b1c0857f62 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.
2018-06-16 08:00:14 +02:00
bors
68cee8bb36 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%?
```
2018-06-16 03:06:10 +00:00
QuietMisdreavus
042f1df198 process cross-crate glob re-exports 2018-06-15 18:18:14 -05:00
bors
c6103160dd 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
2018-06-15 23:16:09 +00:00
Guillaume Gomez
1fcce48451 Add rustdoc-js tester should-fail option 2018-06-16 00:13:28 +02:00
Guillaume Gomez
e28502edca Fix search fn keyword 2018-06-15 23:23:25 +02:00
Guillaume Gomez
1dd1f95af8 Add doc for fn keyword 2018-06-15 23:23:11 +02:00
QuietMisdreavus
903e2c8afe turn expect_full_def_from_use into an iterator 2018-06-15 14:47:07 -05:00
bors
967c1f3be1 Auto merge of #50296 - cmdd:master, r=nikomatsakis
Add error message for using >= 65535 hashes for raw string literal escapes

Fixes #50111.
2018-06-15 19:05:25 +00:00
Fabian Drinck
862d25c890 Fix compile error 2018-06-15 19:07:16 +02:00
bors
24edc416ab 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 d2b5b7603b 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.
2018-06-15 16:38:08 +00:00
Guillaume Gomez
6a03884ce9 Fix issue on unix 2018-06-15 10:00:57 +02:00
Clar Charr
570590f727 impl Hash for ! 2018-06-14 23:26:38 -04:00
QuietMisdreavus
02121f36e8 add test for issue 34843 2018-06-14 17:47:35 -05:00
QuietMisdreavus
16cfa5c2ef rustdoc: discard struct ctors from imports 2018-06-14 17:47:35 -05:00
QuietMisdreavus
122b5b47c2 create multiple HIR items for a use statement 2018-06-14 17:47:28 -05:00
kennytm
770e45c9c9
Fix checkregression breakage of toolstate builder on AppVeyor. 2018-06-15 06:27:28 +08:00
Manish Goregaokar
dc943349bd Fix comment on editions 2018-06-14 11:21:48 -07:00
Fabian Drinck
8d53b89b66 Circumvent const fn problem 2018-06-14 18:44:37 +02:00
Fabian Drinck
3f2060aa7c Edit comment 2018-06-14 18:44:37 +02:00
Fabian Drinck
391ebc1339 Fix compile error 2018-06-14 18:44:37 +02:00
Fabian Drinck
a06870eb78 Fix typo DebrujinIndex -> DebruijnIndex 2018-06-14 18:44:37 +02:00
Fabian Drinck
54b2228778 Add DEBUG_FORMAT for DebruijnIndex 2018-06-14 18:44:37 +02:00
Fabian Drinck
0ad3600700 Declare DebruijnIndex via newtype_index macro 2018-06-14 18:44:36 +02:00
Chris Cesare
8f0909c979 Removed two unused variables 2018-06-14 11:39:28 -04:00
Eduard-Mihai Burtescu
5a5c7ded0d rustc: rename ty::maps to ty::query. 2018-06-14 18:05:12 +03:00
ccesare
3a76b876b8
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.
2018-06-14 09:23:28 -04:00
bors
5205ae8bdc 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.
2018-06-13 23:29:51 +00:00
Chris Cesare
28872499bc Removed various update-reference and update-all-references scripts 2018-06-13 18:15:50 -04:00
Guillaume Gomez
231c61a76b Add missing allow_missing_docs 2018-06-13 23:30:35 +02:00
Guillaume Gomez
d2a4e42959 Rename intra-doc lint 2018-06-13 23:30:34 +02:00
bors
b907d96652 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
2018-06-13 20:44:17 +00:00
Guillaume Gomez
e6c7868fb2 Update help message to escape square brackets 2018-06-13 21:18:56 +02:00
Guillaume Gomez
6d5e6b4928 Fix rustdoc test failure 2018-06-13 21:18:56 +02:00
Guillaume Gomez
2e343f384f Add help for intra-link lint 2018-06-13 21:18:55 +02:00
Guillaume Gomez
8c43c93e6d Fix options issues 2018-06-13 21:18:55 +02:00
bors
e12733bfb8 Auto merge of #51539 - dhiru30:patch-1, r=estebank
Update README.md

Corrected the grammar of the document.
2018-06-13 18:39:56 +00:00
Joshua Liebow-Feeser
2a999b4b52 Add Ref/RefMut map_split method 2018-06-13 11:35:39 -07:00
Dhirendra Kumar Kashyap
b0a55554ac
Update README.md 2018-06-13 23:20:50 +05:30
Dhirendra Kumar Kashyap
3eaa4a3fad
Update README.md
Corrected the grammar of the document.
2018-06-13 22:53:50 +05:30
Oliver Schneider
adec1f94ce Tidy 2018-06-13 19:10:41 +02:00
Oliver Schneider
ad9ede4d64 The param_env of an existential type is its function's param_env 2018-06-13 18:52:01 +02:00
bors
cd1105437c Auto merge of #51531 - Havvy:patch-1, r=kennytm
Remove stray commented one use statement

[Insert embarrassed face here]
2018-06-13 12:12:22 +00:00
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
Josef Reinhard Brandl
2177378e34 Improve core::task::TaskObj 2018-06-13 09:32:59 +02:00
Ryan Scheel
91856955c9
Remove stray commented one use statement
[Insert embarrassed face here]
2018-06-13 00:27:57 -07:00