]> git.lizzy.rs Git - rust.git/log
rust.git
8 years agoRollup merge of #28214 - tshepang:word-not-name, r=steveklabnik
Steve Klabnik [Fri, 4 Sep 2015 00:10:09 +0000 (20:10 -0400)]
Rollup merge of #28214 - tshepang:word-not-name, r=steveklabnik

Also, add missing comma

8 years agoRollup merge of #28213 - tshepang:replace-comma, r=steveklabnik
Steve Klabnik [Fri, 4 Sep 2015 00:10:09 +0000 (20:10 -0400)]
Rollup merge of #28213 - tshepang:replace-comma, r=steveklabnik

8 years agoRollup merge of #28212 - tshepang:rust-is-a-language, r=steveklabnik
Steve Klabnik [Fri, 4 Sep 2015 00:10:09 +0000 (20:10 -0400)]
Rollup merge of #28212 - tshepang:rust-is-a-language, r=steveklabnik

8 years agoRollup merge of #28210 - tshepang:typo, r=steveklabnik
Steve Klabnik [Fri, 4 Sep 2015 00:10:08 +0000 (20:10 -0400)]
Rollup merge of #28210 - tshepang:typo, r=steveklabnik

8 years agoRollup merge of #28209 - tshepang:must-be-four-spaces, r=steveklabnik
Steve Klabnik [Fri, 4 Sep 2015 00:10:08 +0000 (20:10 -0400)]
Rollup merge of #28209 - tshepang:must-be-four-spaces, r=steveklabnik

Also, add trailing commas

8 years agoRollup merge of #28208 - matklad:grammar-whitespace-cleanup, r=steveklabnik
Steve Klabnik [Fri, 4 Sep 2015 00:10:08 +0000 (20:10 -0400)]
Rollup merge of #28208 - matklad:grammar-whitespace-cleanup, r=steveklabnik

8 years agoRollup merge of #28207 - tshepang:flow, r=steveklabnik
Steve Klabnik [Fri, 4 Sep 2015 00:10:08 +0000 (20:10 -0400)]
Rollup merge of #28207 - tshepang:flow, r=steveklabnik

8 years agoRollup merge of #28205 - matklad:grammar-remove-proc, r=alexcrichton
Steve Klabnik [Fri, 4 Sep 2015 00:10:07 +0000 (20:10 -0400)]
Rollup merge of #28205 - matklad:grammar-remove-proc, r=alexcrichton

As I understand, there are no proc closures in Rust any more. So this pr removes `procedure_type` production. It isn't used anywhere. The `proc` is still a keyword.

r? @steveklabnik
@bors: r+ rollup

8 years agoRollup merge of #28204 - matklad:grammar-duplicate-else-tail, r=steveklabnik
Steve Klabnik [Fri, 4 Sep 2015 00:10:07 +0000 (20:10 -0400)]
Rollup merge of #28204 - matklad:grammar-duplicate-else-tail, r=steveklabnik

The rule `else_tail` was duplicated in `if` and `if_let` sections. I guess that this is a mistake.

r? @steveklabnik

8 years agoRollup merge of #28203 - benschulz:book-deref-coercion, r=brson
Steve Klabnik [Fri, 4 Sep 2015 00:10:07 +0000 (20:10 -0400)]
Rollup merge of #28203 - benschulz:book-deref-coercion, r=brson

I have two issues with the section "Deref and method calls" of the book's chapter "Deref coercions".

 - (Minor) It says "In other words, these are the same two things in Rust:", followed by a code block in which no two things seem similar, much less the same. Presumably this sentence made more sense in a previous revision.

 - The next paragraph conflates two concepts which, imho, should kept separate. They are
    - deref coercion, i.e. inserting as many `*` as necessary and
    - implicitly referencing the receiver, i.e. inserting a single `&` to satisfy the method's `self` parameter type.

I appreciate that with the proposed changes the example becomes very contrived, even for a foo-bar-baz one. However, the current exmplanation is just wrong.

