]>
git.lizzy.rs Git - rust.git/log
Scott A Carr [Tue, 9 Aug 2016 15:17:50 +0000 (08:17 -0700)]
make tidy
Jonathan Turner [Tue, 9 Aug 2016 14:53:52 +0000 (07:53 -0700)]
Update E0087.rs
Niko Matsakis [Tue, 9 Aug 2016 14:25:31 +0000 (10:25 -0400)]
pacify the mercilous tidy
hank-der-hafenarbeiter [Tue, 9 Aug 2016 12:40:07 +0000 (14:40 +0200)]
added unit test
bors [Tue, 9 Aug 2016 12:26:50 +0000 (05:26 -0700)]
Auto merge of #35426 - frewsxcv:os-sys-env-args-phantoms, r=alexcrichton
Utilize `PhantomData` to enforce `!Sync` and `!Send` field.
None
Niko Matsakis [Tue, 9 Aug 2016 12:24:26 +0000 (08:24 -0400)]
address comments from mw
Niko Matsakis [Sat, 6 Aug 2016 00:14:47 +0000 (20:14 -0400)]
use preds to serialize just what we need
This massively speeds up serialization. It also
seems to produce deterministic metadata hashes
(before I was seeing inconsistent results).
Fixes #35232.
Niko Matsakis [Sat, 6 Aug 2016 00:12:53 +0000 (20:12 -0400)]
generalize BitMatrix to be NxM and not just NxN
Niko Matsakis [Sat, 6 Aug 2016 00:12:20 +0000 (20:12 -0400)]
add a `deterministic_hash` method to `DefPath`
Produces a deterministic hash, at least for a single platform /
compiler-version.
Niko Matsakis [Sat, 6 Aug 2016 00:12:02 +0000 (20:12 -0400)]
add a `-Z incremental-info` flag
Niko Matsakis [Sat, 6 Aug 2016 00:10:04 +0000 (20:10 -0400)]
replace Name with InternedString in DefPathData
Fixes #35292.
Niko Matsakis [Sat, 6 Aug 2016 00:00:20 +0000 (20:00 -0400)]
make DepNode PartialOrd
Niko Matsakis [Fri, 5 Aug 2016 23:42:41 +0000 (19:42 -0400)]
isolate predecessor computation
The new `Predecessors` type computes a set of interesting targets and
their HIR predecessors, and discards everything in between.
hank-der-hafenarbeiter [Tue, 9 Aug 2016 12:02:25 +0000 (14:02 +0200)]
updated unit test
bors [Tue, 9 Aug 2016 09:11:50 +0000 (02:11 -0700)]
Auto merge of #35425 - apasel422:refcell, r=alexcrichton
Implement `RefCell::{try_borrow, try_borrow_mut}`
CC #35070
r? @alexcrichton
bors [Tue, 9 Aug 2016 04:51:01 +0000 (21:51 -0700)]
Auto merge of #34762 - creativcoder:slice-ext, r=alexcrichton
extend lifetime on binary_search_by_key of SliceExt trait
Fixes #34683.
Andrew Paseltiner [Sat, 6 Aug 2016 17:48:59 +0000 (13:48 -0400)]
Implement `RefCell::{try_borrow, try_borrow_mut}`
Niko Matsakis [Tue, 9 Aug 2016 01:35:07 +0000 (21:35 -0400)]
fixup tests for new def'n of InlinedItem
it now carries a def-id; supply a dummy
hank-der-hafenarbeiter [Mon, 8 Aug 2016 23:39:23 +0000 (01:39 +0200)]
Updated error for E0045 (no bonus)
Niko Matsakis [Mon, 8 Aug 2016 22:42:06 +0000 (18:42 -0400)]
track MIR through the dep-graph
Per the discussion on #34765, we make one `DepNode::Mir` variant and use
it to represent both the MIR tracking map as well as passes that operate
on MIR. We also track loads of cached MIR (which naturally comes from
metadata).
Note that the "HAIR" pass adds a read of TypeckItemBody because it uses
a myriad of tables that are not individually tracked.
Niko Matsakis [Mon, 8 Aug 2016 22:41:58 +0000 (18:41 -0400)]
rename KrateInfo to CrateInfo
hank-der-hafenarbeiter [Mon, 8 Aug 2016 22:26:43 +0000 (00:26 +0200)]
Updated E0433 to new error message. (no bonus)
Keith Yeung [Mon, 8 Aug 2016 22:07:14 +0000 (15:07 -0700)]
Do not span across nodes for E0004
bors [Mon, 8 Aug 2016 21:59:30 +0000 (14:59 -0700)]
Auto merge of #35064 - pthariensflame:feature/cow_str_from_iter, r=alexcrichton
Add `FromIterator` implementations for `Cow<str>`
This seems like an oversight, since the corresponding implementation for `Cow<[T]> where T: Clone` exists.
srdja [Mon, 8 Aug 2016 21:36:50 +0000 (23:36 +0200)]
Update E0008 to new format
Stephen Lazaro [Mon, 8 Aug 2016 21:10:59 +0000 (14:10 -0700)]
Update unit test for E0092
Stephen Lazaro [Mon, 8 Aug 2016 21:10:09 +0000 (14:10 -0700)]
Update error messages for E0091 and E0092
Scott A Carr [Mon, 8 Aug 2016 20:35:10 +0000 (13:35 -0700)]
refactor other type methods
Jonathan Turner [Mon, 8 Aug 2016 20:25:59 +0000 (13:25 -0700)]
Rollup merge of #35524 - garekkream:update-E0162-new-error-format, r=jonathandturner
Update E0162 to the new format
Part of #35233.
Fixes #35268.
r? @jonathandturner
Jonathan Turner [Mon, 8 Aug 2016 20:25:59 +0000 (13:25 -0700)]
Rollup merge of #35507 - hank-der-hafenarbeiter:master, r=jonathandturner
Updated Error mesage to new format for E0221
Part of #35386
r? @jonathandturner
Jonathan Turner [Mon, 8 Aug 2016 20:25:59 +0000 (13:25 -0700)]
Rollup merge of #35504 - razielgn:updated-e0026-to-new-format, r=jonathandturner
Updated E0026 to new format.
Part of #35233.
Fixes #35497.
r? @jonathandturner
Jonathan Turner [Mon, 8 Aug 2016 20:25:59 +0000 (13:25 -0700)]
Rollup merge of #35484 - KiChjang:e0205-bonus, r=GuillaumeGomez
Shrink E0205 span label to the trait being implemented
Part of #35233.
Extension of #35468.
Closes #35382.
r? @GuillaumeGomez
Jonathan Turner [Mon, 8 Aug 2016 20:25:58 +0000 (13:25 -0700)]
Rollup merge of #35477 - GuillaumeGomez:fix_E0132, r=jonathandturner
Fix E0132 error display
Error and note now use the same span.
r? @jonathandturner
Jonathan Turner [Mon, 8 Aug 2016 20:25:58 +0000 (13:25 -0700)]
Rollup merge of #35475 - shyaamsundhar:patch-1, r=jonathandturner
E0248 New Format
Jonathan Turner [Mon, 8 Aug 2016 20:25:58 +0000 (13:25 -0700)]
Rollup merge of #35470 - munyari:e0214, r=jonathandturner
Update E0214 to the new error format
Part of #35233
Addresses #35383
"r? @jonathandturner
Jonathan Turner [Mon, 8 Aug 2016 20:25:57 +0000 (13:25 -0700)]
Rollup merge of #35466 - xitep:master, r=steveklabnik
book: fix formatting of module layout example
Jonathan Turner [Mon, 8 Aug 2016 20:25:57 +0000 (13:25 -0700)]
Rollup merge of #35465 - cardoe:pattern-book-update, r=steveklabnik
book: update example patterns to be more clear
When using Point { x: 0, y: 0 } and showing pattern matching decomposing
x and y individually its hard to understand. By using a different value
for x and a different value for y it is more clear.
Jonathan Turner [Mon, 8 Aug 2016 20:25:57 +0000 (13:25 -0700)]
Rollup merge of #35458 - GuillaumeGomez:test_string_ICE, r=alexcrichton
Add run-pass test for issue 33498
Fixes #33498.
r? @alexcrichton
Jonathan Turner [Mon, 8 Aug 2016 20:25:57 +0000 (13:25 -0700)]
Rollup merge of #35452 - ubsan:precedence, r=steveklabnik
Finish fixing the operator precedence tables
Add the unstable `:` colon and `<-` inplace operators.
r? @steveklabnik
Jonathan Turner [Mon, 8 Aug 2016 20:25:56 +0000 (13:25 -0700)]
Rollup merge of #35449 - poveda-ruiz:master, r=jonathandturner
Updated E0087 to new format
Part of #35233. r? @jonathandturner
Jonathan Turner [Mon, 8 Aug 2016 20:25:56 +0000 (13:25 -0700)]
Rollup merge of #35446 - pcn:update-E0023-to-new-format, r=jonathandturner
Update E0023 to the new format
Added some extra code to check for the appropriate ending for numbers ==
1 vs. not 1 in error messages.
Added an extra test so that the plural suffix is seen and exercised.
Jonathan Turner [Mon, 8 Aug 2016 20:25:56 +0000 (13:25 -0700)]
Rollup merge of #35396 - munyari:e0191, r=jonathandturner
Update E0191 to the new error format
Part of #35233
"r? @jonathandturner
Jonathan Turner [Mon, 8 Aug 2016 20:25:55 +0000 (13:25 -0700)]
Rollup merge of #35371 - mgattozzi:master, r=steveklabnik
Update HashMap docs regarding DoS protection
Because of changes to how Rust acquires randomness HashMap is not
guaranteed to be DoS resistant. This commit reflects these changes in
the docs themselves and provides an alternative method to creating
a hash that is resistant if needed.
This fixes #33817 and includes relevant information regarding changes made in #33086
Krzysztof Garczynski [Mon, 8 Aug 2016 19:42:49 +0000 (21:42 +0200)]
Update E0162 to the new format
Felix Rath [Mon, 8 Aug 2016 19:04:51 +0000 (21:04 +0200)]
add test for issue #29053
Rahul Sharma [Mon, 11 Jul 2016 12:48:11 +0000 (18:18 +0530)]
extend lifetime on binary_search_by_key of SliceExt trait
Federico Ravasio [Mon, 8 Aug 2016 18:58:21 +0000 (20:58 +0200)]
Updated E0026 to new format.
hank-der-hafenarbeiter [Mon, 8 Aug 2016 17:14:03 +0000 (19:14 +0200)]
updated unit test!
hank-der-hafenarbeiter [Mon, 8 Aug 2016 16:42:07 +0000 (18:42 +0200)]
Updated E0221 message to new format!
bors [Mon, 8 Aug 2016 18:17:05 +0000 (11:17 -0700)]
Auto merge of #35492 - jonathandturner:fix_nightlies, r=arielb1
Fix for nightlies
Remove the NOTE tests for now so that nightlies will pass. We'll move many of these tests to UI tests later, as this is a better place to check the notes.
cc @alexcrichton
Keith Yeung [Mon, 8 Aug 2016 06:33:05 +0000 (23:33 -0700)]
Shrink span to variant discriminant expression for E0081
Guillaume Gomez [Sat, 6 Aug 2016 19:44:49 +0000 (21:44 +0200)]
Add new error code tests
Jonathan Turner [Mon, 8 Aug 2016 16:26:32 +0000 (09:26 -0700)]
Remove the NOTE tests for now. We'll move to UI tests later
Doug Goldstein [Sun, 7 Aug 2016 15:14:01 +0000 (10:14 -0500)]
book: update example patterns to be more clear
When using Point { x: 0, y: 0 } and showing pattern matching decomposing
x and y individually its hard to understand. By using a different value
for x and a different value for y it is more clear.
bors [Mon, 8 Aug 2016 14:47:51 +0000 (07:47 -0700)]
Auto merge of #35456 - birkenfeld:issue-33784, r=nikomatsakis
typeck: suggest (x.field)(...) to call struct fields even when x is a reference
Fixes: #33784
Note: This is a reopen of #33785.
bors [Mon, 8 Aug 2016 10:35:19 +0000 (03:35 -0700)]
Auto merge of #35485 - KiChjang:e0004-bonus, r=GuillaumeGomez
Lengthen the span label to include match and expr for E0004
Part of #35233.
Extension of #35191.
r? @GuillaumeGomez
Seo Sanghyeon [Mon, 8 Aug 2016 10:22:57 +0000 (19:22 +0900)]
Print Rust target name, not LLVM target name, for `--print target-list`
Keith Yeung [Mon, 8 Aug 2016 04:34:51 +0000 (21:34 -0700)]
Shrink E0205 span label to the trait being implemented
Keith Yeung [Mon, 8 Aug 2016 05:25:04 +0000 (22:25 -0700)]
Lengthen the span label to include match and expr for E0004
Corey Farwell [Mon, 8 Aug 2016 04:07:36 +0000 (00:07 -0400)]
Remove unnecessary `main` functions in doc examples.
bors [Mon, 8 Aug 2016 00:31:55 +0000 (17:31 -0700)]
Auto merge of #35402 - KiChjang:e0206-new-msg, r=GuillaumeGomez
Update E0206 message to new format
Part of #35233.
Fixes #35301.
r? @GuillaumeGomez
Guillaume Gomez [Sun, 7 Aug 2016 21:52:43 +0000 (23:52 +0200)]
Fix E0132 error display
Keith Yeung [Fri, 5 Aug 2016 23:14:11 +0000 (16:14 -0700)]
Update E0206 message to new format
Christian Poveda [Sun, 7 Aug 2016 05:29:24 +0000 (00:29 -0500)]
Updated E0087 to new format
Alexander Altman [Wed, 27 Jul 2016 04:16:46 +0000 (21:16 -0700)]
Add `FromIterator` implementations for `Cow<str>`
This seems like an oversight, since the corresponding implementation for `Cow<[T]> where T: Clone` exists.
ShyamSundarB [Sun, 7 Aug 2016 18:45:36 +0000 (00:15 +0530)]
E0248 Change in issue format
ShyamSundarB [Sun, 7 Aug 2016 18:42:53 +0000 (00:12 +0530)]
E0248 Change in issue format
Guillaume Gomez [Sat, 6 Aug 2016 19:24:16 +0000 (21:24 +0200)]
Update librustc_borrowck error codes check
bors [Sun, 7 Aug 2016 17:52:23 +0000 (10:52 -0700)]
Auto merge of #35469 - jonathandturner:rollup, r=jonathandturner
Rollup of 21 pull requests
- Successful merges: #35314, #35355, #35357, #35366, #35394, #35410, #35411, #35413, #35417, #35419, #35421, #35429, #35433, #35434, #35436, #35439, #35443, #35454, #35455, #35467, #35468
- Failed merges: #35395, #35415
Panashe M. Fundira [Sun, 7 Aug 2016 17:21:23 +0000 (13:21 -0400)]
Update E0214 to the new error format
Jonathan Turner [Sun, 7 Aug 2016 16:59:45 +0000 (09:59 -0700)]
Rollup merge of #35468 - munyari:e0205, r=jonathandturner
Update E0205 to the new error format
Part of #35233
Addresses #35382
"r? @jonathandturner
Jonathan Turner [Sun, 7 Aug 2016 16:59:44 +0000 (09:59 -0700)]
Rollup merge of #35467 - terrynsun:master, r=jonathandturner
Update E0116 to new error code format.
Fixes #35249 as part of #35233.
r? @jonathandturner
Jonathan Turner [Sun, 7 Aug 2016 16:59:44 +0000 (09:59 -0700)]
Rollup merge of #35455 - munyari:e0204, r=jonathandturner
Update E0204 to the new error format
Part of #35233
Addresses #35381
"r? @jonathandturner
Jonathan Turner [Sun, 7 Aug 2016 16:59:44 +0000 (09:59 -0700)]
Rollup merge of #35454 - Detegr:master, r=jonathandturner
New error message format for E0117 and E0118
Part of #35233
r? @jonathandturner
Jonathan Turner [Sun, 7 Aug 2016 16:59:44 +0000 (09:59 -0700)]
Rollup merge of #35443 - franleplant:master, r=jonathandturner
Update E0101 and E0102 to new format
Part of #35233
Fixes #35243
Fixes #35244
r? @jonathandturner
PS: My first contribution
Jonathan Turner [Sun, 7 Aug 2016 16:59:44 +0000 (09:59 -0700)]
Rollup merge of #35439 - pcn:update-E0010-error-message, r=jonathandturner
Update E0010 to use the new format
For https://github.com/rust-lang/rust/issues/35194
Jonathan Turner [Sun, 7 Aug 2016 16:59:44 +0000 (09:59 -0700)]
Rollup merge of #35436 - frewsxcv:into-vec, r=GuillaumeGomez
Add doc example for `std::ffi::NulError::into_vec`.
None
Jonathan Turner [Sun, 7 Aug 2016 16:59:43 +0000 (09:59 -0700)]
Rollup merge of #35434 - intrepion:fix-compile-fail-e0121, r=jonathandturner
Fixing compiler error E0121
Fixes #35254 and part of #35233
Jonathan Turner [Sun, 7 Aug 2016 16:59:43 +0000 (09:59 -0700)]
Rollup merge of #35433 - mneumann:dragonfly-fix-libstd-errno-location, r=alexcrichton
Fix build on DragonFly (unused function errno_location)
Function errno_location() is not used on DragonFly. As warnings are
errors, this breaks the build.
Jonathan Turner [Sun, 7 Aug 2016 16:59:43 +0000 (09:59 -0700)]
Rollup merge of #35429 - frewsxcv:tracking-is-empty, r=apasel422
Indicate tracking issue for `exact_size_is_empty` unstability.
https://github.com/rust-lang/rust/issues/35428
Jonathan Turner [Sun, 7 Aug 2016 16:59:43 +0000 (09:59 -0700)]
Rollup merge of #35421 - razielgn:updated-e0225-to-new-format, r=jonathandturner
Updated E0225 to new format.
Part of #35233.
Fixes #35388.
r? @jonathandturner
Jonathan Turner [Sun, 7 Aug 2016 16:59:43 +0000 (09:59 -0700)]
Rollup merge of #35419 - Keats:err-243, r=jonathandturner
Update error message for E0243 and E0244
Fixes #35389 and #35390 as part of #35233.
r? @jonathandturner
Jonathan Turner [Sun, 7 Aug 2016 16:59:42 +0000 (09:59 -0700)]
Rollup merge of #35417 - Limeth:master, r=jonathandturner
E0131 updated to new format
Changes
```
error[E0131]: main function is not allowed to have type parameters
--> src/test/compile-fail/E0131.rs:11:1
|
11 | fn main<T>() { //~ ERROR E0131
| ^
```
to
```
error[E0131]: main function is not allowed to have type parameters
--> src/test/compile-fail/E0131.rs:11:1
|
11 | fn main<T>() { //~ ERROR E0131
| ^^^ main cannot have type parameters
```
Fixes #35257. Part of #35233.
r? @jonathandturner
Jonathan Turner [Sun, 7 Aug 2016 16:59:42 +0000 (09:59 -0700)]
Rollup merge of #35413 - silenuss:e0029-formatting, r=jonathandturner
Update compiler error 0029 to use new error format.
Part of #35233,
Addresses #35201
r? @jonathandturner
Jonathan Turner [Sun, 7 Aug 2016 16:59:42 +0000 (09:59 -0700)]
Rollup merge of #35411 - KiChjang:e0223-new-format, r=jonathandturner
Update E0223 to the new format
Part of #35233.
Fixes #35387.
r? @jonathandturner
Jonathan Turner [Sun, 7 Aug 2016 16:59:42 +0000 (09:59 -0700)]
Rollup merge of #35410 - silenuss:e0027-formatting, r=jonathandturner
Update compiler error 0027 to use new error format.
Part of #35233,
Addresses #35200
r? @jonathandturner
Jonathan Turner [Sun, 7 Aug 2016 16:59:41 +0000 (09:59 -0700)]
Rollup merge of #35394 - mikhail-m1:master, r=jonathandturner
Update error format #35304
Fixes #35304 as part of #35233.
r? @jonathandturner
Jonathan Turner [Sun, 7 Aug 2016 16:59:41 +0000 (09:59 -0700)]
Rollup merge of #35366 - medzin:E0282, r=jonathandturner
Updated error message E0282
Fixes #35312 as part of #35233.
r? @GuillaumeGomez
Jonathan Turner [Sun, 7 Aug 2016 16:59:41 +0000 (09:59 -0700)]
Rollup merge of #35357 - shri3k:E0040, r=jonathandturner
Updates compiler error E0040 with new format
Addresses #35208 as part of #35233.
r? @GuillaumeGomez
Jonathan Turner [Sun, 7 Aug 2016 16:59:40 +0000 (09:59 -0700)]
Rollup merge of #35355 - shri3k:E0046, r=jonathandturner
Updates compiler error E0046 with new format
Addresses #35209 as part of #35233.
r? @jonathandturner
I've repeated the following in my code. If this is something not desirable then let me know if there's any process to make this any cleaner. Thank you.
```rust
missing_items.iter()
.map(|name| name.to_string())
.collect::<Vec<_>>().join("`, `"))
```
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
Panashe M. Fundira [Sun, 7 Aug 2016 16:47:53 +0000 (12:47 -0400)]
Update E0205 to the new error format
Terry Sun [Sun, 7 Aug 2016 04:31:13 +0000 (00:31 -0400)]
Update E0116 to new error code format.
Fixes #35249 as part of #35233.
Novotnik, Petr [Sun, 7 Aug 2016 15:44:47 +0000 (17:44 +0200)]
Fix formatting of module layout example
Fran Guijarro [Sun, 7 Aug 2016 01:17:35 +0000 (22:17 -0300)]
Update E0101 and E0102 to new format
Jonathan Turner [Sun, 7 Aug 2016 14:50:27 +0000 (07:50 -0700)]
Fix old call in lexer tests
Jonathan Turner [Fri, 5 Aug 2016 22:58:31 +0000 (15:58 -0700)]
Turn on new errors, json mode. Remove duplicate unicode test
Peter C. Norton [Sun, 7 Aug 2016 00:12:09 +0000 (20:12 -0400)]
Updated the messages for E0017
- Fix note message, fix tests.
Peter C. Norton [Sat, 6 Aug 2016 23:23:40 +0000 (19:23 -0400)]
Update E0010 to use the new format
For https://github.com/rust-lang/rust/issues/35194
Yossi Konstantinovsky [Thu, 4 Aug 2016 17:56:12 +0000 (20:56 +0300)]
Update E0185 and E0186 to new format