]> git.lizzy.rs Git - rust.git/log
rust.git
7 years agoMerge branch 'master' into issue-30961
Cameron Hart [Sat, 6 Aug 2016 05:50:48 +0000 (15:50 +1000)]
Merge branch 'master' into issue-30961

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 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 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 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 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

7 years agoUpdate E0124 to the new error format
Samuel Cormier-Iijima [Thu, 4 Aug 2016 19:09:15 +0000 (15:09 -0400)]
Update E0124 to the new error format

7 years agoAuto merge of #35300 - eddyb:mir-neg-overflow, r=arielb1
bors [Thu, 4 Aug 2016 18:51:27 +0000 (11:51 -0700)]
Auto merge of #35300 - eddyb:mir-neg-overflow, r=arielb1

rustc_trans: don't Assert(Overflow(Neg)) when overflow checks are off.

Generic functions using `Neg` on primitive types would panic even in release mode, with MIR trans.
The solution is a bit hacky, as I'm checking the message, since there's no dedicated `CheckedUnOp`.

Blocks Servo rustup ([failure #1](http://build.servo.org/builders/linux-rel/builds/2477/steps/test_3/logs/stdio), [failure #2](http://build.servo.org/builders/mac-rel-css/builds/2364/steps/test/logs/stdio)) - this should be the last hurdle, it affects only one test.

7 years agorustc_trans: don't Assert(Overflow(Neg)) when overflow checks are off.
Eduard Burtescu [Thu, 4 Aug 2016 16:57:57 +0000 (19:57 +0300)]
rustc_trans: don't Assert(Overflow(Neg)) when overflow checks are off.

7 years agoE0110 update error format
Chris Stankus [Thu, 4 Aug 2016 15:47:39 +0000 (10:47 -0500)]
E0110 update error format

7 years agoUpdated E0071 to new format.
Federico Ravasio [Wed, 3 Aug 2016 20:13:07 +0000 (22:13 +0200)]
Updated E0071 to new format.

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

7 years agoChanging label to "this is an..."
saml [Thu, 4 Aug 2016 15:22:02 +0000 (11:22 -0400)]
Changing label to "this is an..."

7 years agoSet label for unreachable pattern
saml [Thu, 4 Aug 2016 14:42:01 +0000 (10:42 -0400)]
Set label for unreachable pattern

Part of #35233
Fixes #35190

r? @jonathandturner

7 years agoUpdate error message E0178
Adam Medziński [Thu, 4 Aug 2016 14:24:39 +0000 (16:24 +0200)]
Update error message E0178

7 years agoUpdate error message for E0172
Roy Brunton [Thu, 4 Aug 2016 14:13:46 +0000 (15:13 +0100)]
Update error message for E0172

7 years agoUpdate E0079 to new format
Yossi Konstantinovsky [Thu, 4 Aug 2016 13:19:52 +0000 (16:19 +0300)]
Update E0079 to new format

7 years agoRemoving trailing whitespace leftover from last re-formatting commit
William Lee [Thu, 4 Aug 2016 12:28:48 +0000 (08:28 -0400)]
Removing trailing whitespace leftover from last re-formatting commit

7 years agoTidying up some of the line spacing / code formatting for NOTE/ERROR annotation to...
William Lee [Thu, 4 Aug 2016 12:07:14 +0000 (08:07 -0400)]
Tidying up some of the line spacing / code formatting for NOTE/ERROR annotation to match other files.

7 years agoAdd new error code tests
Guillaume Gomez [Wed, 3 Aug 2016 23:51:52 +0000 (01:51 +0200)]
Add new error code tests

7 years agoAuto merge of #35168 - scottcarr:deaggregation, r=nikomatsakis
bors [Thu, 4 Aug 2016 10:01:37 +0000 (03:01 -0700)]
Auto merge of #35168 - scottcarr:deaggregation, r=nikomatsakis

[MIR] Deaggregate structs to enable further optimizations

Currently, we generate MIR like:

```
tmp0 = ...;
tmp1 = ...;
tmp3 = Foo { a: ..., b: ... };
```

This PR implements "deaggregation," i.e.:

```
tmp3.0 = ...
tmp3.1 = ...
```

Currently, the code only deaggregates structs, not enums.  My understanding is that we do not have MIR to set the discriminant of an enum.

7 years agoAuto merge of #35015 - petrochenkov:forearg, r=nikomatsakis
bors [Thu, 4 Aug 2016 05:56:33 +0000 (22:56 -0700)]
Auto merge of #35015 - petrochenkov:forearg, r=nikomatsakis

Properly enforce the "patterns aren't allowed in foreign functions" rule

Cases like `arg @ PATTERN` or `mut arg` were missing.
Apply the same rule to function pointer types.

Closes https://github.com/rust-lang/rust/issues/35203
[breaking-change], no breakage in sane code is expected though
r? @nikomatsakis

This is somewhat related to https://github.com/rust-lang/rfcs/pull/1685 (cc @matklad).
The goal is to eventually support full pattern syntax where it makes sense (function body may present) and to support *only* the following forms - `TYPE`, `ident: TYPE`, `_: TYPE` - where patterns don't make sense (function body doesn't present), i.e. in foreign functions and function pointer types.

7 years agoFixes for issues #35215 and #35216
William Lee [Thu, 4 Aug 2016 04:32:49 +0000 (00:32 -0400)]
Fixes for issues #35215 and #35216

7 years agoUpdate wording on E0080
Shantanu Raj [Thu, 4 Aug 2016 02:01:06 +0000 (07:31 +0530)]
Update wording on E0080

Change "attempted" to "attempt"

7 years agoAuto merge of #34520 - Manishearth:fix-unsafecell-docs, r=steveklabnik
bors [Thu, 4 Aug 2016 01:59:47 +0000 (18:59 -0700)]
Auto merge of #34520 - Manishearth:fix-unsafecell-docs, r=steveklabnik

Clarify UnsafeCell docs; fix #34496

None

7 years agoUpdate error message for E0109
Chris Stankus [Wed, 3 Aug 2016 23:00:52 +0000 (18:00 -0500)]
Update error message for E0109

7 years agoAdd note test for E0132
Guillaume Gomez [Wed, 3 Aug 2016 21:13:48 +0000 (23:13 +0200)]
Add note test for E0132

7 years agoAdd link to replacement function
Stefan Schindler [Wed, 3 Aug 2016 11:34:49 +0000 (13:34 +0200)]
Add link to replacement function

7 years agoAdd an example to `std::thread::park_timeout`
Stefan Schindler [Wed, 3 Aug 2016 11:30:28 +0000 (13:30 +0200)]
Add an example to `std::thread::park_timeout`

7 years agoUpdate E0132 to new format
Guillaume Gomez [Wed, 3 Aug 2016 18:42:42 +0000 (20:42 +0200)]
Update E0132 to new format

7 years agoAdd span method for hir::Generics struct
Guillaume Gomez [Wed, 3 Aug 2016 18:42:05 +0000 (20:42 +0200)]
Add span method for hir::Generics struct

7 years agoAuto merge of #35261 - eddyb:llvm-autoupgrade, r=nikomatsakis
bors [Wed, 3 Aug 2016 20:24:53 +0000 (13:24 -0700)]
Auto merge of #35261 - eddyb:llvm-autoupgrade, r=nikomatsakis

Support removed LLVM intrinsics by invoking its AutoUpgrade mechanism.

Turns out that LLVM sometimes renames platform intrinsics or replaces them with first-class instructions.
For example, signed minimum became `select (icmp SLT, a, b), a, b` where `a` and `b` are vectors.

This is blocking the Servo rustup ([relevant failure](http://build.servo.org/builders/windows-dev/builds/226/steps/compile/logs/stdio)), as they're using a few such intrinsics.
The fix in this PR is to invoke LLVM's own `AutoUpgrade` mechanism to do the replacements.

7 years agoSupport removed LLVM intrinsics by invoking its AutoUpgrade mechanism.
Eduard Burtescu [Wed, 3 Aug 2016 19:37:57 +0000 (22:37 +0300)]
Support removed LLVM intrinsics by invoking its AutoUpgrade mechanism.

7 years agoreduce rightward drift, add precondition comment
Scott A Carr [Wed, 3 Aug 2016 18:10:38 +0000 (11:10 -0700)]
reduce rightward drift, add precondition comment

7 years agoAuto merge of #35174 - arielb1:llvm-type-audit, r=eddyb
bors [Wed, 3 Aug 2016 14:52:08 +0000 (07:52 -0700)]
Auto merge of #35174 - arielb1:llvm-type-audit, r=eddyb

Audit C++ types in rustllvm

cc @eddyb

Fixes #35131

7 years agofinish type-auditing rustllvm
Ariel Ben-Yehuda [Tue, 2 Aug 2016 21:25:19 +0000 (00:25 +0300)]
finish type-auditing rustllvm

7 years agosplit the FFI part of rustc_llvm to rustc_llvm::ffi
Ariel Ben-Yehuda [Tue, 2 Aug 2016 20:10:10 +0000 (23:10 +0300)]
split the FFI part of rustc_llvm to rustc_llvm::ffi

7 years agobegin auditing the C++ types in RustWrapper
Ariel Ben-Yehuda [Mon, 1 Aug 2016 23:35:09 +0000 (02:35 +0300)]
begin auditing the C++ types in RustWrapper

7 years agoaudit LLVM C++ types in ArchiveWrapper and PassWrapper
Ariel Ben-Yehuda [Mon, 1 Aug 2016 21:16:16 +0000 (00:16 +0300)]
audit LLVM C++ types in ArchiveWrapper and PassWrapper

7 years agoremove the ExecutionEngine binding
Ariel Ben-Yehuda [Mon, 1 Aug 2016 18:43:57 +0000 (21:43 +0300)]
remove the ExecutionEngine binding

the code has no tests and will just bitrot by itself.

this is a [breaking-change]

7 years agoAdd doc examples for FileType struct
Guillaume Gomez [Wed, 27 Jul 2016 18:55:14 +0000 (20:55 +0200)]
Add doc examples for FileType struct

7 years agoAuto merge of #35178 - m4b:fix-relx-musl, r=alexcrichton
bors [Wed, 3 Aug 2016 09:23:29 +0000 (02:23 -0700)]
Auto merge of #35178 - m4b:fix-relx-musl, r=alexcrichton

Add -mrelax-relocations=no hacks to fix musl build

* this is just a start, dunno if it will work, but I'll just push it out to get feedback (my rust is still building :cry:)
* I don't know much about rustbuild, so i just added that flag in there. it's a total hack, don't judge me
* I suspect the places in the musl .mk files are sufficient (but we may also need it present when building std), I'm not sure, needs more testing.

7 years agoAuto merge of #35176 - japaric:no-atomics, r=alexcrichton
bors [Wed, 3 Aug 2016 06:32:31 +0000 (23:32 -0700)]
Auto merge of #35176 - japaric:no-atomics, r=alexcrichton

core: fix `cargo build` for targets with "max-atomic-width": 0

This crate was failing to compile due to dead_code/unused_imports
warnings. This commits disables these two lints for these targets.

---

r? @alexcrichton
cc @Amanieu is `cfg(target_has_atomic = "8")` the right `cfg` to use? I think that all targets that support some form of atomics will at a minimum support byte level atomics.

FWIW, the only thing that's left in `sync::atomic` for these targets is `Ordering` and the `fence` function.

7 years agoAuto merge of #35159 - michaelwoerister:incr-comp-implies-orbit, r=nikomatsakis
bors [Wed, 3 Aug 2016 03:25:50 +0000 (20:25 -0700)]
Auto merge of #35159 - michaelwoerister:incr-comp-implies-orbit, r=nikomatsakis

Automatically enable -Zorbit if -Zincremental is specified.

Fixes #34973

r? @nikomatsakis

7 years agoAuto merge of #35197 - eddyb:mir-cross-crate, r=nikomatsakis
bors [Tue, 2 Aug 2016 23:13:55 +0000 (16:13 -0700)]
Auto merge of #35197 - eddyb:mir-cross-crate, r=nikomatsakis

rustc_trans: don't lose the cross-crate DefId, MIR trans needs it.

We might have been missing out on some issues because MIR trans was never being used cross-crate.

cc @rust-lang/compiler

7 years agoProperly enforce the "patterns aren't allowed in foreign functions" check
Vadim Petrochenkov [Sat, 16 Jul 2016 21:15:15 +0000 (00:15 +0300)]
Properly enforce the "patterns aren't allowed in foreign functions" check

Apply the same check to function pointer types

7 years agorustc_trans: don't lose the cross-crate DefId, MIR trans needs it.
Eduard Burtescu [Tue, 2 Aug 2016 22:25:34 +0000 (01:25 +0300)]
rustc_trans: don't lose the cross-crate DefId, MIR trans needs it.

7 years agorun mir opt test with mir-opt-level=3 so they fire
Scott A Carr [Tue, 2 Aug 2016 21:47:53 +0000 (14:47 -0700)]
run mir opt test with mir-opt-level=3 so they fire

7 years agoMove the E0130 check to AST validation pass
Vadim Petrochenkov [Sat, 16 Jul 2016 21:15:15 +0000 (00:15 +0300)]
Move the E0130 check to AST validation pass

7 years agoUpdate the-stack-and-the-heap.md
mLuby [Tue, 2 Aug 2016 21:08:19 +0000 (14:08 -0700)]
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 agoAutomatically enable -Zorbit if -Zincremental is specified.
Michael Woerister [Mon, 1 Aug 2016 09:56:51 +0000 (05:56 -0400)]
Automatically enable -Zorbit if -Zincremental is specified.

7 years agoAuto merge of #35187 - alexcrichton:only-orbit-off-stage1-and-two, r=eddyb
bors [Tue, 2 Aug 2016 20:10:27 +0000 (13:10 -0700)]
Auto merge of #35187 - alexcrichton:only-orbit-off-stage1-and-two, r=eddyb

mk: Only pass -Zorbit=off in stage1/2

The stage0 compiler doesn't understand this option.

7 years agomk: Only pass -Zorbit=off in stage1/2
Alex Crichton [Tue, 2 Aug 2016 20:06:43 +0000 (13:06 -0700)]
mk: Only pass -Zorbit=off in stage1/2

The stage0 compiler doesn't understand this option.

7 years agocore: fix `cargo build` for targets with "max-atomic-width": 0
Jorge Aparicio [Tue, 2 Aug 2016 06:40:18 +0000 (01:40 -0500)]
core: fix `cargo build` for targets with "max-atomic-width": 0

This crate was failing to compile due to dead_code/unused_imports
warnings. This commits disables these two lints for these targets.

7 years agoadd hashtag to emphasis its a gh issue
Scott A Carr [Tue, 2 Aug 2016 19:30:57 +0000 (12:30 -0700)]
add hashtag to emphasis its a gh issue

7 years agoAdd doc example for Vec
Guillaume Gomez [Tue, 2 Aug 2016 01:28:13 +0000 (03:28 +0200)]
Add doc example for Vec

7 years agofix field type, add test
Scott A Carr [Tue, 2 Aug 2016 18:24:55 +0000 (11:24 -0700)]
fix field type, add test

7 years agoreduce rightward drift, add fixme
Scott A Carr [Tue, 2 Aug 2016 17:46:26 +0000 (10:46 -0700)]
reduce rightward drift, add fixme

7 years agoFix style issues
m4b [Tue, 2 Aug 2016 16:54:05 +0000 (09:54 -0700)]
Fix style issues