8 years agoRollup merge of #28202 - matklad:grammar-loop-labels, r=steveklabnik
Steve Klabnik [Fri, 4 Sep 2015 00:10:07 +0000 (20:10 -0400)]
Rollup merge of #28202 - matklad:grammar-loop-labels, r=steveklabnik

This adds missing `?` marks to productions for loops and break/continue.

It also adds missing option label to while let loop.

Note that '[' foo ']' means grouping in BNF, and '?' is used for possible missing items.

r? @steveklabnik

8 years agoRollup merge of #28167 - petrochenkov:bytelit, r=nikomatsakis
Steve Klabnik [Fri, 4 Sep 2015 00:10:07 +0000 (20:10 -0400)]
Rollup merge of #28167 - petrochenkov:bytelit, r=nikomatsakis

Avoid confusion with binary integer literals and binary operator expressions in libsyntax

8 years agoreference grammar: whitespace cleanup
Aleksey Kladov [Thu, 3 Sep 2015 20:42:33 +0000 (23:42 +0300)]
reference grammar: whitespace cleanup

8 years agobook: it is RwLock, not RWLock
Tshepang Lekhonkhobe [Thu, 3 Sep 2015 20:14:28 +0000 (22:14 +0200)]
book: it is RwLock, not RWLock

8 years agoAuto merge of #28200 - Manishearth:rollup, r=Manishearth
bors [Thu, 3 Sep 2015 20:10:42 +0000 (20:10 +0000)]
Auto merge of #28200 - Manishearth:rollup, r=Manishearth

- Successful merges: #28164, #28170, #28184, #28186, #28187, #28188, #28191, #28193, #28194, #28195
- Failed merges:

