Nick Cameron
e9db5fb202
Tidying up, fix some minor linkage bugs, use ty flags to avoid caching closure types.
2015-06-08 11:41:48 +12:00
bors
8f9f2fe97e
Auto merge of #25912 - tshepang:better-str-examples, r=bluss
2015-06-07 20:59:20 +00:00
bors
776f87ef9e
Auto merge of #26070 - brson:nightlyfix, r=alexcrichton
...
Broken on nightly linux distcheck.
2015-06-07 19:25:56 +00:00
Tshepang Lekhonkhobe
0335a94a68
doc: improve some of str examples
2015-06-07 20:58:47 +02:00
Brian Anderson
b26a48868c
test: Ignore gdb-pretty-struct-and-enums.rs
...
Broken on nightly linux distcheck.
2015-06-07 11:10:56 -07:00
bors
64d32b057e
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.
2015-06-07 17:04:40 +00:00
bors
ae74652b4a
Auto merge of #26057 - audebert:master, r=alexcrichton
...
The constraint referenced here is:
```rust
fn foo<T>(t: T) where T: Trait<AssociatedType=u32> { /* */ }
```
2015-06-07 00:07:07 +00:00
Steve Klabnik
a3b19c8858
Remove many unneeded feature annotations in the docs
...
When things get stabilized, they don't always have their docs updated to remove the gate.
2015-06-06 18:58:35 -04:00
bors
72b03e5337
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).
2015-06-06 21:33:43 +00:00
bors
98f6e40b6e
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.
2015-06-06 18:40:11 +00:00
Ulrik Sverdrup
32037a5696
linked_list: Add Rawlink::from
2015-06-06 20:05:39 +02:00
Ulrik Sverdrup
16cefab795
linked_list: Add method Node::set_next
2015-06-06 20:05:39 +02:00
Ulrik Sverdrup
201852e56a
linked_list: Cleanup code in split_off
2015-06-06 20:05:38 +02:00
Rémi Audebert
27dd0dda1b
Fix small typo in diagnostics.rs
2015-06-06 18:32:49 +02:00
bors
bfd072db45
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.
2015-06-06 15:32:26 +00:00
bors
d6b82428b5
Auto merge of #26045 - sourcefrog:patch-1, r=alexcrichton
...
File handles are inherited from, not by, the parent process
2015-06-06 12:28:50 +00:00
Ulrik Sverdrup
289d5db409
linked_list: Use unsafe properly for Rawlink methods
2015-06-06 14:26:39 +02:00
Ulrik Sverdrup
a090e1f411
linked_list: Use a safe loop in Drop
2015-06-06 14:26:39 +02:00
bors
c21fd9a34f
Auto merge of #26041 - Nashenas88:sync-send-libcore-char, r=alexcrichton
...
This is a test for #22709 .
2015-06-06 06:32:05 +00:00
Chuck Bassett
1826672c06
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).
2015-06-05 23:33:30 -04:00
Paul Faria
847d03e497
fixup! Added test for Sync/Send on iterators within char. Added todo blocks for other files in libcore implementing iterators.
2015-06-05 21:18:23 -04:00
Martin Pool
17d76b350b
Another small grammar fix for process.rs
2015-06-05 17:32:34 -07:00
Martin Pool
cd90854899
Doc fix for process.rs
...
File handles are inherited from, not by, the parent process
2015-06-05 17:27:04 -07:00
bors
0b0c89efb3
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.
2015-06-05 21:44:21 +00:00
Paul Faria
db2f9d2b6a
Added test for Sync/Send on iterators within char. Added todo blocks for other files in libcore implementing iterators.
2015-06-05 17:43:17 -04:00
bors
c78c0994b1
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.
2015-06-05 18:47:38 +00:00
Eduard Burtescu
01dee1b77e
Allow nested generics for the last field of structs in unsizing.
2015-06-05 20:49:23 +03:00
bors
75fb009c76
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.
2015-06-05 15:27:34 +00:00
Ariel Ben-Yehuda
39e6855966
fix test fallout
2015-06-05 17:27:27 +03:00
Akshay Chiwhane
ac3301ec3b
fix some errors
2015-06-05 09:56:42 -04:00
Akshay Chiwhane
455b93151d
fix typo
2015-06-05 09:52:44 -04:00
Akshay Chiwhane
629be845fd
edit for clarity and grammar
2015-06-05 09:50:27 -04:00
Akshay Chiwhane
f9bfebb790
Clarified naming convention for Cargo
...
Added a sentence that tells the user that using main.rs and/or lib.rs is required for Cargo.
2015-06-05 09:20:11 -04:00
bors
19a39710c4
Auto merge of #26028 - steveklabnik:rollup, r=steveklabnik
...
- Successful merges: #25925 , #26001 , #26010 , #26011 , #26017 , #26020
- Failed merges:
2015-06-05 11:59:34 +00:00
Steve Klabnik
eb6a70cbab
Rollup merge of #26020 - frewsxcv:patch-24, r=steveklabnik
2015-06-05 11:20:29 +02:00
Steve Klabnik
e0f6ed8595
Rollup merge of #26017 - Stebalien:fix-rustdoc, r=alexcrichton
...
rust-example-rendered should be a class, not an id.
fixes #26013
2015-06-05 11:20:28 +02:00
Steve Klabnik
c0d8be4094
Rollup merge of #26011 - genodeftest:patch-1, r=steveklabnik
2015-06-05 11:20:28 +02:00
Steve Klabnik
f1dd27524a
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.
2015-06-05 11:20:28 +02:00
Steve Klabnik
0571726d90
Rollup merge of #26001 - sae-bom:master, r=alexcrichton
...
fixed build fail on aarch64-android
by support aarch64-android raw type definitions
2015-06-05 11:20:28 +02:00
Steve Klabnik
2bcb07933f
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 :)
2015-06-05 11:20:28 +02:00
bors
ef72938a8b
Auto merge of #26008 - Marwes:arc_rc_as_ref, r=alexcrichton
...
The implementations are straightforward, I only hope I got the stability attributes correct(?).
2015-06-05 08:30:33 +00:00
bors
d95df9a3a9
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).
2015-06-05 05:11:01 +00:00
James Miller
beadbfd194
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.
2015-06-05 13:53:55 +12:00
bors
da0d45243b
Auto merge of #26022 - Gankro:fix-linked-list, r=huonw
...
Still running tests...
2015-06-05 01:10:59 +00:00
Alexis Beingessner
e12d3869e3
properly null out ptr in LinkedList::split_off - fixes #26020
2015-06-04 18:01:27 -07:00
Ariel Ben-Yehuda
595409df06
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.
2015-06-05 03:50:49 +03:00
Corey Farwell
536c244be3
Doc-comment fix; trait names are capitalized
2015-06-04 19:45:43 -04:00
Steven Allen
4c5029a600
Fix order of rustdoc arguments.
...
rust-example-rendered should be a class, not an id.
fixes #26013
2015-06-04 18:03:51 -04:00
bors
e0ca6b1a31
Auto merge of #25975 - arielb1:remove-param-space, r=nikomatsakis
...
r? @nikomatsakis
2015-06-04 21:48:58 +00:00
bors
20cf4cf62c
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 >
2015-06-04 18:32:43 +00:00