]> git.lizzy.rs Git - rust.git/log
rust.git
7 years agoRollup merge of #35911 - tbu-:pr_io_errorkind_traits, r=alexcrichton
Jonathan Turner [Wed, 31 Aug 2016 20:53:33 +0000 (13:53 -0700)]
Rollup merge of #35911 - tbu-:pr_io_errorkind_traits, r=alexcrichton

Implement more traits for `std::io::ErrorKind`

This makes it possible to use it as key in various maps.

7 years agoRollup merge of #35786 - GuillaumeGomez:paths_doc, r=steveklabnik
Jonathan Turner [Wed, 31 Aug 2016 20:53:33 +0000 (13:53 -0700)]
Rollup merge of #35786 - GuillaumeGomez:paths_doc, r=steveklabnik

Improve Path and PathBuf docs

r? @steveklabnik

7 years agoRollup merge of #35773 - EugeneGonzalez:master, r=jonathandturner
Jonathan Turner [Wed, 31 Aug 2016 20:53:33 +0000 (13:53 -0700)]
Rollup merge of #35773 - EugeneGonzalez:master, r=jonathandturner

Change E0259 to the new error format

Fixes #35514 as part of #35233.

Sorry about creating a new PR I was having a lot of troubles squashing the commit because I didn't properly branch the new feature.

r? @GuillaumeGomez

7 years agoAuto merge of #36166 - jonathandturner:rollup, r=jonathandturner
bors [Wed, 31 Aug 2016 16:38:36 +0000 (09:38 -0700)]
Auto merge of #36166 - jonathandturner:rollup, r=jonathandturner

Rollup of 16 pull requests

- Successful merges: #35758, #35926, #36050, #36079, #36085, #36089, #36101, #36130, #36134, #36135, #36136, #36140, #36141, #36147, #36148, #36165
- Failed merges:

7 years agoImprove Path and PathBuf docs
Guillaume Gomez [Thu, 18 Aug 2016 15:50:28 +0000 (17:50 +0200)]
Improve Path and PathBuf docs

7 years agoRollup merge of #36165 - fanzier:fix-typo, r=GuillaumeGomez
Jonathan Turner [Wed, 31 Aug 2016 13:29:12 +0000 (06:29 -0700)]
Rollup merge of #36165 - fanzier:fix-typo, r=GuillaumeGomez

Fix typo in PartialOrd docs

The inline code was formatted incorrectly because of the backtick.

7 years agoRollup merge of #36148 - birryree:E0194_bonus_format, r=jonathandturner
Jonathan Turner [Wed, 31 Aug 2016 13:29:11 +0000 (06:29 -0700)]
Rollup merge of #36148 - birryree:E0194_bonus_format, r=jonathandturner

Bonus format for E0194

Bonus fix for #35280. Part of #35233. Fixes #36057. Adding expanded notes/context for what trait a parameter shadows as part of E0194 error messages.

Errors for E0194 now look like this:

```
$> ./build/x86_64-apple-darwin/stage1/bin/rustc src/test/compile-fail/E0194.rs
error[E0194]: type parameter `T` shadows another type parameter of the same name
  --> src/test/compile-fail/E0194.rs:13:26
   |
11 | trait Foo<T> { //~ NOTE first `T` declared here
   |           - first `T` declared here
12 |     fn do_something(&self) -> T;
13 |     fn do_something_else<T: Clone>(&self, bar: T);
   |                          ^ shadows another type parameter

error: aborting due to previous error
```

r? @jonathandturner

7 years agoRollup merge of #36147 - mikhail-m1:master, r=jonathandturner
Jonathan Turner [Wed, 31 Aug 2016 13:29:11 +0000 (06:29 -0700)]
Rollup merge of #36147 - mikhail-m1:master, r=jonathandturner

update E0265 to new format

Fixes #35309 as part of #35233.
I've describe partially bonus achieve in #35309

r? @jonathandturner

7 years agoRollup merge of #36141 - GuillaumeGomez:err_codes, r=jonathandturner
Jonathan Turner [Wed, 31 Aug 2016 13:29:11 +0000 (06:29 -0700)]
Rollup merge of #36141 - GuillaumeGomez:err_codes, r=jonathandturner

Err codes

r? @jonathandturner

7 years agoRollup merge of #36140 - cristicbz:test-14875, r=nagisa
Jonathan Turner [Wed, 31 Aug 2016 13:29:11 +0000 (06:29 -0700)]
Rollup merge of #36140 - cristicbz:test-14875, r=nagisa

Add test for #14875

You can check this out in the playground https://is.gd/oVKC2T . It will fail on stable, but pass on nightly as @nagisa suggested on the issue.

Fixes #14875

