]> git.lizzy.rs Git - rust.git/log
rust.git
9 years agoRollup merge of #25968 - benfleis:master, r=steveklabnik
Manish Goregaokar [Tue, 9 Jun 2015 00:12:27 +0000 (05:42 +0530)]
Rollup merge of #25968 - benfleis:master, r=steveklabnik

to address https://github.com/rust-lang/rust/issues/25488 .

9 years agoRollup merge of #25948 - tshepang:misc-doc-improvements, r=steveklabnik
Manish Goregaokar [Tue, 9 Jun 2015 00:12:27 +0000 (05:42 +0530)]
Rollup merge of #25948 - tshepang:misc-doc-improvements, r=steveklabnik

9 years agoRollup merge of #25909 - frankamp:patch-1, r=steveklabnik
Manish Goregaokar [Tue, 9 Jun 2015 00:12:26 +0000 (05:42 +0530)]
Rollup merge of #25909 - frankamp:patch-1, r=steveklabnik

The doc indicates that you can replace 'before' with 'after' showing the use of try!. The two examples should be equivalent, but they are not.

In the File::create we were inducing a panic before in case of error, not propagating. It is important for newbies (like myself) to understand that try! propagates failures, while unwrap can induce a panic.

The other alternative is to make the 'before' File::create also manually handle Err like the other calls. Either way it would be consistent.

9 years agoRollup merge of #25898 - azerupi:patch-3, r=steveklabnik
Manish Goregaokar [Tue, 9 Jun 2015 00:12:26 +0000 (05:42 +0530)]
Rollup merge of #25898 - azerupi:patch-3, r=steveklabnik

As mentioned in #25893 the copy trait is not very well explained for beginners. There is no clear mention that all primitive types implement the copy trait and there are not a lot of examples.

With this change I try to make it more visible and understandable for new users.

