]> git.lizzy.rs Git - rust.git/log
rust.git
7 years agoRollup merge of #35314 - yossi-k:issue/35277, r=jonathandturner
Jonathan Turner [Sun, 7 Aug 2016 16:59:40 +0000 (09:59 -0700)]
Rollup merge of #35314 - yossi-k:issue/35277, r=jonathandturner

Update E0185 and E0186 to new format

Part of #35233.
Fixes #35277.
Fixes #35276.
r? @jonathandturner

7 years agoUpdate E0185 and E0186 to new format
Yossi Konstantinovsky [Thu, 4 Aug 2016 17:56:12 +0000 (20:56 +0300)]
Update E0185 and E0186 to new format

7 years agoAuto merge of #35362 - medzin:E0252, r=GuillaumeGomez
bors [Sun, 7 Aug 2016 12:48:47 +0000 (05:48 -0700)]
Auto merge of #35362 - medzin:E0252, r=GuillaumeGomez

Updated error message E0252

Fixes #35306 as part of #35233.

r? @GuillaumeGomez

7 years agoAuto merge of #35432 - frewsxcv:20847, r=alexcrichton
bors [Sun, 7 Aug 2016 08:31:43 +0000 (01:31 -0700)]
Auto merge of #35432 - frewsxcv:20847, r=alexcrichton

Add regression test for #20847.

https://github.com/rust-lang/rust/issues/20847

7 years agoAuto merge of #35378 - Amanieu:rwlock_eagain, r=alexcrichton
bors [Sun, 7 Aug 2016 02:50:48 +0000 (19:50 -0700)]
Auto merge of #35378 - Amanieu:rwlock_eagain, r=alexcrichton

Handle RwLock reader count overflow

`pthread_rwlock_rdlock` may return `EAGAIN` if the maximum reader count overflows. We shouldn't return a successful lock in that case.

7 years agoAdd regression test for #20847.
Corey Farwell [Sat, 6 Aug 2016 20:01:12 +0000 (16:01 -0400)]
Add regression test for #20847.

7 years agoAuto merge of #35393 - GuillaumeGomez:err_codes2, r=jonathandturner
bors [Sat, 6 Aug 2016 19:29:28 +0000 (12:29 -0700)]
Auto merge of #35393 - GuillaumeGomez:err_codes2, r=jonathandturner

Err codes

r? @jonathandturner

7 years agoAdd new error code tests
Guillaume Gomez [Fri, 5 Aug 2016 20:18:01 +0000 (22:18 +0200)]
Add new error code tests

7 years agoAuto merge of #35407 - eddyb:rollup, r=eddyb
bors [Sat, 6 Aug 2016 12:02:16 +0000 (05:02 -0700)]
Auto merge of #35407 - eddyb:rollup, r=eddyb

Rollup of 21 pull requests

- Successful merges: #33951, #34916, #35287, #35288, #35351, #35353, #35356, #35362, #35363, #35364, #35366, #35368, #35370, #35372, #35373, #35374, #35375, #35376, #35380, #35393, #35394
- Failed merges: #35331, #35395

7 years agoRollup merge of #35380 - TheZoq2:master, r=jonathandturner
Eduard-Mihai Burtescu [Sat, 6 Aug 2016 12:01:23 +0000 (15:01 +0300)]
Rollup merge of #35380 - TheZoq2:master, r=jonathandturner

Update E0004 to use labels

Fixes #35191 and is part of #35233

"r? @jonathandturner

7 years agoRollup merge of #35376 - trixnz:update-error-373, r=jonathandturner
Eduard-Mihai Burtescu [Sat, 6 Aug 2016 12:01:23 +0000 (15:01 +0300)]
Rollup merge of #35376 - trixnz:update-error-373, r=jonathandturner

Update error format for E0373

Fixes #35337 as part of #35233

r? @jonathandturner

7 years agoRollup merge of #35374 - mrabault:e0229_format, r=jonathandturner
Eduard-Mihai Burtescu [Sat, 6 Aug 2016 12:01:22 +0000 (15:01 +0300)]
Rollup merge of #35374 - mrabault:e0229_format, r=jonathandturner