7 years agoRollup merge of #36136 - athulappadan:E0034, r=jonathandturner
Jonathan Turner [Wed, 31 Aug 2016 13:29:10 +0000 (06:29 -0700)]
Rollup merge of #36136 - athulappadan:E0034, r=jonathandturner

Update compiler error 0034 to use new format.

Part of #35233
Addresses #35205

r? @jonathandturner

7 years agoRollup merge of #36135 - 0xmohit:pr/error-code-E0520, r=jonathandturner
Jonathan Turner [Wed, 31 Aug 2016 13:29:10 +0000 (06:29 -0700)]
Rollup merge of #36135 - 0xmohit:pr/error-code-E0520, r=jonathandturner

Update E0520 to new error format

Fixes #36112.
Part of #35233.

r? @jonathandturner

7 years agoRollup merge of #36134 - tshepang:more-simple, r=steveklabnik
Jonathan Turner [Wed, 31 Aug 2016 13:29:10 +0000 (06:29 -0700)]
Rollup merge of #36134 - tshepang:more-simple, r=steveklabnik

doc: make TcpListener example more simple

7 years agoRollup merge of #36130 - frewsxcv:patch-32, r=steveklabnik
Jonathan Turner [Wed, 31 Aug 2016 13:29:10 +0000 (06:29 -0700)]
Rollup merge of #36130 - frewsxcv:patch-32, r=steveklabnik

rustbook chapters/sections should be an ordered list.

7 years agoRollup merge of #36101 - frewsxcv:debug-path-components, r=alexcrichton
Jonathan Turner [Wed, 31 Aug 2016 13:29:09 +0000 (06:29 -0700)]
Rollup merge of #36101 - frewsxcv:debug-path-components, r=alexcrichton

Implement `Debug` for `std::path::{Components,Iter}`.

None

7 years agoRollup merge of #36089 - apasel422:issue-24204, r=alexcrichton
Jonathan Turner [Wed, 31 Aug 2016 13:29:09 +0000 (06:29 -0700)]
Rollup merge of #36089 - apasel422:issue-24204, r=alexcrichton

Add test for #24204

Closes #24204

7 years agoRollup merge of #36085 - apasel422:issue-34053, r=brson
Jonathan Turner [Wed, 31 Aug 2016 13:29:09 +0000 (06:29 -0700)]
Rollup merge of #36085 - apasel422:issue-34053, r=brson

Add test for #34053

Closes #34053

7 years agoRollup merge of #36079 - acrrd:new_format_E0318, r=GuillaumeGomez
Jonathan Turner [Wed, 31 Aug 2016 13:29:09 +0000 (06:29 -0700)]
Rollup merge of #36079 - acrrd:new_format_E0318, r=GuillaumeGomez

Update E0318 to new format

Fixes #35322.
Part of #35233.

r? @GuillaumeGomez

7 years agoRollup merge of #36050 - abhiQmar:e0076-formatting, r=jonathandturner
Jonathan Turner [Wed, 31 Aug 2016 13:29:09 +0000 (06:29 -0700)]
Rollup merge of #36050 - abhiQmar:e0076-formatting, r=jonathandturner

Update compiler error E0076 to use new error format

Fixes #35221 part of #35233

r? @jonathandturner

7 years agoRollup merge of #35926 - matthew-piziak:bit-or-xor-examples, r=GuillaumeGomez
Jonathan Turner [Wed, 31 Aug 2016 13:29:08 +0000 (06:29 -0700)]
Rollup merge of #35926 - matthew-piziak:bit-or-xor-examples, r=GuillaumeGomez

add evocative examples for `BitOr` and `BitXor`

These are exactly equivalent to PR #35809, with one caveat: I do not believe there is a non-bitwise binary XOR operator in Rust, so here it's expressed as `(a || b) && !(a && b)`.

Alternative decompositions are `(a && !b) || (!a && b)` and `(a || b) && (!a || !b)`.  Let me know if you think one of those would be clearer.

r? @GuillaumeGomez

7 years agoRollup merge of #35758 - matthew-piziak:vec-assert-over-println-remaining, r=Guillaum...
Jonathan Turner [Wed, 31 Aug 2016 13:29:08 +0000 (06:29 -0700)]
Rollup merge of #35758 - matthew-piziak:vec-assert-over-println-remaining, r=GuillaumeGomez

accumulate vector and assert for RangeFrom and RangeInclusive examples

PR #35695 for `Range` was merged, so it seems that this side-effect-free style is preferred for Range* examples. This PR performs the same translation for `RangeFrom` and `RangeInclusive`. It also removes what looks to be an erroneously commented line for `#![feature(step_by)]`, and an unnecessary primitive-type annotation in `0u8..`.

7 years agoBonus fix for #35280. Part of #35233. Fixes #36057. Adding expanded notes/context...
William Lee [Tue, 30 Aug 2016 21:30:08 +0000 (17:30 -0400)]
Bonus fix for #35280. Part of #35233. Fixes #36057. Adding expanded notes/context for what trait a parameter shadows as part of E0194 error messages.