I myself have struggled with this, see [my question on stackoverflow](http://stackoverflow.com/questions/30540419/why-are-booleans-copyable-even-though-the-documentation-doesnt-indicate-that). And I want to make it more transparent for others.

I filed issue #25893 but I thought that I could give it a shot myself to relieve some of the work from the devs :)

If it is not well written or there are some changes to be made before it can be merged, let me know.

Cheers,
Mathieu

9 years agoAuto merge of #26079 - eefriedman:emit-closure, r=nrc
bors [Mon, 8 Jun 2015 22:26:16 +0000 (22:26 +0000)]
Auto merge of #26079 - eefriedman:emit-closure, r=nrc

This isn't a very clean fix, but I'm not sure what a better fix would look
like.

Fixes #24779.

9 years agoAuto merge of #26077 - SimonSapin:patch-6, r=alexcrichton
bors [Mon, 8 Jun 2015 20:52:33 +0000 (20:52 +0000)]
Auto merge of #26077 - SimonSapin:patch-6, r=alexcrichton

With the latter is provided by the `From` conversion trait, the former is now completely redundant. Their code is identical. Let’s deprecate now and plan to remove in the next cycle. (It’s `#[unstable]`.)

r? @alexcrichton
CC @nagisa

9 years agoAuto merge of #26060 - funkill:fix_rustbook, r=alexcrichton
bors [Mon, 8 Jun 2015 19:18:31 +0000 (19:18 +0000)]
Auto merge of #26060 - funkill:fix_rustbook, r=alexcrichton

Case:
Russian translate of trpl use this structure:
```bash
rust_book_ru $ tree
.
├── README.md
├── src
│   ├── academic-research.md
...
└── SUMMARY.md
```
Links in table of content generated relative to the root dir, for example if i'm on the page `http://kgv.github.io/rust_book_ru/src/academic-research.html` link to README.html will be `http://kgv.github.io/rust_book_ru/src/README.html`, not `http://kgv.github.io/rust_book_ru/README.html`.
Now we use old version of rustbook.
Sorry for my english

9 years agoAuto merge of #26044 - nagisa:canonicalize-metadata-loader, r=alexcrichton
bors [Mon, 8 Jun 2015 17:44:30 +0000 (17:44 +0000)]
Auto merge of #26044 - nagisa:canonicalize-metadata-loader, r=alexcrichton

This might fail when --extern library is a symlink to an invalid location. Instead just pretend it
doesn’t exist at all.

Fixes #26006

9 years agoTranslate "ignored" closure expressions.
Eli Friedman [Sun, 7 Jun 2015 21:32:37 +0000 (14:32 -0700)]
Translate "ignored" closure expressions.

This isn't a very clean fix, but I'm not sure what a better fix would look
like.

Fixes #24779.

9 years agoAuto merge of #25989 - jooert:implement_rfc839, r=Gankro
bors [Mon, 8 Jun 2015 16:09:56 +0000 (16:09 +0000)]
Auto merge of #25989 - jooert:implement_rfc839, r=Gankro

I had to use `impl<'a, V: Copy> Extend<(usize, &'a V)> for VecMap<V>` instead of `impl<'a, V: Copy> Extend<(&'a usize, &'a V)> for VecMap<V>` as that's what is needed for doing

```rust
let mut a = VecMap::new();
let b = VecMap::new();
b.insert(1, "foo");

a.extend(&b)
```

I can squash the commits after review.

r? @Gankro

9 years agoUpdated with requested changes
Mathieu David [Mon, 8 Jun 2015 16:01:40 +0000 (18:01 +0200)]
Updated with requested changes

9 years agoReplace usage of String::from_str with String:from
Simon Sapin [Mon, 8 Jun 2015 14:55:35 +0000 (16:55 +0200)]
Replace usage of String::from_str with String:from

9 years agoAuto merge of #26091 - chellmuth:pub-struct-field-span, r=nrc
bors [Mon, 8 Jun 2015 14:35:27 +0000 (14:35 +0000)]
Auto merge of #26091 - chellmuth:pub-struct-field-span, r=nrc

Issue: #26083

Re-submitting https://github.com/rust-lang/rust/pull/26084

r? @nrc

9 years agoAuto merge of #26088 - tamird:llvm35-fixes, r=alexcrichton
bors [Mon, 8 Jun 2015 11:55:04 +0000 (11:55 +0000)]
Auto merge of #26088 - tamird:llvm35-fixes, r=alexcrichton

rebase of #25739, closes #25739. r? @alexcrichton

9 years agoImplement RFC 839
Johannes Oertel [Wed, 3 Jun 2015 10:38:42 +0000 (12:38 +0200)]
Implement RFC 839

Closes #25976.

9 years agoAuto merge of #26029 - GuillaumeGomez:const_check, r=Manishearth
bors [Mon, 8 Jun 2015 09:54:32 +0000 (09:54 +0000)]
Auto merge of #26029 - GuillaumeGomez:const_check, r=Manishearth

Part of #24407.

9 years agoAdd error explanation for E0014
Guillaume Gomez [Fri, 5 Jun 2015 10:40:18 +0000 (12:40 +0200)]
Add error explanation for E0014

9 years agoAuto merge of #25823 - oli-obk:static_to_const_lint, r=alexcrichton
bors [Mon, 8 Jun 2015 04:54:59 +0000 (04:54 +0000)]
Auto merge of #25823 - oli-obk:static_to_const_lint, r=alexcrichton

r? @eddyb

9 years agoAdd license
Chris Hellmuth [Mon, 8 Jun 2015 04:33:54 +0000 (22:33 -0600)]
Add license

9 years agoAuto merge of #26018 - nrc:codegen, r=@nikomatsakis
bors [Mon, 8 Jun 2015 03:22:02 +0000 (03:22 +0000)]
Auto merge of #26018 - nrc:codegen, r=@nikomatsakis

Closes #19826

r? @nikomatsakis

There is still some work to do until parallel codegen is perfect - we don't pass make check due to missing the symbol for registering a macro. But we do bootstrap with codegen_units=4 and pass make check without codegen_units, so I think it should land.

For the curious, make rustc-stage2 -j8:

```
codegen_units=1:

real  9m18.074s
user  11m59.858s
sys 0m13.281s

codegen_units=4:

real  6m3.672s
user  13m5.474s
sys 0m12.146s
```

Which is a 33% speedup :-)