Update E0229 to new format

Hello,

This fixes #35305. I ran the tests, no unit test broke, even though some were ignored.

Cheers

r? @jonathandturner

7 years agoRollup merge of #35373 - oijazsh:E0107, r=jonathandturner
Eduard-Mihai Burtescu [Sat, 6 Aug 2016 12:01:22 +0000 (15:01 +0300)]
Rollup merge of #35373 - oijazsh:E0107, r=jonathandturner

Update E0107 message to new format

Fixes #35246 as part of #35233.

r? @jonathandturner

7 years agoRollup merge of #35372 - Keats:err-323, r=jonathandturner
Eduard-Mihai Burtescu [Sat, 6 Aug 2016 12:01:22 +0000 (15:01 +0300)]
Rollup merge of #35372 - Keats:err-323, r=jonathandturner

Update error message for E0323, E0324 and E0325

 Fixes #35325, #35327 and #35329 as part of #35233

r? @jonathandturner

7 years agoRollup merge of #35370 - razielgn:updated-e0306-to-new-format, r=jonathandturner
Eduard-Mihai Burtescu [Sat, 6 Aug 2016 12:01:22 +0000 (15:01 +0300)]
Rollup merge of #35370 - razielgn:updated-e0306-to-new-format, r=jonathandturner

Updated E0306 to new format.

Part of #35233.
Fixes #35315.

r? @jonathandturner

7 years agoRollup merge of #35368 - shantanuraj:master, r=jonathandturner
Eduard-Mihai Burtescu [Sat, 6 Aug 2016 12:01:22 +0000 (15:01 +0300)]
Rollup merge of #35368 - shantanuraj:master, r=jonathandturner

Update E0207 to use struct_span_err, add span_label

Fixes #35302 part of #35233

r? @jonathandturner

7 years agoRollup merge of #35364 - kc1212:e0379, r=jonathandturner
Eduard-Mihai Burtescu [Sat, 6 Aug 2016 12:01:21 +0000 (15:01 +0300)]
Rollup merge of #35364 - kc1212:e0379, r=jonathandturner

Update E0379 to new format #35338

Fixes #35338, as part of #35233.

But this does not include the bonus. From my understanding a Span is defined by a `hi` and a `lo` position within some context. A naive way would be to mutate the span so that `hi` is 5 positions from `lo` which corresponds to the `const` keyword. But this methods feels a bit rigid. Is there another way to do this?

r? @jonathandturner

7 years agoRollup merge of #35363 - GuillaumeGomez:err_codes, r=jonathandturner
Eduard-Mihai Burtescu [Sat, 6 Aug 2016 12:01:21 +0000 (15:01 +0300)]
Rollup merge of #35363 - GuillaumeGomez:err_codes, r=jonathandturner

Err codes

r? @jonathandturner

7 years agoRollup merge of #35356 - Tiwalun:fix-err-msg-e0106, r=jonathandturner
Eduard-Mihai Burtescu [Sat, 6 Aug 2016 12:01:21 +0000 (15:01 +0300)]
Rollup merge of #35356 - Tiwalun:fix-err-msg-e0106, r=jonathandturner

Update E0106 error message to new format.

This fixes #35245, as part of the big error message update in #35233

r? @jonathandturner

7 years agoRollup merge of #35353 - poveda-ruiz:master, r=jonathandturner
Eduard-Mihai Burtescu [Sat, 6 Aug 2016 12:01:21 +0000 (15:01 +0300)]
Rollup merge of #35353 - poveda-ruiz:master, r=jonathandturner

Updated E0081 to new format

Part of #35233. r? @jonathandturner

7 years agoRollup merge of #35351 - jaredwy:update-error-69, r=jonathandturner
Eduard-Mihai Burtescu [Sat, 6 Aug 2016 12:01:21 +0000 (15:01 +0300)]
Rollup merge of #35351 - jaredwy:update-error-69, r=jonathandturner

Updated error format for E0069

Fixes #35219 which is part of the error bonanza at #35233

r? @jonathandturner

