]>
git.lizzy.rs Git - rust.git/log
Jonathan Turner [Wed, 31 Aug 2016 20:53:34 +0000 (13:53 -0700)]
Rollup merge of #36098 - king6cong:master, r=alexcrichton
fix git submodule status check
None
Jonathan Turner [Wed, 31 Aug 2016 20:53:34 +0000 (13:53 -0700)]
Rollup merge of #36087 - apasel422:issue-28324, r=alexcrichton
Add test for #28324
Closes #28324
Jonathan Turner [Wed, 31 Aug 2016 20:53:34 +0000 (13:53 -0700)]
Rollup merge of #36083 - GuillaumeGomez:missing_convert_urls, r=steveklabnik
Add missing urls into convert module
r? @steveklabnik
Jonathan Turner [Wed, 31 Aug 2016 20:53:33 +0000 (13:53 -0700)]
Rollup merge of #35927 - matthew-piziak:bitandassign-example, r=GuillaumeGomez
replace `BitAndAssign` example with something more evocative
This is the augmented-assignment version of PR #35809.
r? @GuillaumeGomez
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.
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
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
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:
Guillaume Gomez [Thu, 18 Aug 2016 15:50:28 +0000 (17:50 +0200)]
Improve Path and PathBuf docs
Guillaume Gomez [Sun, 28 Aug 2016 22:07:03 +0000 (00:07 +0200)]
Add missing urls into convert module
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.
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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..`.
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.
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
Fabian Zaiser [Wed, 31 Aug 2016 11:50:58 +0000 (13:50 +0200)]
Fix typo in PartialOrd docs
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
Chris Wong [Sun, 3 Jul 2016 03:24:27 +0000 (15:24 +1200)]
Warn about multiple conflicting #[repr] hints
Closes #34622
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
Corey Farwell [Tue, 30 Aug 2016 13:29:22 +0000 (09:29 -0400)]
Implement `Debug` for `std::path::Iter`.
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.
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
Matthew Piziak [Tue, 23 Aug 2016 15:41:04 +0000 (11:41 -0400)]
replace `BitAndAssign` example with something more evocative
This is the augmented-assignment version of PR #35809.
r? @GuillaumeGomez
improved documentation a la PR #35993
Mikhail Modin [Tue, 30 Aug 2016 19:46:52 +0000 (22:46 +0300)]
update E0265 to new format
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
Andrea Corradi [Sun, 28 Aug 2016 15:55:07 +0000 (17:55 +0200)]
Update E0318 to new format
Corey Farwell [Mon, 29 Aug 2016 11:17:27 +0000 (07:17 -0400)]
Implement `Debug` for `std::path::Components`.
ggomez [Tue, 30 Aug 2016 11:13:37 +0000 (13:13 +0200)]
Add new error code tests
ggomez [Tue, 30 Aug 2016 10:54:51 +0000 (12:54 +0200)]
Add E0530 error explanation
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
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
Cristi Cobzarenco [Tue, 30 Aug 2016 10:01:08 +0000 (11:01 +0100)]
add test for #14875
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
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
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
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
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
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
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
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
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.
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
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?
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.
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
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/
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
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`.
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.
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
Jeffrey Seyfried [Mon, 29 Aug 2016 11:14:25 +0000 (11:14 +0000)]
Future proof `libsyntax_ext` for `union`.
athulappadan [Tue, 30 Aug 2016 04:59:24 +0000 (10:29 +0530)]
Update compiler error 0034 to use new format.
Tshepang Lekhonkhobe [Tue, 30 Aug 2016 04:42:56 +0000 (06:42 +0200)]
doc: make TcpListener example more simple
Corey Farwell [Tue, 30 Aug 2016 03:35:50 +0000 (23:35 -0400)]
rustbook chapters/sections should be an ordered list.
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
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
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
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
Eduard Burtescu [Mon, 29 Aug 2016 19:53:18 +0000 (22:53 +0300)]
llvm: backport "[SimplifyCFG] Hoisting invalidates metadata".
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
zjhmale [Mon, 29 Aug 2016 14:31:08 +0000 (22:31 +0800)]
Update E0089 to new error format
Paul Fanelli [Sun, 28 Aug 2016 00:38:04 +0000 (00:38 +0000)]
Update E0463 error message to new 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
king6cong [Mon, 29 Aug 2016 08:53:38 +0000 (16:53 +0800)]
fix git submodule status check
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.
Mikhail Modin [Sat, 27 Aug 2016 20:28:38 +0000 (23:28 +0300)]
update error E0451 to new format
Jeffrey Seyfried [Sun, 28 Aug 2016 11:18:58 +0000 (11:18 +0000)]
Fix merge conflicts.
Jeffrey Seyfried [Sun, 28 Aug 2016 10:52:03 +0000 (10:52 +0000)]
Remove inherent methods `Annotatable::attrs` and `Annotatable::fold_attrs`.
Jeffrey Seyfried [Mon, 29 Aug 2016 05:04:31 +0000 (05:04 +0000)]
Future proof the AST for `union`.
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`.
Jorge Aparicio [Mon, 29 Aug 2016 03:13:35 +0000 (22:13 -0500)]
fix tidy error
Andrew Paseltiner [Sun, 28 Aug 2016 23:28:31 +0000 (19:28 -0400)]
Add test for #24204
Closes #24204
Andrew Paseltiner [Sun, 28 Aug 2016 23:21:04 +0000 (19:21 -0400)]
Add test for #28324
Closes #28324
Andrew Paseltiner [Sun, 28 Aug 2016 23:16:13 +0000 (19:16 -0400)]
Add test for #35423
Closes #35423
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)
Andrew Paseltiner [Sun, 28 Aug 2016 23:10:12 +0000 (19:10 -0400)]
Add test for #34053
Closes #34053
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].
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
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
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
Jonas Schievink [Sun, 28 Aug 2016 13:37:37 +0000 (15:37 +0200)]
Revert changes to the reproducible-builds test
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`
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.
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
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.
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_`.
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