9 years agorustc_trans: 'assume' intrinsic is only available on LLVM >= 3.6
David Voit [Sat, 23 May 2015 21:33:37 +0000 (23:33 +0200)]
rustc_trans: 'assume' intrinsic is only available on LLVM >= 3.6

Based on the patch from Luca Bruno.

Instead of creating an empty C function in the rt, this version creates an shim
noop function using llvm. This function is declared as internal, and the
unsupported assume intrinsic and the shim gets completly removed by the
optimizer.

9 years agorustc_trans: don't hardcode llvm version for conditional intrinsics
Luca Bruno [Sat, 24 Jan 2015 11:00:35 +0000 (12:00 +0100)]
rustc_trans: don't hardcode llvm version for conditional intrinsics

This commit introduce a third parameter for compatible_ifn!, as new
intrinsics are being added in recent LLVM releases and there is no
need to hardcode a specific case.

Signed-off-by: Luca Bruno <lucab@debian.org>
9 years agoRemove useless `const`
Tamir Duberstein [Sat, 30 May 2015 13:50:12 +0000 (09:50 -0400)]
Remove useless `const`

9 years agoAuto merge of #26087 - fitzgen:improve-suggestion-hueristics, r=Aatch
bors [Mon, 8 Jun 2015 01:48:59 +0000 (01:48 +0000)]
Auto merge of #26087 - fitzgen:improve-suggestion-hueristics, r=Aatch

This makes the maximum edit distance of typo suggestions a function of the typo'd name's length. FWIW, clang uses this same hueristic, and I've found their suggestions to be better than rustc's. Without something like this, you end up with suggestions that aren't related at all when there are short variable names.

See also https://github.com/rust-lang/rust/issues/20028#issuecomment-109767159

9 years agoMake the maximum edit distance of typo suggestions a function of the typo'd name...
Nick Fitzgerald [Mon, 8 Jun 2015 00:56:18 +0000 (17:56 -0700)]
Make the maximum edit distance of typo suggestions a function of the typo'd name's length.

9 years agoerror due to rebase
Nick Cameron [Mon, 8 Jun 2015 00:18:29 +0000 (12:18 +1200)]
error due to rebase

9 years agoreview changes - only show closure ids in verbose mode
Nick Cameron [Sun, 7 Jun 2015 23:40:56 +0000 (11:40 +1200)]
review changes - only show closure ids in verbose mode

9 years agoDon't visit items in removed branches
Nick Cameron [Thu, 4 Jun 2015 02:04:37 +0000 (14:04 +1200)]
Don't visit items in removed branches

Note that they will be visited anyway by base::trans_item, this just duplicates the items.

9 years agoTidying up, fix some minor linkage bugs, use ty flags to avoid caching closure types.
Nick Cameron [Tue, 2 Jun 2015 23:31:23 +0000 (11:31 +1200)]
Tidying up, fix some minor linkage bugs, use ty flags to avoid caching closure types.

9 years agoAdd a regression test for public struct field spans
Chris Hellmuth [Sun, 7 Jun 2015 23:29:09 +0000 (17:29 -0600)]
Add a regression test for public struct field spans

9 years agoStructField span should include `pub`
Chris Hellmuth [Sun, 7 Jun 2015 22:34:03 +0000 (16:34 -0600)]
StructField span should include `pub`

9 years agoAuto merge of #25912 - tshepang:better-str-examples, r=bluss
bors [Sun, 7 Jun 2015 20:59:20 +0000 (20:59 +0000)]
Auto merge of #25912 - tshepang:better-str-examples, r=bluss

9 years agoDeprecate String::from_str in favor of String::from
Simon Sapin [Sun, 7 Jun 2015 20:36:58 +0000 (22:36 +0200)]
Deprecate String::from_str in favor of String::from

With the latter is provided by the `From` conversion trait, the former is now completely redundant. Their code is identical.

9 years agoAuto merge of #26070 - brson:nightlyfix, r=alexcrichton
bors [Sun, 7 Jun 2015 19:25:56 +0000 (19:25 +0000)]
Auto merge of #26070 - brson:nightlyfix, r=alexcrichton