8 years agoAdd ptr import (fixup #28187)
Manish Goregaokar [Thu, 3 Sep 2015 18:33:38 +0000 (00:03 +0530)]
Add ptr import (fixup #28187)

8 years agoRollup merge of #28195 - AlisdairO:diagnostics214, r=Manishearth
Manish Goregaokar [Thu, 3 Sep 2015 18:00:38 +0000 (23:30 +0530)]
Rollup merge of #28195 - AlisdairO:diagnostics214, r=Manishearth

As title :-)
Part of #24407.

r? @Manishearth

8 years agoRollup merge of #28194 - steveklabnik:add_fixme, r=alexcrichton
Manish Goregaokar [Thu, 3 Sep 2015 18:00:38 +0000 (23:30 +0530)]
Rollup merge of #28194 - steveklabnik:add_fixme, r=alexcrichton

8 years agoRollup merge of #28193 - dhuseby:fixing_bitrig_alloc_crate_tests, r=alexcrichton
Manish Goregaokar [Thu, 3 Sep 2015 18:00:38 +0000 (23:30 +0530)]
Rollup merge of #28193 - dhuseby:fixing_bitrig_alloc_crate_tests, r=alexcrichton

@alexcrichton this will get the bitrig buildbot back to green.

8 years agoRollup merge of #28191 - llogiq:iter, r=Manishearth
Manish Goregaokar [Thu, 3 Sep 2015 18:00:38 +0000 (23:30 +0530)]
Rollup merge of #28191 - llogiq:iter, r=Manishearth

Nothing too big, a few needless returns and a few closures eliminated (the latter may improve performance in some cases, at least compilation should be a bit faster).

8 years agoRollup merge of #28188 - Manishearth:elide-core, r=alexcrichton
Manish Goregaokar [Thu, 3 Sep 2015 18:00:37 +0000 (23:30 +0530)]
Rollup merge of #28188 - Manishearth:elide-core, r=alexcrichton

Makes things more greppable.

This change was made automatically by clippy + bash scripts, though I will run test passes, please review carefully.

8 years agoRollup merge of #28187 - petrochenkov:null, r=aturon
Manish Goregaokar [Thu, 3 Sep 2015 18:00:37 +0000 (23:30 +0530)]
Rollup merge of #28187 - petrochenkov:null, r=aturon

And replace more `0 as *const T`/`0 as *mut T`s with `null()`/`null_mut()`s

I'm not sure what is the general policy about making simple functions `const`, but `null()` and `null_mut()` seem to be good candidates.

8 years agoRollup merge of #28186 - thomas07vt:thomas07vt-patch-trpl-rust-inside-other-languages...
Manish Goregaokar [Thu, 3 Sep 2015 18:00:37 +0000 (23:30 +0530)]
Rollup merge of #28186 - thomas07vt:thomas07vt-patch-trpl-rust-inside-other-languages.md, r=steveklabnik

The embed rust file that we compile prints out 'Thread finished..' messages along with a 'done!' r? @steveklabnik

8 years agoRollup merge of #28184 - xiaochuanyu:patch-1, r=alexcrichton
Manish Goregaokar [Thu, 3 Sep 2015 18:00:37 +0000 (23:30 +0530)]
Rollup merge of #28184 - xiaochuanyu:patch-1, r=alexcrichton

Originally in an example it reads as follows:
```rust
fn inverse<T>() -> T
        // this is using ConvertTo as if it were "ConvertFrom<i32>"
         where i32: ConvertTo<T> {
     42.convert()
 }
```
There was no mention of `ConvertFrom` elsewhere in the page other than in this comment. Is this supposed to be `ConvertTo<i64>` ?
I'm confused by this example.

8 years agodoc: reduce indentation of examples to 4 spaces
Tshepang Lekhonkhobe [Thu, 3 Sep 2015 20:06:23 +0000 (22:06 +0200)]
doc: reduce indentation of examples to 4 spaces

Also, add trailing commas

8 years agobook: improve flow
Tshepang Lekhonkhobe [Thu, 3 Sep 2015 19:54:00 +0000 (21:54 +0200)]
book: improve flow

8 years agobook: Rust is a language, so no need to mention that fact here
Tshepang Lekhonkhobe [Thu, 3 Sep 2015 19:40:19 +0000 (21:40 +0200)]
book: Rust is a language, so no need to mention that fact here

8 years agoreference grammar: remove procedure_type
Aleksey Kladov [Thu, 3 Sep 2015 19:25:47 +0000 (22:25 +0300)]
reference grammar: remove procedure_type

8 years agoreference grammar: remove duplicate else_tail rule
Aleksey Kladov [Thu, 3 Sep 2015 19:19:56 +0000 (22:19 +0300)]
reference grammar: remove duplicate else_tail rule

8 years agoTake method invocation semantics out of chapter on deref coercion.
benshu [Thu, 3 Sep 2015 19:17:59 +0000 (21:17 +0200)]
Take method invocation semantics out of chapter on deref coercion.

8 years agobook: "word" feels more suitable than "name"
Tshepang Lekhonkhobe [Thu, 3 Sep 2015 19:14:01 +0000 (21:14 +0200)]
book: "word" feels more suitable than "name"

Also, add missing comma

8 years agoreference grammar: loop label should be optional
Aleksey Kladov [Thu, 3 Sep 2015 19:13:50 +0000 (22:13 +0300)]
reference grammar: loop label should be optional

This adds missing `?` marks to productions for loops and break/continue.

It also adds missing option label to while let loop

8 years agobook: replace comma with a more suitable character
Tshepang Lekhonkhobe [Thu, 3 Sep 2015 19:05:35 +0000 (21:05 +0200)]
book: replace comma with a more suitable character

8 years agoRollup merge of #28164 - AlisdairO:diagnostics329, r=Manishearth
Manish Goregaokar [Thu, 3 Sep 2015 18:00:36 +0000 (23:30 +0530)]
Rollup merge of #28164 - AlisdairO:diagnostics329, r=Manishearth

As title :-)
Part of #24407.

r? @Manishearth

8 years agoadd long diagnostics for E0214
Alisdair Owens [Thu, 3 Sep 2015 16:01:50 +0000 (17:01 +0100)]
add long diagnostics for E0214

