]> git.lizzy.rs Git - rust.git/log
rust.git
7 years agoAuto merge of #34193 - petrochenkov:privalias, r=nikomatsakis
bors [Thu, 11 Aug 2016 17:09:10 +0000 (10:09 -0700)]
Auto merge of #34193 - petrochenkov:privalias, r=nikomatsakis

privacy: Substitute type aliases in private-in-public checker

Closes https://github.com/rust-lang/rust/issues/30503
Closes https://github.com/rust-lang/rust/issues/34293

Everyone in the issue discussion seemed to be in favor, @huonw also spoke about this [here](https://www.reddit.com/r/rust/comments/3xldr9/surfaces_and_signatures_component_privacy_versus/cy615wq), but the issue haven't got any movement.
I think it's reasonable to do this before turning `private_in_public` warnings into errors.

r? @nikomatsakis

7 years agoAuto merge of #35403 - scottcarr:lvalue_refactor, r=nikomatsakis
bors [Thu, 11 Aug 2016 12:04:41 +0000 (05:04 -0700)]
Auto merge of #35403 - scottcarr:lvalue_refactor, r=nikomatsakis

refactor lvalue_ty to be method of lvalue

Currently `Mir` (and `MirContext`) implement a method `lvalue_ty` (and actually many more `foo_ty`).  But this should be a method of `Lvalue`.

If you have an `lvalue` and you want to get its type, the natural thing to write is:

```
lvalue.ty()
```

Of course it needs context, but still:

```
lvalue.ty(mir, tcx)
```

Makes more sense than

```
mir.lvalue_ty(lvalue, tcx)
```

I actually think we should go a step farther and have traits so we could get the type of some value generically, but that's up for debate.  The thing I'm running into a lot in the compiler is I have a value of type `Foo` and I know that there is some related type `Bar` which I can get through some combination of method calls, but it's often not as direct as I would imagine.  Unless you already know the code, its not clear why you would look in `Mir` for a method to get the type of an `Lvalue`.

7 years agoAuto merge of #34866 - cynicaldevil:panic-counter, r=alexcrichton
bors [Thu, 11 Aug 2016 08:58:48 +0000 (01:58 -0700)]
Auto merge of #34866 - cynicaldevil:panic-counter, r=alexcrichton

Refactored code to access TLS only in case of panic (II)

Fixes #34787
r? @alexcrichton
Do it **very** carefully this time!

7 years agoAuto merge of #34845 - bitshifter:issue-30961, r=alexcrichton
bors [Thu, 11 Aug 2016 04:42:48 +0000 (21:42 -0700)]
Auto merge of #34845 - bitshifter:issue-30961, r=alexcrichton

Add help for target CPUs, features, relocation and code models.

Fix for https://github.com/rust-lang/rust/issues/30961. Requires PR https://github.com/rust-lang/llvm/pull/45 to be accepted first, and the .gitmodules for llvm to be updated before this can be merged.

7 years agoAdd test for recursive private alias substitution in rustdoc
Vadim Petrochenkov [Wed, 10 Aug 2016 18:00:17 +0000 (21:00 +0300)]
Add test for recursive private alias substitution in rustdoc

7 years agoprivacy: Move private-in-public diagnostics for type aliases to the public interface...
petrochenkov [Fri, 8 Jul 2016 08:44:43 +0000 (11:44 +0300)]
privacy: Move private-in-public diagnostics for type aliases to the public interface location

7 years agoSubstitute private type aliases in rustdoc
petrochenkov [Thu, 7 Jul 2016 15:20:26 +0000 (18:20 +0300)]
Substitute private type aliases in rustdoc

7 years agoprivacy: Substitute type aliases in private-in-public checker
Vadim Petrochenkov [Thu, 9 Jun 2016 23:09:43 +0000 (02:09 +0300)]
privacy: Substitute type aliases in private-in-public checker

7 years agoAuto merge of #35489 - sanxiyn:target-list, r=alexcrichton
bors [Wed, 10 Aug 2016 20:13:50 +0000 (13:13 -0700)]
Auto merge of #35489 - sanxiyn:target-list, r=alexcrichton

Print Rust target name, not LLVM target name, for `--print target-list`

Rust target name and LLVM target name are usually the same, but not always. For example, `arm-unknown-linux-musleabi` Rust target uses `arm-unknown-linux-gnueabi` LLVM target.

Fix #35481.

7 years agoAuto merge of #35525 - jonathandturner:rollup, r=jonathandturner
bors [Wed, 10 Aug 2016 17:03:08 +0000 (10:03 -0700)]
Auto merge of #35525 - jonathandturner:rollup, r=jonathandturner

Rollup of 15 pull requests

- Successful merges: #35371, #35396, #35446, #35449, #35452, #35458, #35465, #35466, #35470, #35475, #35477, #35484, #35504, #35507, #35524
- Failed merges: #35395, #35415

7 years agono op commit for travis
Scott A Carr [Wed, 10 Aug 2016 16:42:33 +0000 (09:42 -0700)]
no op commit for travis

7 years agoAdded an update_panic_count function to handle access to PANIC_COUNT
Nikhil Shagrithaya [Wed, 10 Aug 2016 16:32:35 +0000 (22:02 +0530)]
Added an update_panic_count function to handle access to PANIC_COUNT

7 years agoAdded a shim around rust_panic to update panic counter
Nikhil Shagrithaya [Wed, 20 Jul 2016 13:05:25 +0000 (18:35 +0530)]
Added a shim around rust_panic to update panic counter

7 years agoRefactored code to access TLS only in case of panic
Nikhil Shagrithaya [Fri, 15 Jul 2016 15:17:45 +0000 (20:47 +0530)]
Refactored code to access TLS only in case of panic

7 years agoImproved checking of target's llvm_config
Cameron Hart [Sat, 6 Aug 2016 05:54:28 +0000 (15:54 +1000)]
Improved checking of target's llvm_config

Point llvm @bitshifter branch until PR accepted

Use today's date for LLVM auto clean trigger

Update LLVM submodule to point at rust-lang fork.

Handle case when target is set

7 years agoAuto merge of #35405 - futile:tests_warn_timeout, r=brson
bors [Wed, 10 Aug 2016 10:00:56 +0000 (03:00 -0700)]
Auto merge of #35405 - futile:tests_warn_timeout, r=brson

Add warning timeout for tests that run >1min

This makes it easier to identify hanging tests. As described in #2873,
when a test doesn't finish, we so far had no information on which test
that was. In this PR, we add a duration of 60 seconds for each test,
after which a warning will be printed mentioning that this specific test
has been running for a long time already.

Example output:
https://gist.github.com/futile/6ea3eed85fe632df8633c1b03c08b012

r? @brson

7 years agoAuto merge of #35079 - nikomatsakis:incr-comp-ich-32753, r=mw
bors [Wed, 10 Aug 2016 04:00:21 +0000 (21:00 -0700)]
Auto merge of #35079 - nikomatsakis:incr-comp-ich-32753, r=mw

Various improvements to the SVH

This fixes a few points for the SVH:

- incorporate resolve results into the SVH;
- don't include nested items.

r? @michaelwoerister

cc #32753 (not fully fixed I don't think)

7 years agopacify the merciless tidy
Niko Matsakis [Tue, 9 Aug 2016 18:45:58 +0000 (14:45 -0400)]
pacify the merciless tidy

7 years agoincorporate resolve results into hashing
Niko Matsakis [Wed, 27 Jul 2016 21:26:55 +0000 (17:26 -0400)]
incorporate resolve results into hashing

We now incorporate the `def_map` and `trait_map`
results into the SVH.

7 years agopromote svh calculation into its own directory
Niko Matsakis [Wed, 27 Jul 2016 19:00:38 +0000 (15:00 -0400)]
promote svh calculation into its own directory

7 years agoremove field that need not be public
Niko Matsakis [Wed, 27 Jul 2016 18:43:06 +0000 (14:43 -0400)]
remove field that need not be public

7 years agostop hashing nested items, and add a test
Niko Matsakis [Wed, 27 Jul 2016 18:42:58 +0000 (14:42 -0400)]
stop hashing nested items, and add a test

7 years agomake it possible to test if HIR is dirty
Niko Matsakis [Wed, 27 Jul 2016 18:36:21 +0000 (14:36 -0400)]
make it possible to test if HIR is dirty

This requires passing in the dirty-node set explicitly since HIR nodes
wind up added to the graph either way.

7 years agoAuto merge of #35401 - jonathandturner:enable_json_and_new_errors, r=jonathandturner
bors [Tue, 9 Aug 2016 21:04:54 +0000 (14:04 -0700)]
Auto merge of #35401 - jonathandturner:enable_json_and_new_errors, r=jonathandturner

Turn on new errors and json mode

This PR is a big-switch, but on a well-worn path:

* Turns on new errors by default (and removes old skool)
* Moves json output from behind a flag

The RFC for new errors [landed](https://github.com/rust-lang/rfcs/pull/1644) and as part of that we wanted some bake time.  It's now had a few weeks + all the time leading up to the RFC of people banging on it.  We've also had [editors updating to the new format](https://github.com/saviorisdead/RustyCode/pull/159) and expect more to follow.

We also have an [issue on old skool](https://github.com/rust-lang/rust/issues/35330) that needs to be fixed as more errors are switched to the new style, but it seems silly to fix old skool errors when we fully intend to throw the switch in the near future.

This makes it lean towards "why not just throw the switch now, rather than waiting a couple more weeks?"  I only know of vim that wanted to try to parse the new format but were not sure how, and I think we can reach out to them and work out something in the 8 weeks before this would appear in a stable release.

We've [hashed out](https://github.com/rust-lang/rust/issues/35330) stabilizing JSON output, and it seems like people are relatively happy making what we have v1 and then likely adding to it in the future.  The idea is that we'd maintain backward compatibility and just add new fields as needed.  We'll also work on a separate output format that'd be better suited for interactive tools like IDES (since JSON message can get a little long depending on the error).

This PR stabilizes JSON mode, allowing its use without `-Z unstable-options`

Combined, this gives editors two ways to support errors going forward: parsing the new error format or using the JSON mode.  By moving JSON to stable, we can also add support to Cargo, which plugin authors tell us does help simplify their support story.

r? @nikomatsakis
cc @rust-lang/tools

Closes https://github.com/rust-lang/rust/issues/34826

7 years agoUpdate cargo SHA to latest cargo
Jonathan Turner [Tue, 9 Aug 2016 17:14:08 +0000 (10:14 -0700)]
Update cargo SHA to latest cargo

7 years agoAuto merge of #35166 - nikomatsakis:incr-comp-ice-34991-2, r=mw
bors [Tue, 9 Aug 2016 17:00:54 +0000 (10:00 -0700)]
Auto merge of #35166 - nikomatsakis:incr-comp-ice-34991-2, r=mw

Address ICEs running w/ incremental compilation and building glium

Fixes for various ICEs I encountered trying to build glium with incremental compilation enabled. Building glium now works. Of the 4 ICEs, I have test cases for 3 of them -- I didn't isolate a test for the last commit and kind of want to go do other things -- most notably, figuring out why incremental isn't saving much *effort*.

But if it seems worthwhile and I can come back and try to narrow down the problem.

r? @michaelwoerister

Fixes #34991
Fixes #32015

7 years agofix license
Niko Matsakis [Tue, 9 Aug 2016 16:43:59 +0000 (12:43 -0400)]
fix license

7 years agomake tidy
Scott A Carr [Tue, 9 Aug 2016 15:17:50 +0000 (08:17 -0700)]
make tidy

7 years agoUpdate E0087.rs
Jonathan Turner [Tue, 9 Aug 2016 14:53:52 +0000 (07:53 -0700)]
Update E0087.rs

7 years agopacify the mercilous tidy
Niko Matsakis [Tue, 9 Aug 2016 14:25:31 +0000 (10:25 -0400)]
pacify the mercilous tidy

7 years agoAuto merge of #35426 - frewsxcv:os-sys-env-args-phantoms, r=alexcrichton
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

7 years agoaddress comments from mw
Niko Matsakis [Tue, 9 Aug 2016 12:24:26 +0000 (08:24 -0400)]
address comments from mw

7 years agouse preds to serialize just what we need
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.

7 years agogeneralize BitMatrix to be NxM and not just NxN
Niko Matsakis [Sat, 6 Aug 2016 00:12:53 +0000 (20:12 -0400)]
generalize BitMatrix to be NxM and not just NxN

7 years agoadd a `deterministic_hash` method to `DefPath`
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.

7 years agoadd a `-Z incremental-info` flag
Niko Matsakis [Sat, 6 Aug 2016 00:12:02 +0000 (20:12 -0400)]
add a `-Z incremental-info` flag

7 years agoreplace Name with InternedString in DefPathData
Niko Matsakis [Sat, 6 Aug 2016 00:10:04 +0000 (20:10 -0400)]
replace Name with InternedString in DefPathData

Fixes #35292.

7 years agomake DepNode PartialOrd
Niko Matsakis [Sat, 6 Aug 2016 00:00:20 +0000 (20:00 -0400)]
make DepNode PartialOrd

7 years agoisolate predecessor computation
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.

7 years agoAuto merge of #35425 - apasel422:refcell, r=alexcrichton
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

7 years agoAuto merge of #34762 - creativcoder:slice-ext, 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.

7 years agoImplement `RefCell::{try_borrow, try_borrow_mut}`
Andrew Paseltiner [Sat, 6 Aug 2016 17:48:59 +0000 (13:48 -0400)]
Implement `RefCell::{try_borrow, try_borrow_mut}`

7 years agofixup tests for new def'n of InlinedItem
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

7 years agotrack MIR through the dep-graph
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.

7 years agorename KrateInfo to CrateInfo
Niko Matsakis [Mon, 8 Aug 2016 22:41:58 +0000 (18:41 -0400)]
rename KrateInfo to CrateInfo

7 years agoAuto merge of #35064 - pthariensflame:feature/cow_str_from_iter, r=alexcrichton
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.

7 years agorefactor other type methods
Scott A Carr [Mon, 8 Aug 2016 20:35:10 +0000 (13:35 -0700)]
refactor other type methods

7 years agoRollup merge of #35524 - garekkream:update-E0162-new-error-format, r=jonathandturner
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

7 years agoRollup merge of #35507 - hank-der-hafenarbeiter:master, 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

7 years agoRollup merge of #35504 - razielgn:updated-e0026-to-new-format, 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

7 years agoRollup merge of #35484 - KiChjang:e0205-bonus, r=GuillaumeGomez
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

7 years agoRollup merge of #35477 - GuillaumeGomez:fix_E0132, r=jonathandturner
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

7 years agoRollup merge of #35475 - shyaamsundhar:patch-1, 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

7 years agoRollup merge of #35470 - munyari:e0214, r=jonathandturner
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

7 years agoRollup merge of #35466 - xitep:master, r=steveklabnik
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

7 years agoRollup merge of #35465 - cardoe:pattern-book-update, r=steveklabnik
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.

7 years agoRollup merge of #35458 - GuillaumeGomez:test_string_ICE, r=alexcrichton
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

7 years agoRollup merge of #35452 - ubsan:precedence, r=steveklabnik
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

7 years agoRollup merge of #35449 - poveda-ruiz:master, r=jonathandturner
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

7 years agoRollup merge of #35446 - pcn:update-E0023-to-new-format, 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.

7 years agoRollup merge of #35396 - munyari:e0191, r=jonathandturner
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

7 years agoRollup merge of #35371 - mgattozzi:master, r=steveklabnik
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

7 years agoUpdate E0162 to the new format
Krzysztof Garczynski [Mon, 8 Aug 2016 19:42:49 +0000 (21:42 +0200)]
Update E0162 to the new format

7 years agoextend lifetime on binary_search_by_key of SliceExt trait
Rahul Sharma [Mon, 11 Jul 2016 12:48:11 +0000 (18:18 +0530)]
extend lifetime on binary_search_by_key of SliceExt trait

7 years agoUpdated E0026 to new format.
Federico Ravasio [Mon, 8 Aug 2016 18:58:21 +0000 (20:58 +0200)]
Updated E0026 to new format.

7 years agoupdated unit test!
hank-der-hafenarbeiter [Mon, 8 Aug 2016 17:14:03 +0000 (19:14 +0200)]
updated unit test!

7 years agoUpdated E0221 message to new format!
hank-der-hafenarbeiter [Mon, 8 Aug 2016 16:42:07 +0000 (18:42 +0200)]
Updated E0221 message to new format!

7 years agoAuto merge of #35492 - jonathandturner:fix_nightlies, r=arielb1
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

7 years agoRemove the NOTE tests for now. We'll move to UI tests later
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

7 years agobook: update example patterns to be more clear
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.

7 years agoAuto merge of #35456 - birkenfeld:issue-33784, r=nikomatsakis
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.

7 years agoAuto merge of #35485 - KiChjang:e0004-bonus, r=GuillaumeGomez
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

7 years agoPrint Rust target name, not LLVM target name, for `--print target-list`
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`

7 years agoShrink E0205 span label to the trait being implemented
Keith Yeung [Mon, 8 Aug 2016 04:34:51 +0000 (21:34 -0700)]
Shrink E0205 span label to the trait being implemented

7 years agoLengthen the span label to include match and expr for E0004
Keith Yeung [Mon, 8 Aug 2016 05:25:04 +0000 (22:25 -0700)]
Lengthen the span label to include match and expr for E0004

7 years agoAuto merge of #35402 - KiChjang:e0206-new-msg, r=GuillaumeGomez
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

7 years agoFix E0132 error display
Guillaume Gomez [Sun, 7 Aug 2016 21:52:43 +0000 (23:52 +0200)]
Fix E0132 error display

7 years agoUpdate E0206 message to new format
Keith Yeung [Fri, 5 Aug 2016 23:14:11 +0000 (16:14 -0700)]
Update E0206 message to new format

7 years agoUpdated E0087 to new format
Christian Poveda [Sun, 7 Aug 2016 05:29:24 +0000 (00:29 -0500)]
Updated E0087 to new format

7 years agoAdd `FromIterator` implementations for `Cow<str>`
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.

7 years agoE0248 Change in issue format
ShyamSundarB [Sun, 7 Aug 2016 18:45:36 +0000 (00:15 +0530)]
E0248 Change in issue format

7 years agoE0248 Change in issue format
ShyamSundarB [Sun, 7 Aug 2016 18:42:53 +0000 (00:12 +0530)]
E0248 Change in issue format

7 years agoAuto merge of #35469 - jonathandturner:rollup, r=jonathandturner
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

7 years agoUpdate E0214 to the new error format
Panashe M. Fundira [Sun, 7 Aug 2016 17:21:23 +0000 (13:21 -0400)]
Update E0214 to the new error format

7 years agoRollup merge of #35468 - munyari:e0205, r=jonathandturner
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

7 years agoRollup merge of #35467 - terrynsun:master, 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

7 years agoRollup merge of #35455 - munyari:e0204, 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

7 years agoRollup merge of #35454 - Detegr:master, 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

7 years agoRollup merge of #35443 - franleplant:master, 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

7 years agoRollup merge of #35439 - pcn:update-E0010-error-message, r=jonathandturner
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

7 years agoRollup merge of #35436 - frewsxcv:into-vec, r=GuillaumeGomez
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

7 years agoRollup merge of #35434 - intrepion:fix-compile-fail-e0121, r=jonathandturner
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

7 years agoRollup merge of #35433 - mneumann:dragonfly-fix-libstd-errno-location, r=alexcrichton
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.

7 years agoRollup merge of #35429 - frewsxcv:tracking-is-empty, r=apasel422
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

7 years agoRollup merge of #35421 - razielgn:updated-e0225-to-new-format, r=jonathandturner
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

7 years agoRollup merge of #35419 - Keats:err-243, 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

7 years agoRollup merge of #35417 - Limeth:master, 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

7 years agoRollup merge of #35413 - silenuss:e0029-formatting, 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

7 years agoRollup merge of #35411 - KiChjang:e0223-new-format, 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

7 years agoRollup merge of #35410 - silenuss:e0027-formatting, 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