Broken on nightly linux distcheck.

9 years agodoc: improve some of str examples
Tshepang Lekhonkhobe [Sat, 30 May 2015 20:13:34 +0000 (22:13 +0200)]
doc: improve some of str examples

9 years agotest: Ignore gdb-pretty-struct-and-enums.rs
Brian Anderson [Sun, 7 Jun 2015 18:09:12 +0000 (11:09 -0700)]
test: Ignore gdb-pretty-struct-and-enums.rs

Broken on nightly linux distcheck.

9 years agochange some statics to constants
Oliver 'ker' Schneider [Sun, 7 Jun 2015 17:50:13 +0000 (19:50 +0200)]
change some statics to constants

9 years agoDon’t ICE if fs::canonicalise fails in meta-load
Simonas Kazlauskas [Fri, 5 Jun 2015 22:13:19 +0000 (01:13 +0300)]
Don’t ICE if fs::canonicalise fails in meta-load

This might fail when --extern library is a symlink to an invalid location. Instead just pretend it
doesn’t exist at all.

9 years agoAuto merge of #26066 - steveklabnik:docs_on_a_plane, r=alexcrichton
bors [Sun, 7 Jun 2015 17:04:40 +0000 (17:04 +0000)]
Auto merge of #26066 - steveklabnik:docs_on_a_plane, r=alexcrichton

When things get stabilized, they don't always have their docs updated to remove the gate.

9 years agoAuto merge of #26057 - audebert:master, r=alexcrichton
bors [Sun, 7 Jun 2015 00:07:07 +0000 (00:07 +0000)]
Auto merge of #26057 - audebert:master, r=alexcrichton

The constraint referenced here is:

```rust
fn foo<T>(t: T) where T: Trait<AssociatedType=u32> { /* */ }
```

9 years agoRemove many unneeded feature annotations in the docs
Steve Klabnik [Sat, 6 Jun 2015 22:58:35 +0000 (18:58 -0400)]
Remove many unneeded feature annotations in the docs

When things get stabilized, they don't always have their docs updated to remove the gate.

9 years agoAuto merge of #26047 - chuckSMASH:patch-1, r=alexcrichton
bors [Sat, 6 Jun 2015 21:33:43 +0000 (21:33 +0000)]
Auto merge of #26047 - chuckSMASH:patch-1, r=alexcrichton

The sensible default used here for the version number in the
auto-generated Cargo.toml is 0.1.0, not 0.0.1 (at least as of cargo
0.2.0-nightly efb482d).

9 years agofix path in toc links
funkill [Sat, 6 Jun 2015 20:27:35 +0000 (23:27 +0300)]
fix path in toc links

9 years agoAuto merge of #26050 - bluss:linked-list, r=Gankro
bors [Sat, 6 Jun 2015 18:40:11 +0000 (18:40 +0000)]
Auto merge of #26050 - bluss:linked-list, r=Gankro

The recent bug that was found in LinkedList reminded me of some general cleanup
that's been waiting for some time.

- Use a loop from the front in Drop, it works just as well and without an unsafe block
- Change Rawlink methods to use `unsafe` in an idiomatic way. This does mean that
we need an unsafe block for each dereference of a raw link. Even then, the extent
of unsafe-critical code is even larger of course, since safety depends on the whole
data structure's integrity. This is a general problem we are aware of.
- Some cleanup just to try to decrease the amount of Rawlink handling.

9 years agolinked_list: Add Rawlink::from
Ulrik Sverdrup [Sat, 6 Jun 2015 12:26:40 +0000 (14:26 +0200)]
linked_list: Add Rawlink::from

9 years agolinked_list: Add method Node::set_next
Ulrik Sverdrup [Sat, 6 Jun 2015 12:26:40 +0000 (14:26 +0200)]
linked_list: Add method Node::set_next

9 years agolinked_list: Cleanup code in split_off
Ulrik Sverdrup [Sat, 6 Jun 2015 12:26:39 +0000 (14:26 +0200)]
linked_list: Cleanup code in split_off

9 years agoFix small typo in diagnostics.rs
Rémi Audebert [Sat, 6 Jun 2015 16:29:10 +0000 (18:29 +0200)]
Fix small typo in diagnostics.rs