7 years agoRollup merge of #35288 - Roybie:35271-E0166-update-error-format, r=GuillaumeGomez
Eduard-Mihai Burtescu [Sat, 6 Aug 2016 12:01:20 +0000 (15:01 +0300)]
Rollup merge of #35288 - Roybie:35271-E0166-update-error-format, r=GuillaumeGomez

Update error message for E0166

Fixes #35271 as part of #35233.

r? @jonathandturner

7 years agoRollup merge of #35287 - dns2utf8:man_page_rustc, r=nikomatsakis
Eduard-Mihai Burtescu [Sat, 6 Aug 2016 12:01:20 +0000 (15:01 +0300)]
Rollup merge of #35287 - dns2utf8:man_page_rustc, r=nikomatsakis

Update the man page rustc.1

Should the page become a generated one so the version is allways up to date?

7 years agoRollup merge of #35281 - apasel422:repr, r=GuillaumeGomez
Eduard-Mihai Burtescu [Sat, 6 Aug 2016 12:01:20 +0000 (15:01 +0300)]
Rollup merge of #35281 - apasel422:repr, r=GuillaumeGomez

Clean up `std::raw` docs

There is no longer a `Repr` trait, so mentioning a missing impl of it was potentially confusing.

r? @steveklabnik

7 years agoRollup merge of #34916 - tbu-:pr_comment_on_seek_cast, r=GuillaumeGomez
Eduard-Mihai Burtescu [Sat, 6 Aug 2016 12:01:20 +0000 (15:01 +0300)]
Rollup merge of #34916 - tbu-:pr_comment_on_seek_cast, r=GuillaumeGomez

Comment on the casts in the `seek` implementations on files

7 years agoRollup merge of #33951 - srinivasreddy:librust_pass_rustfmt, r=nikomatsakis
Eduard-Mihai Burtescu [Sat, 6 Aug 2016 12:01:20 +0000 (15:01 +0300)]
Rollup merge of #33951 - srinivasreddy:librust_pass_rustfmt, r=nikomatsakis

run rustfmt on librustc_passes folder

7 years agoUpdated error message E0252
Adam Medziński [Fri, 5 Aug 2016 11:06:09 +0000 (13:06 +0200)]
Updated error message E0252

7 years agoAuto merge of #35267 - eddyb:ty-hash, r=nikomatsakis
bors [Sat, 6 Aug 2016 06:28:29 +0000 (23:28 -0700)]
Auto merge of #35267 - eddyb:ty-hash, r=nikomatsakis

Rewrite TypeId computation to not miss anything and work cross-crate.

Fixes #33703 and also some soundness holes in `Any` due to `TypeId` ignoring most lifetimes.

7 years agoUpdated error format for E0069
Jared Wyles [Fri, 5 Aug 2016 03:48:24 +0000 (13:48 +1000)]
Updated error format for E0069

7 years agoClean up `std::raw` docs
Andrew Paseltiner [Thu, 4 Aug 2016 00:22:43 +0000 (20:22 -0400)]
Clean up `std::raw` docs

There is no longer a `Repr` trait, so mentioning a missing impl of it
was potentially confusing.

7 years agoRewrite TypeId computation to not miss anything and work cross-crate.
Eduard Burtescu [Fri, 5 Aug 2016 21:50:13 +0000 (00:50 +0300)]
Rewrite TypeId computation to not miss anything and work cross-crate.

7 years agoAuto merge of #35116 - jseyfried:groundwork_for_new_import_semantics, r=nrc
bors [Fri, 5 Aug 2016 21:42:42 +0000 (14:42 -0700)]
Auto merge of #35116 - jseyfried:groundwork_for_new_import_semantics, r=nrc

resolve: diagnostics improvement and groundwork for RFC 1560

Fixes #35115, fixes #35135, and lays groundwork for #32213 (cc #35120).
r? @nrc

7 years agoAdd error code check in librustc_const_eval/diagnostics.rs
Guillaume Gomez [Fri, 5 Aug 2016 20:17:41 +0000 (22:17 +0200)]
Add error code check in librustc_const_eval/diagnostics.rs

7 years agoUpdate `cargo_test` hash.
Jeffrey Seyfried [Wed, 3 Aug 2016 23:12:48 +0000 (23:12 +0000)]
Update `cargo_test` hash.

