Commit graph

64701 commits

Author SHA1 Message Date
John Kåre Alsaker
0b1469acd7 Fix test formatting 2017-06-22 21:26:10 +00:00
John Kåre Alsaker
8d6d9d12f1 Fix formatting and add a test for destruction order of unbound values 2017-06-22 21:26:05 +00:00
John Kåre Alsaker
21b276f32c Change the for-loop desugar so the break does not affect type inference. Fixes #42618 2017-06-22 21:26:01 +00:00
Niko Matsakis
785e82cd49 register the obligations from wf::implied_bounds
Fixes #42552.
Fixes #42545.
2017-06-22 21:24:19 +00:00
Niko Matsakis
f6e76be89e move implied_bounds into regionck 2017-06-22 21:24:13 +00:00
Mark Simulacrum
d8fd8df767 Use custom cargo/rustc paths when parsing flags. 2017-06-22 21:23:44 +00:00
Jeffrey Seyfried
433450ae7f resolve: fix perf bug. 2017-06-22 21:23:30 +00:00
Ariel Ben-Yehuda
8551427b9f collector: apply param substs to closures cast to fn items
Fixes #42718.
2017-06-22 21:22:29 +00:00
Ariel Ben-Yehuda
d9b47c3364 Backport fixes to LLVM 4.0 ARM codegen bugs
So ARM had quite a few codegen bugs on LLVM 4.0 which are fixed on LLVM
trunk. This backports 5 of them:
r297871 - ARM: avoid clobbering register in v6 jump-table expansion.
    - fixes rust-lang/rust#42248
r294949 - [Thumb-1] TBB generation: spot redefinitions of index
r295816 - [ARM] Fix constant islands pass.
r300870 - [Thumb-1] Fix corner cases for compressed jump tables
r302650 - [IfConversion] Add missing check in
IfConversion/canFallThroughTo
    - unblocks rust-lang/rust#39409
2017-06-22 21:21:47 +00:00
Mark Simulacrum
d6871769be Fixes bootstrapping with custom cargo/rustc.
config.mk is now always read when parsing the configuration to prevent
this from reoccurring in the future, hopefully.
2017-06-22 21:18:05 +00:00
bors
4795a8f6a4 Auto merge of #42661 - steveklabnik:gh42660-beta, r=alexcrichton
[beta] update book with redirect fixes

Backport of #42660

Requesting a backport because people are finding this very confusing. I could in theory make this smaller but it's a real giant pain, so just update the entire book rather than creating a `nodelete` branch that lives forever in the book repo.

r? @brson @alexcrichton
2017-06-18 15:08:54 +00:00
bors
a175ee509b Auto merge of #42609 - brson:beta-next, r=alexcrichton
Beta next

- https://github.com/rust-lang/rust/pull/42521
- https://github.com/rust-lang/rust/pull/42512
- https://github.com/rust-lang/rust/pull/42482
- https://github.com/rust-lang/rust/pull/42481
- https://github.com/rust-lang/rust/pull/42480

r? @nikomatsakis remember to untag 'beta-nominated' on linked issues
2017-06-15 04:33:10 +00:00
Alex Crichton
3a2f62d40d Update cargo submodule
Pulls in two beta fixes for cargo:

* rust-lang/cargo#4169
* rust-lang/cargo#4170
2017-06-14 19:30:02 -07:00
steveklabnik
cba129b6f8 update book with redirect fixes
Backport of #42660
2017-06-14 15:51:11 -04:00
Brian Anderson
242ab0e8a0 Bump beta prerelease version 2017-06-13 17:03:12 +00:00
bors
0cd6b0d1ae Auto merge of #42567 - CryZe:beta-wingnu, r=alexcrichton
[beta] Fix setting PATH during linkage on windows-gnu

Beta backport of https://github.com/rust-lang/rust/pull/42481
2017-06-12 22:53:11 +00:00
Eduard-Mihai Burtescu
c66bd6f67d rustc_typeck: do not overlap a borrow of TypeckTables with method lookup. 2017-06-12 18:08:20 +00:00
Brian Anderson
b28867f5e3 Fix setting PATH during linkage on windows-gnu 2017-06-12 18:07:22 +00:00
Eduard-Mihai Burtescu
c0080598f9 rustc: T: 'empty always holds forall T. 2017-06-12 18:06:38 +00:00
Marc-Antoine Perennou
18a556cd92 update git2
Fixes build with libressl

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2017-06-12 18:04:38 +00:00
Alex Crichton
76421c0a0b std: Handle ENOSYS when calling pipe2
Should help fix an accidental regression from #39386.
2017-06-12 18:04:15 +00:00
bors
1201764588 Auto merge of #42540 - alexcrichton:bootstrap-prod, r=Mark-Simulacrum
[beta] Bootstrap from release artifacts

Switch to prod now that the release happened
2017-06-10 04:27:33 +00:00
Brian Anderson
87d5c72048 [beta] Fix setting PATH during linkage on windows-gnu 2017-06-09 20:38:31 +02:00
bors
bb92494e24 Auto merge of #42525 - alexcrichton:beta-next, r=brson
[beta] Update rls/cargo submodules