9 years agoAuto merge of #26038 - eddyb:dst-nested, r=luqmana
bors [Sat, 6 Jun 2015 15:32:26 +0000 (15:32 +0000)]
Auto merge of #26038 - eddyb:dst-nested, r=luqmana

Allows `Rc<RefCell<Trait>>` and other containers. Fixes #25351.
r? @nrc This is the discussed strategy, more or less.

9 years agoAuto merge of #26045 - sourcefrog:patch-1, r=alexcrichton
bors [Sat, 6 Jun 2015 12:28:50 +0000 (12:28 +0000)]
Auto merge of #26045 - sourcefrog:patch-1, r=alexcrichton

File handles are inherited from, not by, the parent process

9 years agolinked_list: Use unsafe properly for Rawlink methods
Ulrik Sverdrup [Sat, 6 Jun 2015 12:26:39 +0000 (14:26 +0200)]
linked_list: Use unsafe properly for Rawlink methods

9 years agolinked_list: Use a safe loop in Drop
Ulrik Sverdrup [Sat, 6 Jun 2015 12:26:39 +0000 (14:26 +0200)]
linked_list: Use a safe loop in Drop

9 years agoAuto merge of #26041 - Nashenas88:sync-send-libcore-char, r=alexcrichton
bors [Sat, 6 Jun 2015 06:32:05 +0000 (06:32 +0000)]
Auto merge of #26041 - Nashenas88:sync-send-libcore-char, r=alexcrichton

This is a test for #22709.

9 years agoUpdated Cargo.toml version number output
Chuck Bassett [Sat, 6 Jun 2015 03:33:30 +0000 (23:33 -0400)]
Updated Cargo.toml version number output

The sensible default used here for the version number in the
auto-generated Cargo.toml is 0.1.0, not 0.0.1 (at least as of cargo
0.2.0-nightly).

9 years agofixup! Added test for Sync/Send on iterators within char. Added todo blocks for other...
Paul Faria [Sat, 6 Jun 2015 01:18:23 +0000 (21:18 -0400)]
fixup! Added test for Sync/Send on iterators within char. Added todo blocks for other files in libcore implementing iterators.

9 years agoAnother small grammar fix for process.rs
Martin Pool [Sat, 6 Jun 2015 00:32:34 +0000 (17:32 -0700)]
Another small grammar fix for process.rs

9 years agoDoc fix for process.rs
Martin Pool [Sat, 6 Jun 2015 00:27:04 +0000 (17:27 -0700)]
Doc fix for process.rs

File handles are inherited from, not by, the parent process

9 years agoAuto merge of #26032 - achiwhane:master, r=steveklabnik
bors [Fri, 5 Jun 2015 21:44:21 +0000 (21:44 +0000)]
Auto merge of #26032 - achiwhane:master, r=steveklabnik

Added a sentence that tells the user that using main.rs and/or lib.rs is required for Cargo.

9 years agoAdded test for Sync/Send on iterators within char. Added todo blocks for other files...
Paul Faria [Fri, 5 Jun 2015 21:42:51 +0000 (17:42 -0400)]
Added test for Sync/Send on iterators within char. Added todo blocks for other files in libcore implementing iterators.

9 years agoAuto merge of #26024 - Aatch:inline-as_bytes, r=Gankro
bors [Fri, 5 Jun 2015 18:47:38 +0000 (18:47 +0000)]
Auto merge of #26024 - Aatch:inline-as_bytes, r=Gankro

This wasn't marked inline, so wasn't being inlined cross-crate. It's
actually a no-op function, since it's a wrapper around `mem::transmute`.
Marking it inline means that programs calling it can see that it's a
no-op and act accordingly during optimisation.

9 years agoAllow nested generics for the last field of structs in unsizing.
Eduard Burtescu [Fri, 5 Jun 2015 17:49:23 +0000 (20:49 +0300)]
Allow nested generics for the last field of structs in unsizing.

9 years agoAuto merge of #26023 - arielb1:fast-sized, r=eddyb
bors [Fri, 5 Jun 2015 15:27:34 +0000 (15:27 +0000)]
Auto merge of #26023 - arielb1:fast-sized, r=eddyb