8 years agoAuto merge of #28192 - Manishearth:lint-hir, r=eddyb
bors [Thu, 3 Sep 2015 15:42:16 +0000 (15:42 +0000)]
Auto merge of #28192 - Manishearth:lint-hir, r=eddyb

LintPass still uses the AST, though there isn't any need to. This makes it hard to move lints to the HIR.

r? @eddyb @nrc

8 years agoMove lints to HIR
Manish Goregaokar [Thu, 3 Sep 2015 13:29:56 +0000 (18:59 +0530)]
Move lints to HIR

8 years agoAdd an issue number to this FIXME
Steve Klabnik [Thu, 3 Sep 2015 15:00:33 +0000 (11:00 -0400)]
Add an issue number to this FIXME

8 years agoFixes #27886 -- bitrig does not use jemalloc (yet)
Dave Huseby [Thu, 3 Sep 2015 14:25:21 +0000 (07:25 -0700)]
Fixes #27886 -- bitrig does not use jemalloc (yet)

8 years agoAuto merge of #28176 - arielb1:fast-index, r=eddyb
bors [Thu, 3 Sep 2015 13:01:03 +0000 (13:01 +0000)]
Auto merge of #28176 - arielb1:fast-index, r=eddyb

r? @eddyb

8 years agotake mapped function by mutable reference
llogiq [Thu, 3 Sep 2015 12:50:06 +0000 (14:50 +0200)]
take mapped function by mutable reference

8 years agoElide lifetimes in libcore
Manish Goregaokar [Thu, 3 Sep 2015 09:49:08 +0000 (15:19 +0530)]
Elide lifetimes in libcore

8 years agoclippy improvements to iterators
llogiq [Thu, 3 Sep 2015 10:35:34 +0000 (12:35 +0200)]
clippy improvements to iterators

8 years agorewrite metadata indexing
Ariel Ben-Yehuda [Wed, 2 Sep 2015 22:22:31 +0000 (01:22 +0300)]
rewrite metadata indexing

this improves the compilation time for small crates by ~20%

8 years agoremove totally useless struct-field index
Ariel Ben-Yehuda [Tue, 1 Sep 2015 17:37:05 +0000 (20:37 +0300)]
remove totally useless struct-field index

8 years agoUse consistent terminology for byte string literals
Vadim Petrochenkov [Thu, 3 Sep 2015 07:54:53 +0000 (10:54 +0300)]
Use consistent terminology for byte string literals
Avoid confusion with binary integer literals and binary operator expressions in libsyntax

8 years agoUse `null()`/`null_mut()` instead of `0 as *const T`/`0 as *mut T`
Vadim Petrochenkov [Thu, 3 Sep 2015 06:49:50 +0000 (09:49 +0300)]
Use `null()`/`null_mut()` instead of `0 as *const T`/`0 as *mut T`

8 years agoBash output fix to match real 'ruby embed.rb' call
John Thomas [Thu, 3 Sep 2015 06:13:56 +0000 (23:13 -0700)]
Bash output fix to match real 'ruby embed.rb' call

The embed rust file that we compile prints out 'Thread finished..' messages along with a 'done!'

8 years agoMake `null()` and `null_mut()` const functions
Vadim Petrochenkov [Wed, 2 Sep 2015 19:06:04 +0000 (22:06 +0300)]
Make `null()` and `null_mut()` const functions

8 years agoFix mistake in trait.md
Xiao Chuan Yu [Thu, 3 Sep 2015 05:23:00 +0000 (01:23 -0400)]
Fix mistake in trait.md

8 years agoAuto merge of #28182 - jackwilsonv:patch-2, r=steveklabnik
bors [Thu, 3 Sep 2015 04:43:40 +0000 (04:43 +0000)]
Auto merge of #28182 - jackwilsonv:patch-2, r=steveklabnik

r? @steveklabnik

##### About the `struct` section specifically:
I wasn't sure how you'd feel about the first instance since it was originally capitalized, happy to change it back if you think that's better.

Also, I left 'tuple struct' as is since together it isn't a keyword. The first instance currently has single quotes but the others have nothing. I think that feels right.