7 years agoUpdate error message for E0323, E0324 and E0325
Vincent Prouillet [Fri, 5 Aug 2016 15:27:40 +0000 (16:27 +0100)]
Update error message for E0323, E0324 and E0325

7 years agoUpdate E0004 to use labels
TheZoq2 [Fri, 5 Aug 2016 19:00:23 +0000 (21:00 +0200)]
Update E0004 to use labels

7 years agoUpdate unit tests to accord for label in E0207
Shantanu Raj [Fri, 5 Aug 2016 18:34:27 +0000 (00:04 +0530)]
Update unit tests to accord for label in E0207

7 years agoHandle RwLock reader count overflow
Amanieu d'Antras [Fri, 5 Aug 2016 18:26:23 +0000 (19:26 +0100)]
Handle RwLock reader count overflow

7 years agoComment on the casts in the `seek` implementations on files
Tobias Bucher [Mon, 18 Jul 2016 12:31:26 +0000 (14:31 +0200)]
Comment on the casts in the `seek` implementations on files

7 years agoFix E0229 unit tests
Matthias Rabault [Fri, 5 Aug 2016 18:11:26 +0000 (20:11 +0200)]
Fix E0229 unit tests

7 years agoAdd E0107 tests for multiple lifetime params
Omer Sheikh [Fri, 5 Aug 2016 17:56:10 +0000 (22:56 +0500)]
Add E0107 tests for multiple lifetime params

7 years agoUpdate error format for E0373
trixnz [Fri, 5 Aug 2016 17:53:14 +0000 (19:53 +0200)]
Update error format for E0373

7 years agoUpdated style of unit test
Christian Poveda [Fri, 5 Aug 2016 17:05:29 +0000 (12:05 -0500)]
Updated style of unit test

7 years agoUpdate E0107 message to new format
Omer Sheikh [Fri, 5 Aug 2016 15:54:04 +0000 (20:54 +0500)]
Update E0107 message to new format

7 years agoUpdate E0229 to new format
Matthias Rabault [Fri, 5 Aug 2016 15:43:44 +0000 (17:43 +0200)]
Update E0229 to new format

7 years agoUpdated E0306 to new format.
Federico Ravasio [Fri, 5 Aug 2016 14:54:05 +0000 (16:54 +0200)]
Updated E0306 to new format.

7 years agoAuto merge of #35365 - GuillaumeGomez:rollup, r=GuillaumeGomez
bors [Fri, 5 Aug 2016 14:37:16 +0000 (07:37 -0700)]
Auto merge of #35365 - GuillaumeGomez:rollup, r=GuillaumeGomez

Rollup of 30 pull requests

- Successful merges: #34319, #35041, #35042, #35076, #35109, #35137, #35175, #35181, #35182, #35189, #35239, #35264, #35266, #35281, #35285, #35289, #35291, #35294, #35296, #35297, #35298, #35299, #35318, #35319, #35324, #35326, #35328, #35333, #35359, #35362
- Failed merges:

7 years agoRollup merge of #35359 - Archytaus:master, r=GuillaumeGomez
Guillaume Gomez [Fri, 5 Aug 2016 14:13:00 +0000 (16:13 +0200)]
Rollup merge of #35359 - Archytaus:master, r=GuillaumeGomez

Updated E0391 and E0404 to new error format

Fixes #35341 and #35342 as part of #35233.

r? @GuillaumeGomez

7 years agoRollup merge of #35350 - birryree:E0368_update, r=jonathandturner
Guillaume Gomez [Fri, 5 Aug 2016 14:13:00 +0000 (16:13 +0200)]
Rollup merge of #35350 - birryree:E0368_update, r=jonathandturner

Fix for issue #35336 - updating error message for for E0368 to includ…

…e a span_label.

This fixes #35336 as part of #35233

r? @jonathandturner

7 years agoRollup merge of #35333 - nickmass:e0055-formatting, r=jonathandturner
Guillaume Gomez [Fri, 5 Aug 2016 14:13:00 +0000 (16:13 +0200)]
Rollup merge of #35333 - nickmass:e0055-formatting, r=jonathandturner