7 years agoAuto merge of #35585 - Kha:gdb-qualified, r=michaelwoerister
bors [Wed, 31 Aug 2016 12:51:58 +0000 (05:51 -0700)]
Auto merge of #35585 - Kha:gdb-qualified, r=michaelwoerister

gdb: Fix pretty-printing special-cased Rust types

gdb trunk now reports fully qualified type names, just like lldb. Move lldb code for extracting unqualified names to shared file.

For current releases of gdb, `extract_type_name` should just be a no-op.

Fixes #35155

7 years agoFix typo in PartialOrd docs
Fabian Zaiser [Wed, 31 Aug 2016 11:50:58 +0000 (13:50 +0200)]
Fix typo in PartialOrd docs

7 years agoAuto merge of #34623 - lfairy:repr-conflict, r=Aatch
bors [Wed, 31 Aug 2016 07:40:42 +0000 (00:40 -0700)]
Auto merge of #34623 - lfairy:repr-conflict, r=Aatch

Warn about multiple conflicting #[repr] hints

Closes #34622

7 years agoWarn about multiple conflicting #[repr] hints
Chris Wong [Sun, 3 Jul 2016 03:24:27 +0000 (15:24 +1200)]
Warn about multiple conflicting #[repr] hints

Closes #34622

7 years agoChange E0259 to the new error format
Eugene R Gonzalez [Thu, 18 Aug 2016 01:02:53 +0000 (21:02 -0400)]
Change E0259 to the new error format

Fixed E0259 unit test

Added name of conflict to E0259's note

7 years agoImplement `Debug` for `std::path::Iter`.
Corey Farwell [Tue, 30 Aug 2016 13:29:22 +0000 (09:29 -0400)]
Implement `Debug` for `std::path::Iter`.

7 years agoAuto merge of #35048 - tmiasko:monotonic-wait-timeout, r=alexcrichton
bors [Tue, 30 Aug 2016 23:28:32 +0000 (16:28 -0700)]
Auto merge of #35048 - tmiasko:monotonic-wait-timeout, r=alexcrichton

Use monotonic time in condition variables.

Configure condition variables to use monotonic time using
pthread_condattr_setclock on systems where this is possible.
This fixes the issue when thread waiting on condition variable is
woken up too late when system time is moved backwards.

7 years agoUpdate compiler error E0076 to use new error format
Abhishek Kumar [Sat, 27 Aug 2016 19:42:54 +0000 (01:12 +0530)]
Update compiler error E0076 to use new error format

Fixes #35221 part of #35233

7 years agoupdate E0265 to new format
Mikhail Modin [Tue, 30 Aug 2016 19:46:52 +0000 (22:46 +0300)]
update E0265 to new format

7 years agoadd evocative examples for `BitOr` and `BitXor`
Matthew Piziak [Tue, 23 Aug 2016 15:23:42 +0000 (11:23 -0400)]
add evocative examples for `BitOr` and `BitXor`

These are exactly equivalent to PR #35809, with one caveat: I do not believe there is a non-bitwise binary "xor" operator in Rust, so here it's expressed as (a || b) && !(a && b).

r? @GuillaumeGomez

improved documentation a la PR #35993

7 years agoUpdate E0318 to new format
Andrea Corradi [Sun, 28 Aug 2016 15:55:07 +0000 (17:55 +0200)]
Update E0318 to new format

7 years agoImplement `Debug` for `std::path::Components`.
Corey Farwell [Mon, 29 Aug 2016 11:17:27 +0000 (07:17 -0400)]
Implement `Debug` for `std::path::Components`.

7 years agoAdd new error code tests
ggomez [Tue, 30 Aug 2016 11:13:37 +0000 (13:13 +0200)]
Add new error code tests

7 years agoAdd E0530 error explanation
ggomez [Tue, 30 Aug 2016 10:54:51 +0000 (12:54 +0200)]
Add E0530 error explanation

7 years agoUpdate E0520 to new error format
Mohit Agarwal [Tue, 30 Aug 2016 04:51:27 +0000 (10:21 +0530)]
Update E0520 to new error format

Fixes #36112.
Part of #35233.

r? @jonathandturner

7 years agoAuto merge of #36126 - GuillaumeGomez:rollup, r=GuillaumeGomez
bors [Tue, 30 Aug 2016 13:01:39 +0000 (06:01 -0700)]
Auto merge of #36126 - GuillaumeGomez:rollup, r=GuillaumeGomez

Rollup of 16 pull requests

- Successful merges: #35418, #35759, #35862, #35863, #35895, #35962, #35977, #35993, #35997, #36054, #36056, #36060, #36086, #36100, #36103, #36125
- Failed merges: #35771, #35810