##### Generally:
I'm working through the book now and I'm happy to keep updating this branch with any formatting tweaks or updates I find if that's easier for you guys, otherwise I'll just create smaller PRs as I go. Just let me know.

8 years agoAuto merge of #28174 - steveklabnik:gh14705, r=alexcricton
bors [Thu, 3 Sep 2015 02:12:21 +0000 (02:12 +0000)]
Auto merge of #28174 - steveklabnik:gh14705, r=alexcricton

Because 'doc' is a directory, when running `make doc`, you'll see
this:

    make: Nothing to be done for `doc'.

By adding a target for `doc` to build `docs`, both work.

Fixes #14705

8 years agoIntroduce 'make doc' -> 'make docs'
Steve Klabnik [Wed, 2 Sep 2015 22:03:17 +0000 (18:03 -0400)]
Introduce 'make doc' -> 'make docs'

Because 'doc' is a directory, when running `make doc`, you'll see
this:

    make: Nothing to be done for `doc'.

By adding a target for `doc` to build `docs`, both work.

Fixes #14705

8 years agoMakes formatting of struct keyword consistent
Jack Wilson [Thu, 3 Sep 2015 01:58:18 +0000 (18:58 -0700)]
Makes formatting of struct keyword consistent

8 years agoAuto merge of #28138 - nrc:hir, r=nikomatsakis
bors [Wed, 2 Sep 2015 22:44:25 +0000 (22:44 +0000)]
Auto merge of #28138 - nrc:hir, r=nikomatsakis

r? @nikomatsakis

Trying to land this first stab, which basically just duplicates the AST. Will file issues for the various things I've got in mind to improve.

8 years agoAdd an intital HIR and lowering step
Nick Cameron [Fri, 31 Jul 2015 07:04:06 +0000 (00:04 -0700)]
Add an intital HIR and lowering step

8 years agoAuto merge of #28117 - marcusklaas:continue-break, r=alexcrichton
bors [Wed, 2 Sep 2015 21:02:34 +0000 (21:02 +0000)]
Auto merge of #28117 - marcusklaas:continue-break, r=alexcrichton

Fixes https://github.com/rust-lang/rust/issues/28108.

8 years agoAuto merge of #28135 - jackwilsonv:patch-1, r=steveklabnik
bors [Wed, 2 Sep 2015 19:08:18 +0000 (19:08 +0000)]
Auto merge of #28135 - jackwilsonv:patch-1, r=steveklabnik

Small formatting change

r? @steveklabnik

8 years agoFix overly long spans for break and continue
Marcus Klaas [Sun, 30 Aug 2015 22:26:02 +0000 (00:26 +0200)]
Fix overly long spans for break and continue

The spans of break and continue would include the next token.

8 years agoAuto merge of #28165 - mneumann:dragonfly_snapshots, r=alexcrichton
bors [Wed, 2 Sep 2015 17:27:10 +0000 (17:27 +0000)]
Auto merge of #28165 - mneumann:dragonfly_snapshots, r=alexcrichton

@alexcrichton: The snapshot file is here: http://www.ntecs.de/downloads/rust/rust-stage0-2015-08-11-1af31d4-dragonfly-x86_64-08e7dd9d77434b377c0905cc5f8c705b2daf3a0e.tar.bz2.

This is the first part in getting Continuous builds for DragonFly (#16298).

8 years agoAdd snapshot for DragonFly BSD
Michael Neumann [Wed, 2 Sep 2015 16:21:02 +0000 (18:21 +0200)]
Add snapshot for DragonFly BSD

8 years agoAuto merge of #28162 - mneumann:dragonfly_fix_stat, r=alexcrichton
bors [Wed, 2 Sep 2015 14:51:11 +0000 (14:51 +0000)]
Auto merge of #28162 - mneumann:dragonfly_fix_stat, r=alexcrichton

8 years agoAdd long diagnostics for E0329
Alisdair Owens [Wed, 2 Sep 2015 14:35:56 +0000 (15:35 +0100)]
Add long diagnostics for E0329

8 years agoAuto merge of #28163 - llogiq:master, r=Manishearth
bors [Wed, 2 Sep 2015 10:20:41 +0000 (10:20 +0000)]
Auto merge of #28163 - llogiq:master, r=Manishearth

8 years agoImproved libfmt_macros code style with clippy
llogiq [Wed, 2 Sep 2015 10:13:10 +0000 (12:13 +0200)]
Improved libfmt_macros code style with clippy

8 years agoFix compile on DragonFly: Replace unknown uint32_t/in64_t by u32/i64.
Michael Neumann [Wed, 2 Sep 2015 08:57:57 +0000 (10:57 +0200)]
Fix compile on DragonFly: Replace unknown uint32_t/in64_t by u32/i64.

8 years agoAuto merge of #28156 - nagisa:binaryheap-debug, r=Gankro
bors [Wed, 2 Sep 2015 06:37:32 +0000 (06:37 +0000)]
Auto merge of #28156 - nagisa:binaryheap-debug, r=Gankro

r? @Gankro

8 years agoAuto merge of #28155 - vchimishuk:doc-rust-inside-other-languages-tab, r=alexcrichton
bors [Wed, 2 Sep 2015 04:55:37 +0000 (04:55 +0000)]
Auto merge of #28155 - vchimishuk:doc-rust-inside-other-languages-tab, r=alexcrichton

Fixed x variable identation. How it was displayed in Firefox before: http://s16.postimg.org/c9448tn0k/Screenshot_from_2015_09_01_17_35_43.jpg

8 years agoAuto merge of #28149 - jakerr:atomic, r=alexcrichton
bors [Wed, 2 Sep 2015 03:13:43 +0000 (03:13 +0000)]
Auto merge of #28149 - jakerr:atomic, r=alexcrichton

Makes the code agree with the comment: 'value answers "am I locked?"'.

8 years agoAuto merge of #28148 - eefriedman:binary_heap, r=alexcrichton
bors [Wed, 2 Sep 2015 01:33:20 +0000 (01:33 +0000)]
Auto merge of #28148 - eefriedman:binary_heap, r=alexcrichton

8 years agoAuto merge of #28132 - arielb1:uninstantiable, r=nikomatsakis
bors [Tue, 1 Sep 2015 23:51:47 +0000 (23:51 +0000)]
Auto merge of #28132 - arielb1:uninstantiable, r=nikomatsakis

It is *very* easy to bypass, and is a relic of a bygone age where the type-checker was *much* less robust.

Fixes #27497

r? @nikomatsakis

8 years agoAuto merge of #28146 - eefriedman:deque_extras, r=alexcrichton
bors [Tue, 1 Sep 2015 22:07:59 +0000 (22:07 +0000)]
Auto merge of #28146 - eefriedman:deque_extras, r=alexcrichton

8 years agoAuto merge of #28130 - alexcrichton:fix-msvc-static-tls-dtor, r=brson
bors [Tue, 1 Sep 2015 19:34:21 +0000 (19:34 +0000)]
Auto merge of #28130 - alexcrichton:fix-msvc-static-tls-dtor, r=brson

Running TLS destructors for a MSVC Windows binary requires the linker doesn't
elide the `_tls_used` or `__tls_used` symbols (depending on the architecture).
This is currently achieved via a `#[link_args]` hack but this only works for
dynamically linked binaries because the link arguments aren't propagated to
statically linked binaries.

This commit alters the strategy to instead emit a volatile load from those
symbols so LLVM can't elide it, forcing the reference to the symbol to stay
alive as long as the callback function stays alive (which we've made sure of
with the `#[linkage]` attribute).

Closes #28111

8 years agostd: Run TLS destructors in a statically linked binary
Alex Crichton [Mon, 31 Aug 2015 17:28:07 +0000 (10:28 -0700)]
std: Run TLS destructors in a statically linked binary

Running TLS destructors for a MSVC Windows binary requires the linker doesn't
elide the `_tls_used` or `__tls_used` symbols (depending on the architecture).
This is currently achieved via a `#[link_args]` hack but this only works for
dynamically linked binaries because the link arguments aren't propagated to
statically linked binaries.

This commit alters the strategy to instead emit a volatile load from those
symbols so LLVM can't elide it, forcing the reference to the symbol to stay
alive as long as the callback function stays alive (which we've made sure of
with the `#[linkage]` attribute).

Closes #28111

8 years agoAuto merge of #28088 - tbu-:pr_fixed_size_array, r=alexcrichton
bors [Tue, 1 Sep 2015 17:39:33 +0000 (17:39 +0000)]
Auto merge of #28088 - tbu-:pr_fixed_size_array, r=alexcrichton

8 years agoImplement Debug for BinaryHeap
Simonas Kazlauskas [Tue, 1 Sep 2015 17:26:51 +0000 (20:26 +0300)]
Implement Debug for BinaryHeap

Fixes #28154

8 years agoAuto merge of #28152 - llogiq:master, r=Manishearth
bors [Tue, 1 Sep 2015 15:44:50 +0000 (15:44 +0000)]
Auto merge of #28152 - llogiq:master, r=Manishearth

This changes a lot of `.to_string()` to `.to_owned()`, removes a few redundant closures, and changes some `match`es to `if let`s.

I'm currently in the process of trying out clippy and acting on its suggestions. I started with compiletest, because we use it to test clippy, too. If this finds positive reception, I may continue refactoring other parts of the rust codebase.

8 years agoSource code style fixed: tab replaced with whitespaces.
Viacheslav Chimishuk [Tue, 1 Sep 2015 14:49:08 +0000 (17:49 +0300)]
Source code style fixed: tab replaced with whitespaces.

8 years agoAuto merge of #28115 - AlexDenisov:patch-1, r=steveklabnik
bors [Tue, 1 Sep 2015 13:51:11 +0000 (13:51 +0000)]
Auto merge of #28115 - AlexDenisov:patch-1, r=steveklabnik

r? @steveklabnik

8 years agorefactored compiletest following clippy's suggestions
llogiq [Tue, 1 Sep 2015 12:43:42 +0000 (14:43 +0200)]
refactored compiletest following clippy's suggestions

8 years agoAuto merge of #28060 - GuillaumeGomez:patch-3, r=Manishearth
bors [Tue, 1 Sep 2015 11:58:28 +0000 (11:58 +0000)]
Auto merge of #28060 - GuillaumeGomez:patch-3, r=Manishearth

Part of #24407

r? @Manishearth

8 years agoAuto merge of #28137 - nrc:remove-non-multi, r=huonw
bors [Tue, 1 Sep 2015 09:12:52 +0000 (09:12 +0000)]
Auto merge of #28137 - nrc:remove-non-multi, r=huonw

This is a [breaking-change] for syntax extension authors. The fix is to use MultiModifier or MultiDecorator, which have the same functionality but are more flexible. Users of syntax extensions are unaffected.

8 years agoReverse AtomicBool value in nomicon example to agree with its comment.
Jake Kerr [Tue, 1 Sep 2015 08:20:04 +0000 (17:20 +0900)]
Reverse AtomicBool value in nomicon example to agree with its comment.

Makes the code agree with the comment: 'value answers "am I locked?"'.

8 years agoAdd missing stability markings to BinaryHeap.
Eli Friedman [Tue, 1 Sep 2015 05:38:34 +0000 (22:38 -0700)]
Add missing stability markings to BinaryHeap.

8 years agoAuto merge of #28136 - huonw:simd, r=alexcrichton
bors [Tue, 1 Sep 2015 07:19:12 +0000 (07:19 +0000)]
Auto merge of #28136 - huonw:simd, r=alexcrichton

I believe everything that doesn't take a constant integer up to SSE4.2
should now be correct (I don't have any reason to believe that those
that do take constant integers are wrong; they're just more complicated
and I just haven't tested them in detail).

(Also, takes out two unused code paths from trans.)

8 years agoAdd missing stability attributes to VecDeque.
Eli Friedman [Tue, 1 Sep 2015 05:24:06 +0000 (22:24 -0700)]
Add missing stability attributes to VecDeque.

8 years agoAuto merge of #28122 - apasel422:issue-28093, r=alexcrichton
bors [Tue, 1 Sep 2015 05:22:48 +0000 (05:22 +0000)]
Auto merge of #28122 - apasel422:issue-28093, r=alexcrichton

closes #28093

8 years agoFix some typos in SSE-AVX intrinsics.
Huon Wilson [Mon, 31 Aug 2015 23:47:58 +0000 (16:47 -0700)]
Fix some typos in SSE-AVX intrinsics.

I believe everything that doesn't take a constant integer up to SSE4.2
should now be correct (I don't have any reason to believe that those
that do take constant integers are wrong; they're just more complicated
and I just haven't tested them in detail).

8 years agoRemove some SIMD codepaths from trans.
Huon Wilson [Mon, 31 Aug 2015 22:06:00 +0000 (15:06 -0700)]
Remove some SIMD codepaths from trans.

8 years agoRemove the Modifier and Decorator kinds of syntax extensions.
Nick Cameron [Tue, 1 Sep 2015 01:16:03 +0000 (13:16 +1200)]
Remove the Modifier and Decorator kinds of syntax extensions.

This is a [breaking-change] for syntax extension authors. The fix is to use MultiModifier or MultiDecorator, which have the same functionality but are more flexible. Users of syntax extensions are unaffected.

8 years agoAuto merge of #28094 - apasel422:extend-hashmap, r=alexcrichton
bors [Tue, 1 Sep 2015 00:32:07 +0000 (00:32 +0000)]
Auto merge of #28094 - apasel422:extend-hashmap, r=alexcrichton

It appears that these impls were left out of #25989 by mistake.

r? @alexcrichton

I'm not sure what the stability markers for these should be.

8 years agoAdd E0439 error explanation
Guillaume Gomez [Fri, 28 Aug 2015 14:57:29 +0000 (16:57 +0200)]
Add E0439 error explanation

8 years agoAdd E0440 error explanation
Guillaume Gomez [Fri, 28 Aug 2015 14:34:03 +0000 (16:34 +0200)]
Add E0440 error explanation

8 years agoAdd E0441 error explanation
Guillaume Gomez [Fri, 28 Aug 2015 14:21:56 +0000 (16:21 +0200)]
Add E0441 error explanation

8 years agoAdd E0443 error explanation
Guillaume Gomez [Fri, 28 Aug 2015 14:13:14 +0000 (16:13 +0200)]
Add E0443 error explanation

8 years agoAdd E0442 error explanation
Guillaume Gomez [Fri, 28 Aug 2015 14:09:46 +0000 (16:09 +0200)]
Add E0442 error explanation

8 years agoComment out unused error codes
Guillaume Gomez [Fri, 28 Aug 2015 13:42:03 +0000 (15:42 +0200)]
Comment out unused error codes

8 years agoAdd E0411 error explanation
Guillaume Gomez [Fri, 28 Aug 2015 13:25:39 +0000 (15:25 +0200)]
Add E0411 error explanation

8 years agoMakes formatting of i32 consistent
Jack Wilson [Mon, 31 Aug 2015 22:52:02 +0000 (15:52 -0700)]
Makes formatting of i32 consistent

8 years agoAuto merge of #28079 - huonw:simd, r=alexcrichton
bors [Mon, 31 Aug 2015 21:34:08 +0000 (21:34 +0000)]
Auto merge of #28079 - huonw:simd, r=alexcrichton

This adds a new Python script (compatible with 2.7 and 3.x) that will consume some JSON files that define a platform's intrinsics. It can output a file that defines the intrinsics in the compiler, or an `extern` block that will import them.

The complexity of the generator is to be DRY: platforms (especially ARM and AArch64) have a lot of repetition with their intrinsics, for different versions with different types, so being able to write it once is nice.