This updates the cargo submodule to the latest tip of Cargo, along with an
accompanying update to the `rls` submodule to keep it compiling.
2017-06-09 15:15:39 +00:00
Alex Crichton
12b9d861f1 [beta] Bootstrap from release artifacts
Switch to prod now that the release happened
2017-06-08 09:45:45 -07:00
Alex Crichton
8128639a47 [beta] Update rls/cargo submodules
This updates the cargo submodule to the latest tip of Cargo, along with an
accompanying update to the `rls` submodule to keep it compiling.
2017-06-08 07:05:42 -07:00
bors
a879841184 Auto merge of #42472 - alexcrichton:beta-next, r=alexcrichton
[beta] Prepare the 1.19.0 beta release

* ~~Update the cargo submodule~~
* Update the stage0 bootstrap to 1.18.0 release
* Update release channel to beta
* Disable the RLS (this'll happen next beta hopefully)

Closes https://github.com/rust-lang/rust/issues/42357
2017-06-06 23:38:58 +00:00
Alex Crichton
1dbacb3966 Prepare the 1.19.0 beta release
* Update the cargo submodule
* Update the stage0 bootstrap to 1.18.0 release
* Update release channel to beta
* Disable the RLS (this'll happen next beta hopefully)
2017-06-06 07:52:44 -07:00
Alex Crichton
4b088310c4 Revert "Add RLS to .exe and .msi installers"
This reverts commit eeebfd667b.
2017-06-05 21:37:18 -07:00
Alex Crichton
697ca57742 Revert "Add RLS to .pkg installer"
This reverts commit 7c362732dc.
2017-06-05 21:37:17 -07:00
Alex Crichton
7a70189b96 Revert "Fix formatting issues in Distribution.xml"
This reverts commit f3b29d3f01.
2017-06-05 21:37:17 -07:00
bors
ae79201533 Auto merge of #42452 - raphlinus:mx_job_default, r=alexcrichton
[fuchsia] Track change of mx_job_default

The implementation of mx_job_default changed from a macro which
accessed the __magenta_job_default global variable to a proper
function call. This patch tracks that change.
2017-06-05 21:42:19 +00:00
Raph Levien
4e2a43f323 [fuchsia] Track change of mx_job_default
The implementation of mx_job_default changed from a macro which
accessed the __magenta_job_default global variable to a proper
function call. This patch tracks that change.
2017-06-05 11:27:31 -07:00
bors
d015610db7 Auto merge of #42414 - frewsxcv:frewsxcv/improve-cow-docs, r=QuietMisdreavus
Improve `Cow` method doc examples.

None
2017-06-05 15:38:24 +00:00
bors
13eb0ec9f1 Auto merge of #42383 - estebank:candidate-newline, r=arielb1
Use multiline note for trait suggestion
2017-06-05 13:07:38 +00:00
bors
c94a9ac8ae Auto merge of #42426 - arthurprs:io_error, r=sfackler
Inline io::Error creation from ErrorKind

Faster and smaller code for mio and tokio (PRs on those to follow)
2017-06-04 23:35:21 +00:00
bors
0418fa9d38 Auto merge of #42362 - estebank:type, r=arielb1
Show trait method signature when impl differs

When the trait's span is available, it is already being used, add a
`note` for the cases where the span isn't available:

<pre>
error[E0053]: <b>method `fmt` has an incompatible type for trait</b>
  --> $DIR/trait_type.rs:17:4
   |
17 |    fn fmt(&self, x: &str) -> () { }
   |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability
   |
   = note: expected type `<b>fn(&MyType, &mut std::fmt::Formatter<'_>) -> std::result::Result<(), std::fmt::Error></b>`
              found type `<b>fn(&MyType, &str)</b>`

error[E0050]: <b>method `fmt` has 1 parameter but the declaration in trait `std::fmt::Display::fmt` has 2</b>
  --> $DIR/trait_type.rs:21:11
   |
21 |    fn fmt(&self) -> () { }
   |           ^^^^^ expected 2 parameters, found 1
   |
   = note: `fmt` from trait: `<b>fn(&Self, &mut std::fmt::Formatter<'_>) -> std::result::Result<(), std::fmt::Error></b>`

error[E0186]: <b>method `fmt` has a `&self` declaration in the trait, but not in the impl</b>
  --> $DIR/trait_type.rs:25:4
   |
25 |    fn fmt() -> () { }
   |    ^^^^^^^^^^^^^^^^^^ expected `&self` in impl
   |
   = note: `fmt` from trait: `<b>fn(&Self, &mut std::fmt::Formatter<'_>) -> std::result::Result<(), std::fmt::Error></b>`

error[E0046]: <b>not all trait items implemented, missing: `fmt`</b>
  --> $DIR/trait_type.rs:28:1
   |
28 | impl std::fmt::Display for MyType4 {}
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `fmt` in implementation
   |
   = note: `fmt` from trait: `<b>fn(&Self, &mut std::fmt::Formatter<'_>) -> std::result::Result<(), std::fmt::Error></b>`
</code></pre>

Fix #28011.
2017-06-04 20:16:09 +00:00
Esteban Küber
397972f5b0 Separate suggestion in a help and a note 2017-06-04 12:56:57 -07:00
Esteban Küber
e324919ec5 Show trait method signature when impl differs
When the trait's span is available, it is already being used, add a
`note` for the cases where the span isn't available:

```
error[E0053]: method `fmt` has an incompatible type for trait
  --> $DIR/trait_type.rs:17:4
   |
17 |    fn fmt(&self, x: &str) -> () { }
   |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability
   |
   = note: expected type `fn(&MyType, &mut std::fmt::Formatter<'_>) -> std::result::Result<(), std::fmt::Error>`
              found type `fn(&MyType, &str)`

error[E0050]: method `fmt` has 1 parameter but the declaration in trait `std::fmt::Display::fmt` has 2
  --> $DIR/trait_type.rs:21:11
   |
21 |    fn fmt(&self) -> () { }
   |           ^^^^^ expected 2 parameters, found 1
   |
   = note: `fmt` from trait: `fn(&Self, &mut std::fmt::Formatter<'_>) -> std::result::Result<(), std::fmt::Error>`

error[E0186]: method `fmt` has a `&self` declaration in the trait, but not in the impl
  --> $DIR/trait_type.rs:25:4
   |
25 |    fn fmt() -> () { }
   |    ^^^^^^^^^^^^^^^^^^ expected `&self` in impl
   |
   = note: `fmt` from trait: `fn(&Self, &mut std::fmt::Formatter<'_>) -> std::result::Result<(), std::fmt::Error>`

error[E0046]: not all trait items implemented, missing: `fmt`
  --> $DIR/trait_type.rs:28:1
   |
28 | impl std::fmt::Display for MyType4 {}
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `fmt` in implementation
   |
   = note: `fmt` from trait: `fn(&Self, &mut std::fmt::Formatter<'_>) -> std::result::Result<(), std::fmt::Error>`
```
2017-06-04 12:52:55 -07:00
bors
9a4e13f5c4 Auto merge of #42402 - citizen428:create-dump-mir-dir, r=Mark-Simulacrum
Create directory for dump-mir-dir automatically

Fixes #35543 r? @Mark-Simulacrum

@Mark-Simulacrum I know someone else said that they'll work on this, but it has been 3+ weeks and I had nothing to do and wanted to contribute a bit.

I now added the call to automatically create the directory as discussed, but was wondering how you feel about the suggestion to set a default directory, i.e. `target/mir`?
2017-06-04 17:51:46 +00:00
arthurprs
4bda94d0d8 inline io::Error creation from ErrorKind 2017-06-04 19:45:44 +02:00
bors
341f453448 Auto merge of #42418 - tomprince:try-deploy, r=Mark-Simulacrum
Upload linux-x86_64 artifacts on try branch.

This is an experiment to explore generating artifacts for testing with cargobmomb. See brson/cargobomb#64.
2017-06-04 15:35:37 +00:00
bors
0da9721ab4 Auto merge of #42406 - bjorn3:patch-1, r=eddyb
Some doc comments
2017-06-04 12:36:11 +00:00
Mark Simulacrum
d2ff798f3a Don't run travis tests on master.
This saves us builders for more helpful purposes.
2017-06-04 00:00:22 -06:00
bors
0b17b4c084 Auto merge of #42265 - Zoxc:for-sugar, r=eddyb
Change for-loop desugar to not borrow the iterator during the loop

This is enables the use of suspend points inside for-loops in movable generators. This is illegal in the current desugaring as `iter` is borrowed across the body.
2017-06-04 05:44:39 +00:00
bors
1b5a923001 Auto merge of #41968 - kennytm:fix-unreadable-json-test-output-36516, r=nikomatsakis
Introduce 'run-pass' header to 'ui' tests in compiletest. Fix issue #36516.

<del>`ui-run` test is a combination of `ui` test and `run-pass` test. It is used to test lint output.</del>

Added support of `// run-pass` header to `ui` tests.

The compiler message of each test must match the corresponding `*.stderr` file like the traditional `ui` tests. Additionally, the compiled output must be executed successfully like the `run-pass` test.

12 `run-pass`/`run-pass-fulldeps` tests are moved to `ui`/`ui-fulldeps` plus the headers. After this move, no `run-pass`/`run-pass-fulldeps` tests should rely on the compiler's JSON message. This allows us to stop passing `--error-format json` in run-pass tests, thus fixing #36516.
2017-06-04 03:23:39 +00:00
Michael Kohl
82caf2132d Create directory for dump-mir-dir automatically
Fixes #35543
2017-06-04 10:08:42 +07:00
Tom Prince
abb50f2dfa Deploy linux-x86_64 artifacts on try branch. 2017-06-03 19:23:59 -06:00
bors
efee86d1a1 Auto merge of #42398 - redox-os:master, r=sfackler
Redox: Switch to repr(C) for syscall structs
2017-06-04 01:06:23 +00:00
bors
8f66fafebd Auto merge of #42391 - photoszzt:master, r=Manishearth
Better suggestion for unknown method

r? @Manishearth

fixes #42386
2017-06-03 22:49:11 +00:00