Update compiler error E0055 to use new error format

Addresses #35213, Part of the #35233 meta bug

r? @jonathandturner

7 years agoRollup merge of #35328 - trixnz:update-error-62, r=jonathandturner
Guillaume Gomez [Fri, 5 Aug 2016 14:12:59 +0000 (16:12 +0200)]
Rollup merge of #35328 - trixnz:update-error-62, r=jonathandturner

Update error format for E0062

Fixes #35217 as part of #35233

There seems to be an issue with the old format ignoring the labels which results in the incorrect line being rendered in the old format. I spoke with @jonathandturner about this and it seems to be a bug. Pertinent information [here](https://gist.github.com/trixnz/ad11e68687529e164427df8f8eb63116).

r? @jonathandturner

7 years agoRollup merge of #35326 - circuitfox:E0119-update-error-format, r=jonathandturner
Guillaume Gomez [Fri, 5 Aug 2016 14:12:59 +0000 (16:12 +0200)]
Rollup merge of #35326 - circuitfox:E0119-update-error-format, r=jonathandturner

E0119 update error format

Part of #35233, fixes #35252

r? @jonathandturner

7 years agoRollup merge of #35324 - ubsan:precedence, r=steveklabnik
Guillaume Gomez [Fri, 5 Aug 2016 14:12:59 +0000 (16:12 +0200)]
Rollup merge of #35324 - ubsan:precedence, r=steveklabnik

Fix precedence table in reference

Adds `..` and `...` and puts them above `=`

r? @steveklabnik

7 years agoRollup merge of #35319 - Keats:err-137, r=jonathandturner
Guillaume Gomez [Fri, 5 Aug 2016 14:12:59 +0000 (16:12 +0200)]
Rollup merge of #35319 - Keats:err-137, r=jonathandturner

Update error format for E0137

Fixes #35265 as part of #35233.

r? @jonathandturner

7 years agoRollup merge of #35318 - sciyoshi:update-e0124, r=jonathandturner
Guillaume Gomez [Fri, 5 Aug 2016 14:12:58 +0000 (16:12 +0200)]
Rollup merge of #35318 - sciyoshi:update-e0124, r=jonathandturner

Update E0124 to the new error format

Part of #35233. This resolves #35255.

r? @jonathandturner

7 years agoRollup merge of #35299 - circuitfox:E0110-update-error-format, r=jonathandturner
Guillaume Gomez [Fri, 5 Aug 2016 14:12:58 +0000 (16:12 +0200)]
Rollup merge of #35299 - circuitfox:E0110-update-error-format, r=jonathandturner

E0110 update error format

Fixes #35248

Part of #35233

r? @jonathandturner

7 years agoRollup merge of #35298 - Keats:err-120, r=jonathandturner
Guillaume Gomez [Fri, 5 Aug 2016 14:12:57 +0000 (16:12 +0200)]
Rollup merge of #35298 - Keats:err-120, r=jonathandturner

Update error message E0120

Fixes #35253 as part of #35233.

r? @jonathandturner

7 years agoRollup merge of #35297 - saml:e0001-label, r=jonathandturner
Guillaume Gomez [Fri, 5 Aug 2016 14:12:57 +0000 (16:12 +0200)]
Rollup merge of #35297 - saml:e0001-label, r=jonathandturner

Set label for unreachable pattern

Part of #35233
Fixes #35190

r? @jonathandturner

7 years agoRollup merge of #35296 - medzin:master, r=jonathandturner
Guillaume Gomez [Fri, 5 Aug 2016 14:12:57 +0000 (16:12 +0200)]
Rollup merge of #35296 - medzin:master, r=jonathandturner

Update error message E0178

Fixes #35273 as part of #35233.

7 years agoRollup merge of #35294 - Roybie:35272-E0172-update-error-format, r=jonathandturner
Guillaume Gomez [Fri, 5 Aug 2016 14:12:57 +0000 (16:12 +0200)]
Rollup merge of #35294 - Roybie:35272-E0172-update-error-format, r=jonathandturner

Update error message for E0172

Fixes #35272 as part of #35233.

r? @jonathandturner

7 years agoRollup merge of #35291 - yossi-k:master, r=jonathandturner
Guillaume Gomez [Fri, 5 Aug 2016 14:12:56 +0000 (16:12 +0200)]
Rollup merge of #35291 - yossi-k:master, r=jonathandturner

Update E0079 to new format

Fixes #35222. Part of #35233.
r? @GuillaumeGomez

7 years agoRollup merge of #35289 - birryree:E0060_E0061_format_update, r=jonathandturner
Guillaume Gomez [Fri, 5 Aug 2016 14:12:56 +0000 (16:12 +0200)]
Rollup merge of #35289 - birryree:E0060_E0061_format_update, r=jonathandturner

E0060 e0061 format update

This fixes #35215 and fixes #35216 as part of #35233

A separate issue will be opened to track the bonus portion of the tickets as @jaredwy will be handling that part.

?r @jonathandturner

7 years agoRollup merge of #35285 - razielgn:updated-e0071-to-new-format, r=jonathandturner
Guillaume Gomez [Fri, 5 Aug 2016 14:12:56 +0000 (16:12 +0200)]
Rollup merge of #35285 - razielgn:updated-e0071-to-new-format, r=jonathandturner

Updated E0071 to new format.

Bonus: the span underlines only the name of the thing that's not a struct rather than the whole expression.

Part of #35233.
Fixes #35220.

r? @jonathandturner

7 years agoRollup merge of #35266 - circuitfox:35247-E0109-update-error-format, r=jonathandturner
Guillaume Gomez [Fri, 5 Aug 2016 14:12:56 +0000 (16:12 +0200)]
Rollup merge of #35266 - circuitfox:35247-E0109-update-error-format, r=jonathandturner

E0109 Update error format

Fixes #35247 as part of #35233.

r? @jonathandturner

7 years agoRollup merge of #35264 - GuillaumeGomez:E0132_update, r=jonathandturner
Guillaume Gomez [Fri, 5 Aug 2016 14:12:55 +0000 (16:12 +0200)]
Rollup merge of #35264 - GuillaumeGomez:E0132_update, r=jonathandturner

E0132 update

Fixes #35258.

r? @jonathandturner

7 years agoRollup merge of #35239 - dns2utf8:doc_park_timeout, r=steveklabnik
Guillaume Gomez [Fri, 5 Aug 2016 14:12:55 +0000 (16:12 +0200)]
Rollup merge of #35239 - dns2utf8:doc_park_timeout, r=steveklabnik

Doc `std::thread::park_timeout`

r? @steveklabnik

7 years agoRollup merge of #35189 - mLuby:patch-1, r=steveklabnik
Guillaume Gomez [Fri, 5 Aug 2016 14:12:55 +0000 (16:12 +0200)]
Rollup merge of #35189 - mLuby:patch-1, r=steveklabnik

Update the-stack-and-the-heap.md

Was surprised to learn that heaps were used in this way, then realized upon reading [the linked paper](http://www.cs.cmu.edu/afs/cs/academic/class/15213-f98/doc/dsa.pdf) that it's a totally different type of heap—an important distinction.

7 years agoRollup merge of #35182 - frewsxcv:nulerror, r=steveklabnik
Guillaume Gomez [Fri, 5 Aug 2016 14:12:55 +0000 (16:12 +0200)]
Rollup merge of #35182 - frewsxcv:nulerror, r=steveklabnik

Add doc example for `std::ffi::NulError::nul_position`.

None

7 years agoRollup merge of #35181 - GuillaumeGomez:vec_doc, r=steveklabnik
Guillaume Gomez [Fri, 5 Aug 2016 14:12:54 +0000 (16:12 +0200)]
Rollup merge of #35181 - GuillaumeGomez:vec_doc, r=steveklabnik

Add doc example for Vec

Fixes #29380.

r? @steveklabnik

7 years agoRollup merge of #35175 - frewsxcv:tcp, r=GuillaumeGomez
Guillaume Gomez [Fri, 5 Aug 2016 14:12:54 +0000 (16:12 +0200)]
Rollup merge of #35175 - frewsxcv:tcp, r=GuillaumeGomez

A couple `std::net` doc improvements.

None

7 years agoRollup merge of #35137 - jongiddy:explicit-wildcard, r=steveklabnik
Guillaume Gomez [Fri, 5 Aug 2016 14:12:54 +0000 (16:12 +0200)]
Rollup merge of #35137 - jongiddy:explicit-wildcard, r=steveklabnik

Provide more explicit example of wildcard version in guessing game doc.

Beginners may try to adapt the tutorial to develop their own code.
When using different dependencies, they may use the wildcard for
versioning.  Since they are new to the language, they will not know
that the wildcard asterisk is a string, not a token.  Make the correct
format more explicit, to remove one potential source of frustration.

7 years agoRollup merge of #35109 - GuillaumeGomez:io_docs, r=steveklabnik
Guillaume Gomez [Fri, 5 Aug 2016 14:12:54 +0000 (16:12 +0200)]
Rollup merge of #35109 - GuillaumeGomez:io_docs, r=steveklabnik

Add io::Error doc examples

Fixes #29359.

r? @steveklabnik

7 years agoRollup merge of #35076 - GuillaumeGomez:file_type_docs, r=steveklabnik
Guillaume Gomez [Fri, 5 Aug 2016 14:12:53 +0000 (16:12 +0200)]
Rollup merge of #35076 - GuillaumeGomez:file_type_docs, r=steveklabnik

Add doc examples for FileType struct

Part of #29356.

r? @steveklabnik

7 years agoRollup merge of #35042 - Havvy:copy_error_doc, r=GuillaumeGomez
Guillaume Gomez [Fri, 5 Aug 2016 14:12:53 +0000 (16:12 +0200)]
Rollup merge of #35042 - Havvy:copy_error_doc, r=GuillaumeGomez

Add Derive not possible question to Copy

This adds a question and answer to the Q&A section of the Copy
docs. Specifically, it asks the question I asked while reading
the docs, and gives its answer.

cc @steveklabnik

7 years agoRollup merge of #35041 - frewsxcv:range-rangeargument, r=GuillaumeGomez
Guillaume Gomez [Fri, 5 Aug 2016 14:12:53 +0000 (16:12 +0200)]
Rollup merge of #35041 - frewsxcv:range-rangeargument, r=GuillaumeGomez

Add doc examples for `range::RangeArgument::{start,end}`.

None

7 years agoRollup merge of #34319 - zackmdavis:explain_slice_pattern_errors, r=GuillaumeGomez
Guillaume Gomez [Fri, 5 Aug 2016 14:12:53 +0000 (16:12 +0200)]
Rollup merge of #34319 - zackmdavis:explain_slice_pattern_errors, r=GuillaumeGomez

extended information for slice pattern errors (E0527 through E0529)

r? @GuillaumeGomez

7 years agoUpdate error message for E0166
Roy Brunton [Fri, 5 Aug 2016 14:06:36 +0000 (15:06 +0100)]
Update error message for E0166

7 years agoUpdate E0207 to use struct_span_err, add span_label
Shantanu Raj [Fri, 5 Aug 2016 11:44:47 +0000 (17:14 +0530)]
Update E0207 to use struct_span_err, add span_label

7 years agoAuto merge of #35317 - TimNN:internal-deprecated, r=eddyb
bors [Fri, 5 Aug 2016 11:38:41 +0000 (04:38 -0700)]
Auto merge of #35317 - TimNN:internal-deprecated, r=eddyb

Ignore deprecation for items deprecated by the same attribute

Whenever a node would be reported as deprecated:

- check if the parent item is also deprecated
- if it is and both were deprecated by the same attribute
- skip the deprecation warning

fixes #35128
closes #16490

r? @eddyb

7 years agoAdd new error code tests
Guillaume Gomez [Fri, 5 Aug 2016 11:17:39 +0000 (13:17 +0200)]
Add new error code tests

7 years agoUpdate E0379 to new format #35338
kc1212 [Fri, 5 Aug 2016 10:52:57 +0000 (22:52 +1200)]
Update E0379 to new format #35338

7 years agoUpdate E0404 to new format.
Ryan Scott [Fri, 5 Aug 2016 07:59:44 +0000 (16:59 +0900)]
Update E0404 to new format.

7 years agoUpdate E0391 to new format.
Ryan Scott [Fri, 5 Aug 2016 07:54:37 +0000 (16:54 +0900)]
Update E0391 to new format.

7 years agoAuto merge of #35283 - shantanuraj:master, r=jonathandturner
bors [Fri, 5 Aug 2016 07:17:18 +0000 (00:17 -0700)]
Auto merge of #35283 - shantanuraj:master, r=jonathandturner

Update wording on E0080

Part of #35223

Update wording on error E0080. Change "attempted" to "attempt"

r? @GuillaumeGomez

7 years agoUpdate E0106 error message to new format.
Dominik Boehi [Fri, 5 Aug 2016 04:30:41 +0000 (06:30 +0200)]
Update E0106 error message to new format.

This fixes rust/rust-lang#35245

7 years agoUpdated E0081 to new format
Christian Poveda [Fri, 5 Aug 2016 04:22:46 +0000 (23:22 -0500)]
Updated E0081 to new format

7 years agoFix for issue #35336 - updating error message for for E0368 to include a span_label
William Lee [Fri, 5 Aug 2016 03:43:56 +0000 (23:43 -0400)]
Fix for issue #35336 - updating error message for for E0368 to include a span_label

7 years agoAuto merge of #35274 - GuillaumeGomez:err_codes, r=jonathandturner
bors [Fri, 5 Aug 2016 00:52:24 +0000 (17:52 -0700)]
Auto merge of #35274 - GuillaumeGomez:err_codes, r=jonathandturner

Add new error code tests

r? @jonathandturner

7 years agoAdd E0254 error explanation
Guillaume Gomez [Thu, 4 Aug 2016 22:23:42 +0000 (00:23 +0200)]
Add E0254 error explanation

7 years agoUpdate error message E0120
Vincent Prouillet [Thu, 4 Aug 2016 15:10:18 +0000 (16:10 +0100)]
Update error message E0120

7 years agoUpdate compiler error E0055 to use new error format
Nick Massey [Thu, 4 Aug 2016 21:35:43 +0000 (15:35 -0600)]
Update compiler error E0055 to use new error format

7 years agoadd test for nested deprecated
Tim Neumann [Thu, 4 Aug 2016 16:54:04 +0000 (18:54 +0200)]
add test for nested deprecated

7 years agofix existing tests
Tim Neumann [Thu, 4 Aug 2016 14:56:20 +0000 (16:56 +0200)]
fix existing tests

7 years agoignore deprecation for items deprecated by the same attribute
Tim Neumann [Thu, 4 Aug 2016 18:13:40 +0000 (20:13 +0200)]
ignore deprecation for items deprecated by the same attribute

Whenever a node whould be reported as deprecated:

- check if the parent item is also deprecated

- if it is and both were deprecated by the same attribute

- skip the deprecation warning

fixes #35128
closes #16490

7 years agoE0119 update error format
Chris Stankus [Thu, 4 Aug 2016 20:30:21 +0000 (15:30 -0500)]
E0119 update error format

7 years agoUpdate error format for E0062
trixnz [Thu, 4 Aug 2016 20:52:16 +0000 (22:52 +0200)]
Update error format for E0062

7 years agoFix precedence table in reference
ubsan [Thu, 4 Aug 2016 20:28:24 +0000 (13:28 -0700)]
Fix precedence table in reference

7 years agochange depr_map to use DeprecationEntry
Tim Neumann [Thu, 4 Aug 2016 13:18:36 +0000 (15:18 +0200)]
change depr_map to use DeprecationEntry

7 years agotrack current_item in Deprecated lint pass
Tim Neumann [Thu, 4 Aug 2016 13:06:26 +0000 (15:06 +0200)]
track current_item in Deprecated lint pass

7 years agoUpdate error format for E0137
Vincent Prouillet [Thu, 4 Aug 2016 19:27:11 +0000 (20:27 +0100)]
Update error format for E0137