r? @eddyb

The change to `trans::common::type_is_sized` is because we currently abort, rather than return random results, on overflow.

9 years agofix test fallout
Ariel Ben-Yehuda [Fri, 5 Jun 2015 14:27:27 +0000 (17:27 +0300)]
fix test fallout

9 years agofix some errors
Akshay Chiwhane [Fri, 5 Jun 2015 13:56:42 +0000 (09:56 -0400)]
fix some errors

9 years agofix typo
Akshay Chiwhane [Fri, 5 Jun 2015 13:52:44 +0000 (09:52 -0400)]
fix typo

9 years agoedit for clarity and grammar
Akshay Chiwhane [Fri, 5 Jun 2015 13:50:27 +0000 (09:50 -0400)]
edit for clarity and grammar

9 years agoClarified naming convention for Cargo
Akshay Chiwhane [Fri, 5 Jun 2015 13:20:11 +0000 (09:20 -0400)]
Clarified naming convention for Cargo

Added a sentence that tells the user that using main.rs and/or lib.rs is required for Cargo.

9 years agoAuto merge of #26028 - steveklabnik:rollup, r=steveklabnik
bors [Fri, 5 Jun 2015 11:59:34 +0000 (11:59 +0000)]
Auto merge of #26028 - steveklabnik:rollup, r=steveklabnik

- Successful merges: #25925, #26001, #26010, #26011, #26017, #26020
- Failed merges:

9 years agoRollup merge of #26020 - frewsxcv:patch-24, r=steveklabnik
Steve Klabnik [Fri, 5 Jun 2015 09:20:29 +0000 (11:20 +0200)]
Rollup merge of #26020 - frewsxcv:patch-24, r=steveklabnik

9 years agoRollup merge of #26017 - Stebalien:fix-rustdoc, r=alexcrichton
Steve Klabnik [Fri, 5 Jun 2015 09:20:28 +0000 (11:20 +0200)]
Rollup merge of #26017 - Stebalien:fix-rustdoc, r=alexcrichton

rust-example-rendered should be a class, not an id.

fixes #26013

9 years agoRollup merge of #26011 - genodeftest:patch-1, r=steveklabnik
Steve Klabnik [Fri, 5 Jun 2015 09:20:28 +0000 (11:20 +0200)]
Rollup merge of #26011 - genodeftest:patch-1, r=steveklabnik

9 years agoRollup merge of #26010 - ranma42:improve-doc, r=steveklabnik
Steve Klabnik [Fri, 5 Jun 2015 09:20:28 +0000 (11:20 +0200)]
Rollup merge of #26010 - ranma42:improve-doc, r=steveklabnik

The statement is not completely exact, because it is valid to have
both 0 non-mutable references and 1 mutable reference. Instead, use
the same wording as in mutability.md.

9 years agoRollup merge of #26001 - sae-bom:master, r=alexcrichton
Steve Klabnik [Fri, 5 Jun 2015 09:20:28 +0000 (11:20 +0200)]
Rollup merge of #26001 - sae-bom:master, r=alexcrichton

fixed build fail on aarch64-android
by support aarch64-android raw type definitions

9 years agoRollup merge of #25925 - azerupi:patch-4, r=steveklabnik
Steve Klabnik [Fri, 5 Jun 2015 09:20:28 +0000 (11:20 +0200)]
Rollup merge of #25925 - azerupi:patch-4, r=steveklabnik

Hi

I added a little section in the for loops about the `enumerate()` function.
I think it's useful for beginners to know this function and how you can use it.

I used the title loopcounter, but it's probably not the best word to describe it. So let me know if there is a better word :)

9 years agoAuto merge of #26008 - Marwes:arc_rc_as_ref, r=alexcrichton
bors [Fri, 5 Jun 2015 08:30:33 +0000 (08:30 +0000)]
Auto merge of #26008 - Marwes:arc_rc_as_ref, r=alexcrichton

The implementations are straightforward, I only hope I got the stability attributes correct(?).