7 years agoadd test for #14875
Cristi Cobzarenco [Tue, 30 Aug 2016 10:01:08 +0000 (11:01 +0100)]
add test for #14875

7 years agoRollup merge of #36125 - gavinb:error_msgs_p1, r=jonathandturner
Guillaume Gomez [Tue, 30 Aug 2016 08:39:08 +0000 (10:39 +0200)]
Rollup merge of #36125 - gavinb:error_msgs_p1, r=jonathandturner

Update Error format for E0164, E0165, E0184

Part of #35233

r? @jonathandturner

7 years agoRollup merge of #36103 - zjhmale:fix-E0089, r=jonathandturner
Guillaume Gomez [Tue, 30 Aug 2016 08:39:08 +0000 (10:39 +0200)]
Rollup merge of #36103 - zjhmale:fix-E0089, r=jonathandturner

Update E0089 to new error format

Fixes #35227.
Part of #35233.

r? @jonathandturner

7 years agoRollup merge of #36100 - 0xmohit:pr/error-code-E0260, r=jonathandturner
Guillaume Gomez [Tue, 30 Aug 2016 08:39:08 +0000 (10:39 +0200)]
Rollup merge of #36100 - 0xmohit:pr/error-code-E0260, r=jonathandturner

Update E0260 to new error format

Updates #35515.
Part of #35233.

r? @jonathandturner

7 years agoRollup merge of #36086 - apasel422:issue-35423, r=alexcrichton
Guillaume Gomez [Tue, 30 Aug 2016 08:39:07 +0000 (10:39 +0200)]
Rollup merge of #36086 - apasel422:issue-35423, r=alexcrichton

Add test for #35423

Closes #35423

7 years agoRollup merge of #36060 - paulfanelli:update-e0463-error-msg, r=jonathandturner
Guillaume Gomez [Tue, 30 Aug 2016 08:39:07 +0000 (10:39 +0200)]
Rollup merge of #36060 - paulfanelli:update-e0463-error-msg, r=jonathandturner

Update E0463 error message to new format

Fixes #35934 as part of #35233

r? @jonathandturner

7 years agoRollup merge of #36056 - birryree:E0194_new_error_format, r=jonathandturner
Guillaume Gomez [Tue, 30 Aug 2016 08:39:07 +0000 (10:39 +0200)]
Rollup merge of #36056 - birryree:E0194_new_error_format, r=jonathandturner

Update E0194 to new error format

Fixes #35280 to update E0194 to support new error message format. Part of #35233.

A separate Github issue #36057 tracks the bonus portion of the original ticket.

r? @jonathandturner

7 years agoRollup merge of #36054 - mikhail-m1:master2, r=jonathandturner
Guillaume Gomez [Tue, 30 Aug 2016 08:39:07 +0000 (10:39 +0200)]
Rollup merge of #36054 - mikhail-m1:master2, r=jonathandturner

update error E0451 to new format

Fixes #35928 as part of #35233.

r? @jonathandturner

7 years agoRollup merge of #35997 - matthew-piziak:thread-current-example, r=GuillaumeGomez
Guillaume Gomez [Tue, 30 Aug 2016 08:39:07 +0000 (10:39 +0200)]
Rollup merge of #35997 - matthew-piziak:thread-current-example, r=GuillaumeGomez

add a simple example for `thread::current()`

r? @GuillaumeGomez

7 years agoRollup merge of #35993 - matthew-piziak:bitwise-and-redux, r=GuillaumeGomez
Guillaume Gomez [Tue, 30 Aug 2016 08:39:06 +0000 (10:39 +0200)]
Rollup merge of #35993 - matthew-piziak:bitwise-and-redux, r=GuillaumeGomez

improve `BitAnd` trait documentation

This pull request is based on the discussion in PR #35927.

Add a module-level note that `&&` and `||` are short-circuiting operators and not overloadable.

Add a simple `Scalar` example that lifts the `&` operator to a trivial struct tuple.

Make `BooleanVector` a struct tuple.

Derive `PartialEq` for `BooleanVector` instead of implementing it.

Adds a `fn main` wrapper so that the example can integrate with Rust Playground.

7 years agoRollup merge of #35977 - frewsxcv:usize-isize, r=eddyb
Guillaume Gomez [Tue, 30 Aug 2016 08:39:06 +0000 (10:39 +0200)]
Rollup merge of #35977 - frewsxcv:usize-isize, r=eddyb

Rename {int,uint} methods to {isize,usize}.

None

7 years agoRollup merge of #35962 - regexident:compiler-plugin-docs, r=steveklabnik
Guillaume Gomez [Tue, 30 Aug 2016 08:39:06 +0000 (10:39 +0200)]
Rollup merge of #35962 - regexident:compiler-plugin-docs, r=steveklabnik

Updated code sample in chapter on syntax extensions.

The affected API apparently had changed with commit d59accfb065843d12db9180a4f504664e3d23ef1.

---

Further more I had to add

```toml
[lib]
name = "roman_numerals"
crate-type = ["dylib"]
```

to `Cargo.toml` as I otherwise got this compiler error (despite `#![crate_type="dylib"]`):

    [E0457]: plugin `roman_numerals` only found in rlib format, but must be available in dylib format

Might be worth adding a note about that?

7 years agoRollup merge of #35895 - F001:patch-1, r=steveklabnik
Guillaume Gomez [Tue, 30 Aug 2016 08:39:06 +0000 (10:39 +0200)]
Rollup merge of #35895 - F001:patch-1, r=steveklabnik

Fix documentation in cell mod

The implementation of Rc type in this doc is outdated.

7 years agoRollup merge of #35863 - matthew-piziak:shl-example, r=steveklabnik
Guillaume Gomez [Tue, 30 Aug 2016 08:39:06 +0000 (10:39 +0200)]
Rollup merge of #35863 - matthew-piziak:shl-example, r=steveklabnik

add evocative examples for `Shl` and `Shr`

r? @steveklabnik

7 years agoRollup merge of #35862 - Stebalien:fmt-docs, r=steveklabnik
Guillaume Gomez [Tue, 30 Aug 2016 08:39:05 +0000 (10:39 +0200)]
Rollup merge of #35862 - Stebalien:fmt-docs, r=steveklabnik

Clarify/fix formatting docs concerning fmt::Result/fmt::Error

1. `fmt::Result` != `io::Result<()>`
2. Formatters should only propagate errors, not return their own.

Confusion on reddit: https://www.reddit.com/r/rust/comments/4yorxr/is_implt_tostring_for_t_where_t_display_sized_a/

7 years agoRollup merge of #35810 - matthew-piziak:fn-trait-example, r=steveklabnik
Guillaume Gomez [Tue, 30 Aug 2016 08:39:05 +0000 (10:39 +0200)]
Rollup merge of #35810 - matthew-piziak:fn-trait-example, r=steveklabnik

improve documentation for `Fn*` traits

This PR is not yet a serious attempt at contribution. Rather, I'm opening this for discussion. I can think of a few things we may want to accomplish with the documentation of the `Fn`, `FnMut`, and `FnOnce` traits:
- the relationship between these traits and the closures that implement them
- examples of non-closure implementations
- the relationship between these traits and Rust's ownership semantics

7 years agoRollup merge of #35771 - matthew-piziak:range-inclusive-example-error, r=steveklabnik
Guillaume Gomez [Tue, 30 Aug 2016 08:39:05 +0000 (10:39 +0200)]
Rollup merge of #35771 - matthew-piziak:range-inclusive-example-error, r=steveklabnik

show how iterating over `RangeTo` and `RangeToInclusive` fails

Feedback on PR #35701 seems to be positive, so this does the same thing for `RangeTo` and `RangeToInclusive`.

7 years agoRollup merge of #35418 - birkenfeld:patch-1, r=aturon
Guillaume Gomez [Tue, 30 Aug 2016 08:39:05 +0000 (10:39 +0200)]
Rollup merge of #35418 - birkenfeld:patch-1, r=aturon

Doc: explain why Box/Rc/Arc methods do not take self

This can be confusing for newcomers, especially due to the argument name `this` that is used for Rc and Arc.

7 years agoAuto merge of #36066 - jseyfried:rollup, r=Manishearth
bors [Tue, 30 Aug 2016 07:36:19 +0000 (00:36 -0700)]
Auto merge of #36066 - jseyfried:rollup, r=Manishearth

Batch up libsyntax breaking changes

Batch of the following syntax-[breaking-change] changes:
 - #35591: Add a field `span: Span` to `ast::Generics`.
 - #35618: Remove variant `Mod` of `ast::PathListItemKind` and refactor the remaining variant `ast::PathListKind::Ident` to a struct `ast::PathListKind_`.
 - #35480: Change uses of `Constness` in the AST to `Spanned<Constness>`.
  - c.f. `MethodSig`, `ItemKind`
 - #35728: Refactor `cx.pat_enum()` into `cx.pat_tuple_struct()` and `cx.pat_path()`.
 - #35850: Generalize the elements of lists in attributes from `MetaItem` to a new type `NestedMetaItem` that can represent a `MetaItem` or a literal.
 - #35917: Remove traits `AttrMetaMethods`, `AttributeMethods`, and `AttrNestedMetaItemMethods`.
  - Besides removing imports of these traits, this won't cause fallout.
 - Add a variant `Union` to `ItemKind` to future proof for `union` (c.f. #36016).
 - Remove inherent methods `attrs` and `fold_attrs` of `Annotatable`.
  - Use methods `attrs` and `map_attrs` of `HasAttrs` instead.

r? @Manishearth

7 years agoFuture proof `libsyntax_ext` for `union`.
Jeffrey Seyfried [Mon, 29 Aug 2016 11:14:25 +0000 (11:14 +0000)]
Future proof `libsyntax_ext` for `union`.

7 years agoUpdate compiler error 0034 to use new format.
athulappadan [Tue, 30 Aug 2016 04:59:24 +0000 (10:29 +0530)]
Update compiler error 0034 to use new format.

7 years agodoc: make TcpListener example more simple
Tshepang Lekhonkhobe [Tue, 30 Aug 2016 04:42:56 +0000 (06:42 +0200)]
doc: make TcpListener example more simple

7 years agorustbook chapters/sections should be an ordered list.
Corey Farwell [Tue, 30 Aug 2016 03:35:50 +0000 (23:35 -0400)]
rustbook chapters/sections should be an ordered list.

7 years agoAuto merge of #36117 - eddyb:llvm-hoist-meta, r=alexcrichton
bors [Tue, 30 Aug 2016 00:01:09 +0000 (17:01 -0700)]
Auto merge of #36117 - eddyb:llvm-hoist-meta, r=alexcrichton

llvm: backport "[SimplifyCFG] Hoisting invalidates metadata".

Fixes #36023 by backporting @majnemer's LLVM patch fixing [the LLVM bug](https://llvm.org/bugs/show_bug.cgi?id=29163.) where SimplifyCFG hoisted instructions andkept their metadata (conditional `!nonnull` loads could kill a null check later if hoisted).

r? @alexcrichton

7 years agoE0184 Update error format #35275
Gavin Baker [Mon, 29 Aug 2016 03:05:06 +0000 (13:05 +1000)]
E0184 Update error format #35275

- Fixes #35275
- Part of #35233

r? @jonathandturner

7 years agoE0165 Update error format #35270
Gavin Baker [Mon, 29 Aug 2016 02:52:02 +0000 (12:52 +1000)]
E0165 Update error format #35270

- Fixes #35270
- Part of #35233

r? @jonathandturner

7 years agoE0164 Update error format #35269
Gavin Baker [Mon, 29 Aug 2016 01:55:30 +0000 (11:55 +1000)]
E0164 Update error format #35269

- Fixes #35269
- Part of #35233

r? @jonathandturner

7 years agollvm: backport "[SimplifyCFG] Hoisting invalidates metadata".
Eduard Burtescu [Mon, 29 Aug 2016 19:53:18 +0000 (22:53 +0300)]
llvm: backport "[SimplifyCFG] Hoisting invalidates metadata".

7 years agoAuto merge of #36080 - japaric:systemz, r=alexcrichton
bors [Mon, 29 Aug 2016 19:48:21 +0000 (12:48 -0700)]
Auto merge of #36080 - japaric:systemz, r=alexcrichton

build llvm with systemz backend enabled, and link to related libraries

when building rust against system llvm

closes #36077

r? @alexcrichton

7 years agoUpdate E0089 to new error format
zjhmale [Mon, 29 Aug 2016 14:31:08 +0000 (22:31 +0800)]
Update E0089 to new error format

7 years agoUpdate E0463 error message to new format
Paul Fanelli [Sun, 28 Aug 2016 00:38:04 +0000 (00:38 +0000)]
Update E0463 error message to new format

7 years agoUpdate E0260 to new error format
Mohit Agarwal [Mon, 29 Aug 2016 10:50:08 +0000 (16:20 +0530)]
Update E0260 to new error format

Updates #35515.
Part of #35233.

r? @jonathandturner

7 years agoAvoid using pthread_condattr_setclock on Android.
Tomasz Miąsko [Mon, 29 Aug 2016 08:53:12 +0000 (10:53 +0200)]
Avoid using pthread_condattr_setclock on Android.

The pthread_condattr_setclock is available only since
Android 5.0 and API level 21.

7 years agoupdate error E0451 to new format
Mikhail Modin [Sat, 27 Aug 2016 20:28:38 +0000 (23:28 +0300)]
update error E0451 to new format

7 years agoFix merge conflicts.
Jeffrey Seyfried [Sun, 28 Aug 2016 11:18:58 +0000 (11:18 +0000)]
Fix merge conflicts.

7 years agoRemove inherent methods `Annotatable::attrs` and `Annotatable::fold_attrs`.
Jeffrey Seyfried [Sun, 28 Aug 2016 10:52:03 +0000 (10:52 +0000)]
Remove inherent methods `Annotatable::attrs` and `Annotatable::fold_attrs`.

7 years agoFuture proof the AST for `union`.
Jeffrey Seyfried [Mon, 29 Aug 2016 05:04:31 +0000 (05:04 +0000)]
Future proof the AST for `union`.

7 years agoAuto merge of #36062 - japaric:smarter-submodules, r=alexcrichton
bors [Mon, 29 Aug 2016 04:57:51 +0000 (21:57 -0700)]
Auto merge of #36062 - japaric:smarter-submodules, r=alexcrichton

rustbuild: smarter `git submodule`-ing

With this commit, if one bootstraps rust against system llvm then the
src/llvm submodule is not updated/checked-out. This saves considerable
network bandwith when starting from a fresh clone of rust-lang/rust as
the llvm submodule is never cloned.

cc #30107

r? @alexcrichton
cc @petevine

~~We could also avoid updating the jemalloc submodule if --disable-jemalloc is used. It just hasn't been implemented.~~ Done

This probably doesn't handle "recursive" submodules correctly but I think we don't have any of those right now.

I'm still testing a bootstrap but already confirmed that the llvm submodule doesn't get updated when `--llvm-root` is passed to `configure`.

7 years agofix tidy error
Jorge Aparicio [Mon, 29 Aug 2016 03:13:35 +0000 (22:13 -0500)]
fix tidy error

7 years agoAdd test for #24204
Andrew Paseltiner [Sun, 28 Aug 2016 23:28:31 +0000 (19:28 -0400)]
Add test for #24204

Closes #24204

7 years agoAdd test for #35423
Andrew Paseltiner [Sun, 28 Aug 2016 23:16:13 +0000 (19:16 -0400)]
Add test for #35423

Closes #35423

7 years agoAuto merge of #36059 - CryZe:improved-demangling, r=alexcrichton
bors [Sun, 28 Aug 2016 23:13:16 +0000 (16:13 -0700)]
Auto merge of #36059 - CryZe:improved-demangling, r=alexcrichton

Improve Demangling of Rust Symbols

This turns `..` into `::`, handles some more escapes and gets rid of unwanted underscores at the beginning of path elements.

![Image of Diff](http://puu.sh/qQIN3.png)

7 years agoAdd test for #34053
Andrew Paseltiner [Sun, 28 Aug 2016 23:10:12 +0000 (19:10 -0400)]
Add test for #34053

Closes #34053

7 years agoAuto merge of #36029 - KiChjang:issue-12033, r=arielb1
bors [Sun, 28 Aug 2016 20:16:47 +0000 (13:16 -0700)]
Auto merge of #36029 - KiChjang:issue-12033, r=arielb1

Fix lifetime rules for 'if' conditions

Fixes #12033.

Changes the temporary scope rules to make the condition of an if-then-else a terminating scope. This is a [breaking-change].

7 years agobuild llvm with systemz backend enabled, and link to related libraries
Jorge Aparicio [Sun, 28 Aug 2016 18:18:28 +0000 (13:18 -0500)]
build llvm with systemz backend enabled, and link to related libraries

when building rust against system llvm

closes #36077

7 years agoAuto merge of #35984 - jonas-schievink:reproducible-builds, r=eddyb
bors [Sun, 28 Aug 2016 17:19:52 +0000 (10:19 -0700)]
Auto merge of #35984 - jonas-schievink:reproducible-builds, r=eddyb

Steps towards reproducible builds

cc #34902

Running `make dist` twice will result in a rustc tarball where only `librustc_back.so`, `librustc_llvm.so` and `librustc_trans.so` differ. Building `libstd` and `libcore` twice with the same compiler and flags produces identical artifacts.

The third commit should close #24473

7 years agoAuto merge of #36058 - apasel422:tests, r=alexcrichton
bors [Sun, 28 Aug 2016 14:28:20 +0000 (07:28 -0700)]
Auto merge of #36058 - apasel422:tests, r=alexcrichton

Add tests for #20433, #26251, #28625, #33687

Closes #20433
Closes #26251
Closes #28625
Closes #33687

7 years agoRevert changes to the reproducible-builds test
Jonas Schievink [Sun, 28 Aug 2016 13:37:37 +0000 (15:37 +0200)]
Revert changes to the reproducible-builds test

7 years agoRollup merge of #35917 - jseyfried:remove_attr_ext_traits, r=nrc
Jeffrey Seyfried [Sun, 28 Aug 2016 10:40:04 +0000 (10:40 +0000)]
Rollup merge of #35917 - jseyfried:remove_attr_ext_traits, r=nrc

syntax: Remove traits `AttrMetaMethods`, `AttributeMethods`, and `AttrNestedMetaItemMethods`

7 years agoRollup merge of #35850 - SergioBenitez:master, r=nrc
Jeffrey Seyfried [Sun, 28 Aug 2016 10:38:19 +0000 (10:38 +0000)]
Rollup merge of #35850 - SergioBenitez:master, r=nrc

Implement RFC#1559: allow all literals in attributes

Implemented rust-lang/rfcs#1559, tracked by #34981.

7 years agoRollup merge of #35728 - petrochenkov:empderive, r=manishearth
Jeffrey Seyfried [Sun, 28 Aug 2016 10:34:44 +0000 (10:34 +0000)]
Rollup merge of #35728 - petrochenkov:empderive, r=manishearth

Fix #[derive] for empty tuple structs/variants

This was missing from https://github.com/rust-lang/rust/pull/35138

7 years agoRollup merge of #35480 - KiChjang:e0379-bonus, r=nikomatsakis
Jeffrey Seyfried [Sun, 28 Aug 2016 10:32:45 +0000 (10:32 +0000)]
Rollup merge of #35480 - KiChjang:e0379-bonus, r=nikomatsakis

Move E0379 check from typeck to ast validation

Part of #35233.
Extension of #35338, #35364.
Fixes #35404.

7 years agoRollup merge of #35618 - jseyfried:ast_view_path_refactor, r=eddyb
Jeffrey Seyfried [Sun, 28 Aug 2016 10:31:15 +0000 (10:31 +0000)]
Rollup merge of #35618 - jseyfried:ast_view_path_refactor, r=eddyb

Refactor `PathListItem`s

This refactors away variant `Mod` of `ast::PathListItemKind` and refactors the remaining variant `Ident` to a struct `ast::PathListItem_`.

7 years agoRollup merge of #35591 - GuillaumeGomez:generics_span, r=jntrmr
Jeffrey Seyfried [Sun, 28 Aug 2016 10:30:01 +0000 (10:30 +0000)]
Rollup merge of #35591 - GuillaumeGomez:generics_span, r=jntrmr

Add Span field for Generics structs

7 years agoAuto merge of #36055 - japaric:rustbuild-no-filecheck, r=alexcrichton
bors [Sun, 28 Aug 2016 10:28:38 +0000 (03:28 -0700)]
Auto merge of #36055 - japaric:rustbuild-no-filecheck, r=alexcrichton

rustbuild: skip filecheck check if codegen tests are disabled

to match the behavior of the old Makefile-based build system

closes #35752

r? @alexcrichton

7 years agoAuto merge of #36028 - japaric:s390x, r=alexcrichton
bors [Sun, 28 Aug 2016 07:36:16 +0000 (00:36 -0700)]
Auto merge of #36028 - japaric:s390x, r=alexcrichton

initial support for s390x

A new target, `s390x-unknown-linux-gnu`, has been added to the compiler
and can be used to build no_core/no_std Rust programs.

Known limitations:

- librustc_trans/cabi_s390x.rs is missing. This means no support for
  `extern "C" fn`.
- No support for this arch in libc. This means std can't be cross
  compiled for this target.

r? @alexcrichton

This time I couldn't test running a binary cross compiled to this target under QEMU because the qemu-s390x that ships with Ubuntu 16.04 SIGABRTs with every s390x binary I run it with.

Change in binary size of `librustc_llvm.so`:

Without this commit (stage1): 41895736 bytes
With this commit (stage1): 42899016 bytes

~2.4% increase

7 years agoAdd UI test for E0379
Keith Yeung [Fri, 12 Aug 2016 22:47:42 +0000 (15:47 -0700)]
Add UI test for E0379

7 years agoChange Constness to Spanned<Constness>
Keith Yeung [Wed, 10 Aug 2016 23:20:12 +0000 (16:20 -0700)]
Change Constness to Spanned<Constness>

7 years agoMove E0379 check from typeck to ast validation
Keith Yeung [Sun, 7 Aug 2016 21:33:35 +0000 (14:33 -0700)]
Move E0379 check from typeck to ast validation

7 years agoAuto merge of #36027 - eddyb:unsized-prefix, r=nagisa
bors [Sun, 28 Aug 2016 04:20:28 +0000 (21:20 -0700)]
Auto merge of #36027 - eddyb:unsized-prefix, r=nagisa

rustc_trans: don't round up the DST prefix size to its alignment.

Fixes #35815 by using `ty::layout` and `min_size` to compute the size of the DST prefix.
`ty::layout::Struct::min_size` is not rounded up to alignment, which could be smaller for the DST field.

7 years agodon't update the src/jemalloc submodule is jemalloc has been disabled
Jorge Aparicio [Sun, 28 Aug 2016 03:53:19 +0000 (22:53 -0500)]
don't update the src/jemalloc submodule is jemalloc has been disabled

i.e. via the --disable-jemalloc configure flag

7 years agodon't run codegen tests when they have been disabled
Jorge Aparicio [Sun, 28 Aug 2016 03:14:29 +0000 (22:14 -0500)]
don't run codegen tests when they have been disabled