Commit graph

43732 commits

Author SHA1 Message Date
Nick Hamann
cb8daafe0d Add a regression test for issue #18809.
Closes #18809.
2015-06-20 16:16:54 -05:00
bors
40d19bf641 Auto merge of #26456 - Manishearth:rollup, r=Manishearth
- Successful merges: #26410, #26432, #26434, #26439, #26451, #26452
- Failed merges:
2015-06-20 17:53:36 +00:00
Manish Goregaokar
7effb31fa2 Rollup merge of #26452 - michaelsproul:the-second-coming, r=pnkfelix
As per #26009 this PR implements a new collation system for extended-error metadata. I've tried to keep it as simple as possible for now, so there's no uniqueness checking and minimal modularity.

Although using a lint was discussed in #26009 I decided against this because it would require converting the AST output from the plugin back into an internal data-structure. Emitting the metadata from within the plugin prevents this double-handling. We also didn't identify this as the source of the failures last time, although something untoward was definitely happening... With that in mind I would like as much feedback as possible on this before it's merged, I don't want to break the bots again!

I've successfully built for my host architecture and I'm building an ARM cross-compiler now to test my assumptions about the various `CFG` variables. Despite the confusing name of `CFG_COMPILER_HOST_TRIPLE` it is actually the compile time target triple, as explained in `mk/target.mk`.

```
# This is the compile-time target-triple for the compiler. For the compiler at
# runtime, this should be considered the host-triple. More explanation for why
# this exists can be found on issue #2400
export CFG_COMPILER_HOST_TRIPLE
```

CC @pnkfelix @brson @nrc @alexcrichton 

Closes #25705, closes #26009.
2015-06-20 21:40:37 +05:30
Manish Goregaokar
6bff14ffea Rollup merge of #26451 - nham:fix_18058, r=arielb1
Fixes #18058.
2015-06-20 21:40:37 +05:30
Manish Goregaokar
f50ae67ec2 Rollup merge of #26439 - Gankro:marker, r=pnkfelix
r? @pnkfelix
2015-06-20 21:40:36 +05:30
Manish Goregaokar
4cf7dc58a0 Rollup merge of #26434 - Munksgaard:issue24227-test, r=alexcrichton 2015-06-20 21:40:36 +05:30
Manish Goregaokar
26caaecbb4 Rollup merge of #26432 - steveklabnik:gh26424, r=alexcrichton
Fixes #26424
2015-06-20 21:40:36 +05:30
Manish Goregaokar
d7b1fd3eb1 Rollup merge of #26410 - tshepang:patch-3, r=steveklabnik 2015-06-20 21:40:36 +05:30
bors
2a49444cef Auto merge of #26430 - dhuseby:updating_installer, r=alexcrichton
bumping the dependency on rust-installer to include the recent bitrig fixes.
2015-06-20 15:59:28 +00:00
bors
74a7e8b03e Auto merge of #26417 - brson:feature-err, r=steveklabnik
It now says '#[feature] may not be used on the stable release channel'.

I had to convert this error from a lint to a normal compiler error.

I left the lint previously-used for this in place since removing it is
a breaking change. It will just go unused until the end of time.

Fixes #24125
2015-06-20 14:24:19 +00:00
bors
3e4d1b4dec Auto merge of #26407 - arielb1:paren-binding, r=eddyb
r? @eddyb
2015-06-20 09:44:43 +00:00
bors
7d4d77f1b4 Auto merge of #26305 - Nashenas88:field-method-message-2392, r=eddyb
This fixes #2392

I'd like to thank @eddyb for helping me on this one! I wouldn't have gotten the complicated FnOnce check done without his help.
2015-06-20 08:08:48 +00:00
Michael Sproul
634fced396 diagnostics: Resurrect the Compiler Error Index. 2015-06-20 16:57:40 +10:00
bors
dd2151c701 Auto merge of #26383 - frewsxcv:regression-tests-23649, r=alexcrichton
Closes #23649
2015-06-20 06:31:59 +00:00
Nick Hamann
a6cc4dd308 Add a regression test for #18058.
Fixes #18058.
2015-06-20 01:31:31 -05:00
bors
c057802ca4 Auto merge of #26382 - alexcrichton:less-racy-path, r=brson
Environment variables are global state so this can lead to surprising results if
the driver is called in a multithreaded environment (e.g. doctests). There
shouldn't be any memory corruption that's possible, but a lot of the bots have
been failing because they can't find `cc` or `gcc` in the path during doctests,
and I highly suspect that it is due to the compiler modifying `PATH` in a
multithreaded fashion.