9 years agoAuto merge of #26004 - alexcrichton:msvc-llvm-assertions, r=brson
bors [Fri, 5 Jun 2015 05:11:01 +0000 (05:11 +0000)]
Auto merge of #26004 - alexcrichton:msvc-llvm-assertions, r=brson

If LLVM assertions are enabled for MSVC, it looks like the output directory is
still just `Release` (or assertions are just always ignored on MSVC).

9 years agoMark std::as_bytes as inline
James Miller [Thu, 4 Jun 2015 04:20:48 +0000 (16:20 +1200)]
Mark std::as_bytes as inline

This wasn't marked inline, so wasn't being inlined cross-crate. It's
actually a no-op function, since it's a wrapper around `mem::transmute`.
Marking it inline means that programs calling it can see that it's a
no-op and act accordingly during optimisation.

9 years agoAuto merge of #26022 - Gankro:fix-linked-list, r=huonw
bors [Fri, 5 Jun 2015 01:10:59 +0000 (01:10 +0000)]
Auto merge of #26022 - Gankro:fix-linked-list, r=huonw

Still running tests...

9 years agoproperly null out ptr in LinkedList::split_off - fixes #26020
Alexis Beingessner [Fri, 5 Jun 2015 00:18:27 +0000 (17:18 -0700)]
properly null out ptr in LinkedList::split_off - fixes #26020

9 years agoIntroduce a fast-path for type_is_sized/type_moves_by_default
Ariel Ben-Yehuda [Fri, 5 Jun 2015 00:50:49 +0000 (03:50 +0300)]
Introduce a fast-path for type_is_sized/type_moves_by_default

This seems to improve performance by the same 2-3% of my selection
fast-path.

9 years agoDoc-comment fix; trait names are capitalized
Corey Farwell [Thu, 4 Jun 2015 23:45:43 +0000 (19:45 -0400)]
Doc-comment fix; trait names are capitalized

9 years agoFix order of rustdoc arguments.
Steven Allen [Thu, 4 Jun 2015 21:30:28 +0000 (17:30 -0400)]
Fix order of rustdoc arguments.

rust-example-rendered should be a class, not an id.

fixes #26013

9 years agoAuto merge of #25975 - arielb1:remove-param-space, r=nikomatsakis
bors [Thu, 4 Jun 2015 21:48:58 +0000 (21:48 +0000)]
Auto merge of #25975 - arielb1:remove-param-space, r=nikomatsakis

r? @nikomatsakis

9 years agoAuto merge of #25985 - bombless:patch-2, r=alexcrichton
bors [Thu, 4 Jun 2015 18:32:43 +0000 (18:32 +0000)]
Auto merge of #25985 - bombless:patch-2, r=alexcrichton

nNumberOfBytesToRead --> nNumberOfBytesToWrite
lpNumberOfBytesRead --> lpNumberOfBytesWritten
LPVOID --> LPCVOID

See <https://msdn.microsoft.com/en-us/library/windows/desktop/aa365747(v=vs.85).aspx>

9 years agoAuto merge of #26005 - Ms2ger:get_enum_variant_defs, r=Aatch
bors [Thu, 4 Jun 2015 14:57:18 +0000 (14:57 +0000)]
Auto merge of #26005 - Ms2ger:get_enum_variant_defs, r=Aatch

9 years ago[Documentation: Macros] Use some more SSL
Christian Stadelmann [Thu, 4 Jun 2015 13:53:22 +0000 (15:53 +0200)]
[Documentation: Macros] Use some more SSL

9 years agocrate libc: Correct signature of `WriteFile`
York Xiang [Wed, 3 Jun 2015 09:37:33 +0000 (17:37 +0800)]
crate libc: Correct signature of `WriteFile`

9 years ago[Documentation] Use SSL where possible
Christian Stadelmann [Thu, 4 Jun 2015 13:44:30 +0000 (15:44 +0200)]
[Documentation] Use SSL where possible

9 years agoMinor fix to docs of constraints on mut/non-mut references
Andrea Canciani [Thu, 4 Jun 2015 13:11:36 +0000 (15:11 +0200)]
Minor fix to docs of constraints on mut/non-mut references