This commit moves the logic for appending to `PATH` to only affect the child
process instead of also affecting the parent, at least for the linking stage.
When loading dynamic libraries the compiler still modifies `PATH` on Windows,
but this may be more difficult to fix than spawning off a new process.
2015-06-20 04:56:46 +00:00
bors
a9515698fa Auto merge of #26200 - brson:relnotes, r=aturon
[Randard](https://github.com/brson/rust/blob/relnotes/RELEASES.md).

I need help identifying language things and highlights, and I am kind of tired of the `~X changes, numerous bugfixes` thing, which was cute for a few years.

cc @aturon @nrc @pnkfelix
2015-06-20 01:17:02 +00:00
Paul Faria
bae1df65aa fixup! Wrapped inferred context changes in a probe, handle fnOnce trait require error with a fallback, renamed variable to something clearer 2015-06-19 21:09:32 -04:00
Paul Faria
973da22ea3 Wrapped inferred context changes in a probe, handle fnOnce trait require error with a fallback, renamed variable to something clearer 2015-06-19 21:08:53 -04:00
Paul Faria
c8a0b0eece Handle error case safely with a fallback 2015-06-19 21:08:20 -04:00
Paul Faria
0230a530ce fixup! Finished implementing proper function check (through FnOnce) and moved tests to new file and updated tests 2015-06-19 21:04:13 -04:00
Paul Faria
9932870833 Finished implementing proper function check (through FnOnce) and moved tests to new file and updated tests 2015-06-19 21:04:12 -04:00
Paul Faria
3f8a70b613 Fixed note message to display expression in recommendations 2015-06-19 21:02:49 -04:00
Paul Faria
9adb3dfdcb Uncomplete fix for #2392 2015-06-19 21:01:39 -04:00
bors
4b42cbd5eb Auto merge of #24527 - nikomatsakis:issue-24085, r=nikomatsakis
Expand the "givens" set to cover transitive relations.  The givens array
stores relationships like `'c <= '0` (where `'c` is a free region and
`'0` is an inference variable) that are derived from closure
arguments. These are (rather hackily) ignored for purposes of inference,
preventing spurious errors. The current code did not handle transitive
cases like `'c <= '0` and `'0 <= '1`. Fixes #24085.

r? @pnkfelix 
cc @bkoropoff

*But* I am not sure whether this fix will have a compile-time hit. I'd like to push to try branch observe cycle times.
2015-06-19 22:56:38 +00:00
Alexis Beingessner
e132f0bc8e add note for future type-system adventurers 2015-06-19 15:03:39 -07:00
Corey Farwell
68bb164429 Add regression tests for #23649
Closes #23649
2015-06-19 14:58:57 -07:00
bors
e4efb47b9d Auto merge of #26351 - eddyb:tls-tcx, r=nikomatsakis
Pre-requisite for splitting the type context into global and local parts.
The `Repr` and `UserString` traits were also replaced by `Debug` and `Display`.
2015-06-19 20:43:14 +00:00
bors
89485b2b6b Auto merge of #26428 - Manishearth:rollup, r=Manishearth
- Successful merges: #26388, #26401, #26414, #26427
- Failed merges:
2015-06-19 16:42:17 +00:00
Philip Munksgaard
4fd04c34cd Add test for #24227 2015-06-19 18:36:54 +02:00
Niko Matsakis
29c86539b3 Expand the "givens" set to cover transitive relations. The givens array
stores relationships like `'c <= '0` (where `'c` is a free region and
`'0` is an inference variable) that are derived from closure
arguments. These are (rather hackily) ignored for purposes of inference,
preventing spurious errors. The current code did not handle transitive
cases like `'c <= '0` and `'0 <= '1`. Fixes #24085.
2015-06-19 12:22:03 -04:00
Steve Klabnik
1620acf3ad Fix docs for column/line
Fixes #26424
2015-06-19 11:22:37 -04:00
Manish Goregaokar
a760d054ef Rollup merge of #26427 - GuillaumeGomez:patch-7, r=Manishearth
See #26396, #26400, #26399, #26398 and #26393.
2015-06-19 17:41:10 +05:30
Manish Goregaokar
812a3f044f Rollup merge of #26414 - alexcrichton:msvc-fix-build, r=brson
Currently all these do is cause linker errors as they try to lower to GNU-like
exception handling, none of which exists with MSVC.
2015-06-19 17:41:09 +05:30
Manish Goregaokar
da55e244a6 Rollup merge of #26401 - jooert:fix26360, r=steveklabnik
Fixes #26360.

r? @steveklabnik
2015-06-19 17:41:09 +05:30
Manish Goregaokar
c16780a3ff Rollup merge of #26388 - frewsxcv:regression-tests-21622, r=alexcrichton
Closes #21622
2015-06-19 17:41:09 +05:30
Guillaume Gomez
9679faa97a Remove error codes from macro 2015-06-19 14:06:33 +02:00
Guillaume Gomez
2015eb881e Replace "Bad example" by a better sentence 2015-06-19 14:05:11 +02:00
Guillaume Gomez
6471dccd3b Add E0016 explanation 2015-06-19 14:03:07 +02:00
Guillaume Gomez
8c5572fc21 Add Universal Function Call Syntax example 2015-06-19 14:01:55 +02:00
Guillaume Gomez
d4c37088ca Add E0034 error explanation 2015-06-19 13:59:51 +02:00
Guillaume Gomez
b4481e68de Remove unneeded indentation 2015-06-19 13:58:52 +02:00
Guillaume Gomez
04888e7c60 Add E0035 error explanation 2015-06-19 13:58:15 +02:00
Guillaume Gomez
00e115d090 Good time concordance 2015-06-19 13:56:53 +02:00
Guillaume Gomez
98205afe0b Add E0036 error explanation 2015-06-19 13:54:57 +02:00
Dave Huseby
ea652351b4 updating installer to fix install issues on bitrig 2015-06-18 23:43:46 -07:00
Brian Anderson
f14a0e2de4 Make a better error message for using #[feature] on stable rust
It now says '#[feature] may not be used on the stable release channel'.

I had to convert this error from a lint to a normal compiler error.

I left the lint previously-used for this in place since removing it is
a breaking change. It will just go unused until the end of time.

Fixes #24125
2015-06-18 17:38:38 -07:00
bors
2f5683913c Auto merge of #26413 - alexcrichton:from-raw-fd-prelude, r=sfackler
These were just left out by mistake!
2015-06-18 23:28:41 +00:00
Alex Crichton
45f830b18c std: Add FromRaw{Fd,Handle,Socket} to os preludes
These were just left out by mistake!
2015-06-18 16:14:50 -07:00
Eduard Burtescu
6eed1662af Remove extra fmt::Debug impl for VtableClosureData from #26147. 2015-06-19 01:45:20 +03:00