The statement is not completely exact, because it is valid to have
both 0 non-mutable references and 1 mutable reference. Instead, use
the same wording as in mutability.md.

9 years agoAdded AsRef implementations for Arc and Rc
Markus Westerlind [Thu, 4 Jun 2015 12:35:04 +0000 (14:35 +0200)]
Added AsRef implementations for Arc and Rc

9 years agoAuto merge of #25981 - nham:fix_E0201, r=alexcrichton
bors [Thu, 4 Jun 2015 11:48:58 +0000 (11:48 +0000)]
Auto merge of #25981 - nham:fix_E0201, r=alexcrichton

It seems better to use "associated function" here. Methods are associated functions that take a `self` parameter.

9 years agoAuto merge of #26002 - Manishearth:rollup, r=Manishearth
bors [Thu, 4 Jun 2015 08:42:22 +0000 (08:42 +0000)]
Auto merge of #26002 - Manishearth:rollup, r=Manishearth

- Successful merges: #25900, #25987, #25988, #25990, #25994, #26000
- Failed merges:

9 years agoInline enum_variant_ids into its only caller.
Ms2ger [Thu, 4 Jun 2015 08:12:19 +0000 (10:12 +0200)]
Inline enum_variant_ids into its only caller.

9 years agoAuto merge of #25991 - Jexell:master, r=alexcrichton
bors [Thu, 4 Jun 2015 06:08:42 +0000 (06:08 +0000)]
Auto merge of #25991 - Jexell:master, r=alexcrichton

Removed an unnecessary `transmute` and replaced some code with an equivalent method.

9 years agoFix doctest (fixup \96#25900)
Manish Goregaokar [Thu, 4 Jun 2015 05:56:31 +0000 (11:26 +0530)]
Fix doctest (fixup \96#25900)

9 years agosupport aarch64-android raw type definitions
Sae-bom Kim [Thu, 4 Jun 2015 01:38:49 +0000 (10:38 +0900)]
support aarch64-android raw type definitions

9 years agoconfigure: Fix LLVM output dir on MSVC
Alex Crichton [Thu, 4 Jun 2015 05:08:47 +0000 (22:08 -0700)]
configure: Fix LLVM output dir on MSVC

If LLVM assertions are enabled for MSVC, it looks like the output directory is
still just `Release` (or assertions are just always ignored on MSVC).

9 years agoRollup merge of #26000 - heejongahn:master, r=alexcrichton
Manish Goregaokar [Thu, 4 Jun 2015 04:37:03 +0000 (10:07 +0530)]
Rollup merge of #26000 - heejongahn:master, r=alexcrichton

Added missing '>' at the end of my email address :)

9 years agoRollup merge of #25994 - marcusklaas:issue-25969, r=huonw
Manish Goregaokar [Thu, 4 Jun 2015 04:37:03 +0000 (10:07 +0530)]
Rollup merge of #25994 - marcusklaas:issue-25969, r=huonw

Issue: https://github.com/rust-lang/rust/issues/25969

Compare the span on the stable branch (correct) with the span on the nightly branch (incorrect) for the following example: http://is.gd/lTAo9c. This pull request fixes the regression.

@Manishearth has been kind enough to pitch some ideas for a regression test, mainly revolving around testing the span in compile-fail test, but this has proven unsuccessful. Other suggestions/ ideas would be much appreciated!

9 years agoRollup merge of #25990 - carols10cents:try-docs, r=nikomatsakis
Manish Goregaokar [Thu, 4 Jun 2015 04:37:02 +0000 (10:07 +0530)]
Rollup merge of #25990 - carols10cents:try-docs, r=nikomatsakis

The API documentation is not explicit enough that because `try!` returns
`Err` early for you, you can only use it in functions that return
`Result`. The book mentions this, but if you come across `try!` outside
of the book and look it up in the docs, this restriction on the return
type of the function is not particularly clear.

I seriously had this epiphany a few days ago after working with Rust for MONTHS, and after seeing [a friend have to come to the same realization](http://joelmccracken.github.io/entries/a-simple-web-app-in-rust-pt-2a/), I'd like to save more people from this confusion :) :sparkling_heart: