]> git.lizzy.rs Git - rust.git/log
rust.git
8 years agoAuto merge of #27495 - tshepang:patch-6, r=Gankro
bors [Mon, 3 Aug 2015 16:51:28 +0000 (16:51 +0000)]
Auto merge of #27495 - tshepang:patch-6, r=Gankro

8 years agoAuto merge of #27488 - Gankro:uninit-docs, r=bluss
bors [Mon, 3 Aug 2015 14:16:52 +0000 (14:16 +0000)]
Auto merge of #27488 - Gankro:uninit-docs, r=bluss

Inspired by https://github.com/rust-lang/rust/issues/27484

8 years agoreference: follow idiom in this tiny snippet
Tshepang Lekhonkhobe [Mon, 3 Aug 2015 14:07:36 +0000 (16:07 +0200)]
reference: follow idiom in this tiny snippet

8 years agovastly expand on the mem::uninitialized docs
Alexis Beingessner [Mon, 3 Aug 2015 05:04:32 +0000 (22:04 -0700)]
vastly expand on the mem::uninitialized docs

8 years agoAuto merge of #27475 - AgostonSzepessy:master, r=alexcrichton
bors [Mon, 3 Aug 2015 01:03:50 +0000 (01:03 +0000)]
Auto merge of #27475 - AgostonSzepessy:master, r=alexcrichton

8 years agoAuto merge of #27476 - Manishearth:rollup, r=Manishearth
bors [Sun, 2 Aug 2015 21:04:21 +0000 (21:04 +0000)]
Auto merge of #27476 - Manishearth:rollup, r=Manishearth

- Successful merges: #27464, #27473
- Failed merges:

8 years agoRollup merge of #27473 - brson:stddocs, r=Gankro
Manish Goregaokar [Sun, 2 Aug 2015 21:03:53 +0000 (02:33 +0530)]
Rollup merge of #27473 - brson:stddocs, r=Gankro

This removes some of the more casual language.

The only outright goofiness I couldn't bear to remove is "these modules are the bedrock upon which all of Rust is forged, and they have mighty names like `std::slice` and `std::cmp`", which I believe the greatest sentence I have ever created.

8 years agoRollup merge of #27464 - killercup:patch-16, r=Gankro
Manish Goregaokar [Sun, 2 Aug 2015 21:03:52 +0000 (02:33 +0530)]
Rollup merge of #27464 - killercup:patch-16, r=Gankro

Because Markdown.

8 years agoAdded error explanation for E0384.
Agoston Szepessy [Sun, 2 Aug 2015 19:30:06 +0000 (15:30 -0400)]
Added error explanation for E0384.

8 years agoAuto merge of #27305 - KieranHunt:master, r=steveklabnik
bors [Sun, 2 Aug 2015 19:08:21 +0000 (19:08 +0000)]
Auto merge of #27305 - KieranHunt:master, r=steveklabnik

I found that the book had little information for `loop`s and `loop` label so I've added some.

8 years agostd: Tighten up crate docs
Brian Anderson [Sun, 2 Aug 2015 18:04:30 +0000 (11:04 -0700)]
std: Tighten up crate docs

8 years agoAuto merge of #27469 - SimonSapin:patch-6, r=Gankro
bors [Sun, 2 Aug 2015 16:03:46 +0000 (16:03 +0000)]
Auto merge of #27469 - SimonSapin:patch-6, r=Gankro

8 years agoDocs: clarify return value of std::io::Seek::seek
Simon Sapin [Sun, 2 Aug 2015 12:15:00 +0000 (14:15 +0200)]
Docs: clarify return value of std::io::Seek::seek

8 years agoTRPL: Add Newline Before Headline
Pascal Hertleif [Sun, 2 Aug 2015 10:32:14 +0000 (12:32 +0200)]
TRPL: Add Newline Before Headline

Because Markdown.

8 years agoAuto merge of #27205 - Gankro:travis-extreme, r=alexcrichton
bors [Sun, 2 Aug 2015 02:42:24 +0000 (02:42 +0000)]
Auto merge of #27205 - Gankro:travis-extreme, r=alexcrichton

Only `make -j4` takes ~50 mins
`make check` bumps it up to ~1hr 30min

Travis seems more than happy to let this happen.

Time limits appear to be meaningless.

Similar to the previous PR, it's easy to tell how much your PR definitely builds by checking the current logs or just considering how long it's been building for.

8 years agoAuto merge of #27459 - da-kid:master, r=steveklabnik
bors [Sat, 1 Aug 2015 22:23:22 +0000 (22:23 +0000)]
Auto merge of #27459 - da-kid:master, r=steveklabnik

Sorry :/

8 years agoAdding an ignore annotation to an infinite loop so that it wont hang the tester.
Kieran Hunt [Sat, 1 Aug 2015 20:02:00 +0000 (22:02 +0200)]
Adding an ignore annotation to an infinite loop so that it wont hang the tester.

8 years agoFix off-by-one error
Daniel Albert [Sat, 1 Aug 2015 18:53:19 +0000 (20:53 +0200)]
Fix off-by-one error

8 years agoAuto merge of #27453 - Manishearth:rollup, r=Manishearth
bors [Sat, 1 Aug 2015 08:36:59 +0000 (08:36 +0000)]
Auto merge of #27453 - Manishearth:rollup, r=Manishearth

- Successful merges: #26982, #27305, #27419, #27423, #27426
- Failed merges:

8 years agoRollup merge of #27426 - FuGangqiang:master, r=alexcrichton
Manish Goregaokar [Sat, 1 Aug 2015 07:01:24 +0000 (12:31 +0530)]
Rollup merge of #27426 - FuGangqiang:master, r=alexcrichton

8 years agoRollup merge of #27423 - oli-obk:patch-1, r=Gankro
Manish Goregaokar [Sat, 1 Aug 2015 07:01:24 +0000 (12:31 +0530)]
Rollup merge of #27423 - oli-obk:patch-1, r=Gankro

8 years agoRollup merge of #27419 - cpjreynolds:master, r=Gankro
Manish Goregaokar [Sat, 1 Aug 2015 07:01:23 +0000 (12:31 +0530)]
Rollup merge of #27419 - cpjreynolds:master, r=Gankro

Corrects formatting of bullet-ed sentences and changes 'pervasive use raw pointers' to 'pervasive use of raw pointers'.

8 years agoRollup merge of #26982 - nham:orphan-explanations, r=Gankro
Manish Goregaokar [Sat, 1 Aug 2015 07:01:23 +0000 (12:31 +0530)]
Rollup merge of #26982 - nham:orphan-explanations, r=Gankro

part of #24407

I'm not sure whether I should be trying to explain the general rule in the E0210 explanation or just point people to the RFC. However, if we go with the latter option I think that the RFC will need to be revised slightly, since it is not quite as gentle as I would like.

Also, the link to RFC 1023 is not the correct one (it should be https://github.com/rust-lang/rfcs/blob/master/text/1023-rebalancing-coherence.md), but the correct one is too long. I'm aware of @michaelsproul's PR https://github.com/rust-lang/rust/pull/26290 from awhile back, but it doesn't seem to be working. Has there not been a new snapshot yet?

8 years agoAuto merge of #27447 - eefriedman:parser-cleanup, r=alexcrichton
bors [Sat, 1 Aug 2015 04:49:02 +0000 (04:49 +0000)]
Auto merge of #27447 - eefriedman:parser-cleanup, r=alexcrichton

8 years agoAuto merge of #27441 - dhuseby:adding_freebsd32_snap, r=brson
bors [Sat, 1 Aug 2015 03:14:38 +0000 (03:14 +0000)]
Auto merge of #27441 - dhuseby:adding_freebsd32_snap, r=brson

@alexcrichton please upload the FreeBSD 32-bit snapshot file when landing this patch:
https://github.com/dhuseby/rust-manual-snapshots/raw/master/rust-stage0-2015-07-26-a5c12f4-freebsd-i386-2fee22adec101e2f952a5548fd1437ce1bd8d26f.tar.bz2

8 years agoAuto merge of #27440 - dhuseby:fixing_freebsd_unused_import, r=alexcrichton
bors [Sat, 1 Aug 2015 01:25:31 +0000 (01:25 +0000)]
Auto merge of #27440 - dhuseby:fixing_freebsd_unused_import, r=alexcrichton

@alexcrichton fixes the build bot failures due to unused imports being treated as errors.

8 years agoAuto merge of #27437 - retep998:win10-sdk, r=alexcrichton
bors [Fri, 31 Jul 2015 23:51:25 +0000 (23:51 +0000)]
Auto merge of #27437 - retep998:win10-sdk, r=alexcrichton

r? @alexcrichton

8 years agoAuto merge of #27432 - sanxiyn:impl-dotdot, r=sfackler
bors [Fri, 31 Jul 2015 22:17:12 +0000 (22:17 +0000)]
Auto merge of #27432 - sanxiyn:impl-dotdot, r=sfackler

Fix #27255.

8 years agoAuto merge of #27424 - jashank:patch-1, r=alexcrichton
bors [Fri, 31 Jul 2015 19:33:02 +0000 (19:33 +0000)]
Auto merge of #27424 - jashank:patch-1, r=alexcrichton

#27360 removed a padding field full of uint8_t's, but didn't remove
the use.  This didn't get picked up presumably because (a) bors
doesn't have any BSD builders, and/or (b) #[cfg]'d out blocks don't
get linted.

```
rustc: x86_64-unknown-freebsd/stage1/lib/rustlib/x86_64-unknown-freebsd/lib/liblibc
src/liblibc/lib.rs:1099:42: 1099:49 error: unused import, #[deny(unused_imports)] on by default
src/liblibc/lib.rs:1099                 use types::common::c99::{uint8_t, uint32_t, int32_t};
                                                                 ^~~~~~~
error: aborting due to previous error
fatal runtime error: Could not unwind stack, error = 159555904
```

8 years agoadds FreeBSD i686 snapshot
Dave Huseby [Fri, 31 Jul 2015 18:58:38 +0000 (11:58 -0700)]
adds FreeBSD i686 snapshot

8 years agoAdd Win10 SDK lib subfolder name
Peter Atashian [Fri, 31 Jul 2015 18:40:05 +0000 (14:40 -0400)]
Add Win10 SDK lib subfolder name

Signed-off-by: Peter Atashian <retep998@gmail.com>
8 years agoAuto merge of #27418 - taliesinb:tarpl-typo, r=alexcrichton
bors [Fri, 31 Jul 2015 17:55:22 +0000 (17:55 +0000)]
Auto merge of #27418 - taliesinb:tarpl-typo, r=alexcrichton

this makes the second code block consistent with the first code block -- other than being in reversed order, the first code block claims b is u16 and c is u32, whereas the second code block claims the opposite. seems to be an obvious typo.

8 years agofixes unused import compile failure
Dave Huseby [Fri, 31 Jul 2015 16:19:02 +0000 (09:19 -0700)]
fixes unused import compile failure

8 years agoAuto merge of #27414 - Gankro:tarpl-fixes, r=alexcrichton
bors [Fri, 31 Jul 2015 15:28:54 +0000 (15:28 +0000)]
Auto merge of #27414 - Gankro:tarpl-fixes, r=alexcrichton

This is *mostly* reducing *my* use of *italics* but there's some other misc changes interspersed as I went along.

This updates the italicizing alphabetically from `a` to `ra`.

r? @steveklabnik

8 years agolast of the emphasis cleanup
Alexis Beingessner [Fri, 31 Jul 2015 05:48:36 +0000 (22:48 -0700)]
last of the emphasis cleanup

8 years agoAuto merge of #27431 - GuillaumeGomez:patch-3, r=Manishearth
bors [Fri, 31 Jul 2015 12:52:41 +0000 (12:52 +0000)]
Auto merge of #27431 - GuillaumeGomez:patch-3, r=Manishearth

8 years agoFix `impl A .. {}`
Seo Sanghyeon [Fri, 31 Jul 2015 12:24:55 +0000 (21:24 +0900)]
Fix `impl A .. {}`

8 years agoReplace "impls" by "implementations"
Guillaume Gomez [Fri, 31 Jul 2015 10:55:53 +0000 (12:55 +0200)]
Replace "impls" by "implementations"

8 years agotrpl: fix link error
FuGangqiang [Fri, 31 Jul 2015 08:25:17 +0000 (16:25 +0800)]
trpl: fix link error

8 years agoFix #27360's unused import
Jashank Jeremy [Fri, 31 Jul 2015 08:11:10 +0000 (18:11 +1000)]
Fix #27360's unused import

#27360 removed a padding field full of uint8_t's, but didn't remove
the use.  This didn't get picked up presumably because (a) bors
doesn't have any BSD builders, and/or (b) #[cfg]'d out blocks don't
get linted.

```
rustc: x86_64-unknown-freebsd/stage1/lib/rustlib/x86_64-unknown-freebsd/lib/liblibc
src/liblibc/lib.rs:1099:42: 1099:49 error: unused import, #[deny(unused_imports)] on by default
src/liblibc/lib.rs:1099                 use types::common::c99::{uint8_t, uint32_t, int32_t};
                                                                 ^~~~~~~
error: aborting due to previous error
fatal runtime error: Could not unwind stack, error = 159555904
```

8 years agofix code and error to match the surronding text
Oliver Schneider [Fri, 31 Jul 2015 07:32:53 +0000 (09:32 +0200)]
fix code and error to match the surronding text

8 years agoAuto merge of #27405 - brson:relnotes, r=alexcrichton
bors [Fri, 31 Jul 2015 06:09:29 +0000 (06:09 +0000)]
Auto merge of #27405 - brson:relnotes, r=alexcrichton

8 years agoAuto merge of #27382 - brson:gate-assoc-type, r=alexcrichton
bors [Fri, 31 Jul 2015 04:33:34 +0000 (04:33 +0000)]
Auto merge of #27382 - brson:gate-assoc-type, r=alexcrichton

There are still problems in both the design and implementation of this, so we don't want it landing in 1.2.

cc @arielb1 @nikomatsakis

cc #27364

r? @alexcrichton

8 years agoRemove unused code in parser.
Eli Friedman [Fri, 31 Jul 2015 03:51:51 +0000 (20:51 -0700)]
Remove unused code in parser.

8 years agoMinor grammatical changes to send-and-sync.
Cole Reynolds [Fri, 31 Jul 2015 03:40:04 +0000 (23:40 -0400)]
Minor grammatical changes to send-and-sync.

Corrects formatting of bullet-ed sentences and changes 'pervasive use raw pointers' to 'pervasive use of raw pointers'

8 years agofix switched-round 'b' and 'c'
Taliesin Beynon [Fri, 31 Jul 2015 03:16:56 +0000 (23:16 -0400)]
fix switched-round 'b' and 'c'

8 years agoAuto merge of #27370 - alexcrichton:stabilize-easy, r=brson
bors [Fri, 31 Jul 2015 02:57:34 +0000 (02:57 +0000)]
Auto merge of #27370 - alexcrichton:stabilize-easy, r=brson

The following APIs were all marked with a `#[stable]` tag:

* process::Child::id
* error::Error::is
* error::Error::downcast
* error::Error::downcast_ref
* error::Error::downcast_mut
* io::Error::get_ref
* io::Error::get_mut
* io::Error::into_inner
* hash::Hash::hash_slice
* hash::Hasher::write_{i,u}{8,16,32,64,size}

8 years agofrob emphasis
Alexis Beingessner [Fri, 31 Jul 2015 01:47:02 +0000 (18:47 -0700)]
frob emphasis

8 years agoAuto merge of #26897 - RalfJung:stdin-mut, r=alexcrichton
bors [Fri, 31 Jul 2015 01:21:23 +0000 (01:21 +0000)]
Auto merge of #26897 - RalfJung:stdin-mut, r=alexcrichton

This fixes #26890.

To be honest, the local compile-test is still running. This just takes so long. But this looks trivial enough...

8 years agomake the intro less scary
Alexis Beingessner [Thu, 30 Jul 2015 23:51:22 +0000 (16:51 -0700)]
make the intro less scary

8 years agoAuto merge of #27410 - Gankro:meta, r=alexcrichton
bors [Thu, 30 Jul 2015 23:45:43 +0000 (23:45 +0000)]
Auto merge of #27410 - Gankro:meta, r=alexcrichton

Fixes #27404

8 years agofix title-casing
Alexis Beingessner [Thu, 30 Jul 2015 23:39:46 +0000 (16:39 -0700)]
fix title-casing

8 years agofix rustdoc metadata parsing
Alexis Beingessner [Thu, 30 Jul 2015 22:29:34 +0000 (15:29 -0700)]
fix rustdoc metadata parsing

8 years agoFix tests
Brian Anderson [Thu, 30 Jul 2015 22:18:34 +0000 (15:18 -0700)]
Fix tests

8 years agoAuto merge of #27406 - alexcrichton:fix-no-run, r=Gankro
bors [Thu, 30 Jul 2015 22:06:27 +0000 (22:06 +0000)]
Auto merge of #27406 - alexcrichton:fix-no-run, r=Gankro

Needs the underscore for rustdoc to not actually run it.

8 years agoMore 1.2 relnotes
Brian Anderson [Thu, 30 Jul 2015 21:27:54 +0000 (14:27 -0700)]
More 1.2 relnotes

8 years agotarpl: Change norun to no_run
Alex Crichton [Thu, 30 Jul 2015 21:32:02 +0000 (14:32 -0700)]
tarpl: Change norun to no_run

Needs the underscore for rustdoc to not actually run it.

8 years agoAuto merge of #27388 - alexcrichton:remove-curious-inner, r=brson
bors [Thu, 30 Jul 2015 18:42:32 +0000 (18:42 +0000)]
Auto merge of #27388 - alexcrichton:remove-curious-inner, r=brson

This isn't actually necessary any more with the advent of `$crate` and changes
in the compiler to expand macros to `::core::$foo` in the context of a
`#![no_std]` crate.

The libcore inner module was also trimmed down a bit to the bare bones.

8 years agoAuto merge of #27399 - Gankro:race, r=alexcrichton
bors [Thu, 30 Jul 2015 16:18:32 +0000 (16:18 +0000)]
Auto merge of #27399 - Gankro:race, r=alexcrichton

r? @alexcrichton

8 years agoMaybe ignore the explicit examples of a race condition
Alexis Beingessner [Thu, 30 Jul 2015 15:49:17 +0000 (08:49 -0700)]
Maybe ignore the explicit examples of a race condition

8 years agoAuto merge of #27386 - chris-morgan:ctags-stuff-update, r=alexcrichton
bors [Thu, 30 Jul 2015 13:39:08 +0000 (13:39 +0000)]
Auto merge of #27386 - chris-morgan:ctags-stuff-update, r=alexcrichton

As there’s no C++ runtime any more there’s really no point in having anything but Rust tags being made.

I’ve also taken the liberty of excluding the compiler parts of this in the `librust%,,` pattern substitution. Whether or not this is “correct” will depend on whether you want tags for the compiler or for general use. For myself, I want it for general use.

I’m not sure how much people use the tags files anyway. I definitely do, but with Racer existing the tags files aren’t quite so necessary.

8 years agoAuto merge of #27385 - chris-morgan:core-panic-use-$crate, r=alexcrichton
bors [Thu, 30 Jul 2015 12:01:41 +0000 (12:01 +0000)]
Auto merge of #27385 - chris-morgan:core-panic-use-$crate, r=alexcrichton

I’ve been sitting on this one for ages now. Silly me, if only I had got on and submitted it earlier it’d be into the stable release by now…

8 years agoAuto merge of #27371 - Gankro:str-clone, r=alexcrichton
bors [Thu, 30 Jul 2015 10:25:23 +0000 (10:25 +0000)]
Auto merge of #27371 - Gankro:str-clone, r=alexcrichton

This is a minor [breaking-change], as it changes what
`boxed_str.to_owned()` does (previously it would deref to `&str` and
call `to_owned` on that to get a `String`). However `Box<str>` is such an
exceptionally rare type that this is not expected to be a serious
concern. Also a `Box<str>` can be freely converted to a `String` to
obtain the previous result anyway.

8 years agoAuto merge of #27392 - pnkfelix:rename-xpretty-as-unpretty, r=jroesch
bors [Thu, 30 Jul 2015 07:31:14 +0000 (07:31 +0000)]
Auto merge of #27392 - pnkfelix:rename-xpretty-as-unpretty, r=jroesch

Rename the unstable option `--xpretty` to `--unpretty`

(Inspired by discussion with Gankro.)

Make sure this gets a low priority if it gets r-plussed!

8 years agoAuto merge of #27174 - Gankro:rc-sat, r=alexcrichton
bors [Thu, 30 Jul 2015 05:54:55 +0000 (05:54 +0000)]
Auto merge of #27174 - Gankro:rc-sat, r=alexcrichton

See https://internals.rust-lang.org/t/rc-is-unsafe-mostly-on-32-bit-targets-due-to-overflow/2120 for detailed discussion of this problem.

8 years agoRemoving infinite loops file
Kieran Hunt [Thu, 30 Jul 2015 05:22:21 +0000 (07:22 +0200)]
Removing infinite loops file

8 years agoAuto merge of #27052 - wthrowe:atomic_send, r=Gankro
bors [Thu, 30 Jul 2015 04:18:50 +0000 (04:18 +0000)]
Auto merge of #27052 - wthrowe:atomic_send, r=Gankro

I think this was just missed when `Send` and `Sync` were redone, since it seems odd to not be able to use things like `Arc<AtomicPtr>`.  If it was intentional feel free to just close this.

I used another test as a template for writing mine, so I hope I got all the headers and stuff right.

8 years agoAuto merge of #26734 - Gankro:deprecate-vecmap, r=alexcrichton
bors [Thu, 30 Jul 2015 02:41:14 +0000 (02:41 +0000)]
Auto merge of #26734 - Gankro:deprecate-vecmap, r=alexcrichton

VecMap doesn't really fit with the current standard library's strategy (small!).

I've mirrored the code to https://github.com/contain-rs/vec-map

but @GBGamer has already claimed the name on crates.io a couple months ago for the same purpose. It hasn't been updated since, though.

CC @rust-lang/libs

8 years agoimplement Clone for Box<str>, closes #27323
Alexis Beingessner [Mon, 27 Jul 2015 16:06:00 +0000 (09:06 -0700)]
implement Clone for Box<str>, closes #27323

This is a minor [breaking-change], as it changes what
`boxed_str.to_owned()` does (previously it would deref to `&str` and
call `to_owned` on that to get a `String`). However `Box<str>` is such an
exceptionally rare type that this is not expected to be a serious
concern. Also a `Box<str>` can be freely converted to a `String` to
obtain the previous behaviour anyway.

8 years agoAuto merge of #27032 - Gankro:tarpl, r=aturon,acrichto,arielb,pnkfelix,nrc,nmatsakis...
bors [Thu, 30 Jul 2015 00:56:01 +0000 (00:56 +0000)]
Auto merge of #27032 - Gankro:tarpl, r=aturon,acrichto,arielb,pnkfelix,nrc,nmatsakis,huonw

I've been baking this out of tree for long enough. This is currently about ~2/5ths the size of TRPL. Time to get it in tree so it can be more widely maintained and scrutinized. I've preserved the whole gruesome history including various rewrites. I can definitely squash these a fair amount if desired. Some random people submitted minor fixes though, so they're mixed in.

Edit: forgot to link to rendered http://cglab.ca/~abeinges/blah/turpl/_book/

Edit2:

To streamline the review process, I'm going to break this into sections that need official "domain expert" approval:

# Summary

* [ ] references.md -- very important, needs work

* [x] Meet Safe and Unsafe: reviewed by @aturon
* [x] Data Layout: reviewed by @arielb1
* [x] Ownership: reviewed by @aturon ( and sorta @nikomatsakis ) -- significantly updated, may need re-r
* [x] Coversions:  reviewed by @nrc
* [x] Uninitialized Memory: reviewed by @pnkfelix
* [x] Ownership-Oriented Resource Management: reviewed by @aturon
* [x] Unwinding: reviewed by @alexcrichton
* [x] Concurrency: reviewed by @aturon
* [x] Implementing Vec:  r? @huonw

8 years agofix example code
Alexis Beingessner [Thu, 30 Jul 2015 00:15:11 +0000 (17:15 -0700)]
fix example code

8 years agomake Arc mem::forget safe
Alexis Beingessner [Tue, 21 Jul 2015 00:09:44 +0000 (17:09 -0700)]
make Arc mem::forget safe

8 years agomake Rc mem::forget safe
Alexis Beingessner [Mon, 20 Jul 2015 23:57:29 +0000 (16:57 -0700)]
make Rc mem::forget safe

8 years agoRename the unstable option `--xpretty` to `--unpretty`
Felix S. Klock II [Wed, 29 Jul 2015 23:33:38 +0000 (01:33 +0200)]
Rename the unstable option `--xpretty` to `--unpretty`

(Inspired by discussion with Gankro.)

8 years agoadd warning about reference section
Alexis Beingessner [Wed, 29 Jul 2015 22:55:19 +0000 (15:55 -0700)]
add warning about reference section

8 years agodeprecate vecmap
Alexis Beingessner [Thu, 2 Jul 2015 06:29:53 +0000 (23:29 -0700)]
deprecate vecmap

8 years agoFeature gate associated type defaults
Brian Anderson [Wed, 29 Jul 2015 19:01:09 +0000 (12:01 -0700)]
Feature gate associated type defaults

There are multiple issues with them as designed and implemented.

cc #27364

8 years agoAuto merge of #27383 - Manishearth:rollup, r=Manishearth
bors [Wed, 29 Jul 2015 21:29:03 +0000 (21:29 +0000)]
Auto merge of #27383 - Manishearth:rollup, r=Manishearth

- Successful merges: #26778, #27232, #27352, #27369, #27373
- Failed merges:

8 years agostd: Remove the curious inner module
Alex Crichton [Wed, 29 Jul 2015 21:14:01 +0000 (14:14 -0700)]
std: Remove the curious inner module

This isn't actually necessary any more with the advent of `$crate` and changes
in the compiler to expand macros to `::core::$foo` in the context of a
`#![no_std]` crate.

The libcore inner module was also trimmed down a bit to the bare bones.

8 years agoConsolidating loop information to a single page. Per PR #27305
Kieran Hunt [Wed, 29 Jul 2015 20:38:43 +0000 (22:38 +0200)]
Consolidating loop information to a single page. Per PR #27305

8 years agoUpdate the ctags rules and targets.
Chris Morgan [Wed, 29 Jul 2015 20:35:42 +0000 (06:35 +1000)]
Update the ctags rules and targets.

As there’s no C++ runtime any more there’s really no point in having
anything but Rust tags being made.

I’ve also taken the liberty of excluding the compiler parts of this in
the `librust%,,` pattern substitution. Whether or not this is “correct”
will depend on whether you want tags for the compiler or for general
use. For myself, I want it for general use.

I’m not sure how much people use the tags files anyway. I definitely do,
but with Racer existing the tags files aren’t quite so necessary.

8 years agoUse $crate in core::panic!
Chris Morgan [Wed, 29 Jul 2015 20:29:24 +0000 (06:29 +1000)]
Use $crate in core::panic!

8 years agoRollup merge of #27373 - alexcrichton:fix-wait-timeout-ms, r=brson
Manish Goregaokar [Wed, 29 Jul 2015 20:13:54 +0000 (01:43 +0530)]
Rollup merge of #27373 - alexcrichton:fix-wait-timeout-ms, r=brson

The API we're calling requires us to pass an absolute point in time as an
argument (`pthread_cond_timedwait`) so we call `gettimeofday` ahead of time to
then add the specified duration to. Unfortuantely the current "add the duration"
logic forgot to take into account the current time's sub-second precision (e.g.
the `tv_usec` field was ignored), causing sub-second duration waits to return
spuriously.

8 years agoRollup merge of #27369 - brson:realstd, r=alexcrichton
Manish Goregaokar [Wed, 29 Jul 2015 20:13:53 +0000 (01:43 +0530)]
Rollup merge of #27369 - brson:realstd, r=alexcrichton

Since most lang items are actually defined in core, these hack reexports don't actually
do anything useful.

8 years agoRollup merge of #27352 - nagisa:illegal-to-invalid-docs, r=steveklabnik
Manish Goregaokar [Wed, 29 Jul 2015 20:13:53 +0000 (01:43 +0530)]
Rollup merge of #27352 - nagisa:illegal-to-invalid-docs, r=steveklabnik

r? @steveklabnik

8 years agoRollup merge of #27232 - Dangthrimble:master, r=steveklabnik
Manish Goregaokar [Wed, 29 Jul 2015 20:13:53 +0000 (01:43 +0530)]
Rollup merge of #27232 - Dangthrimble:master, r=steveklabnik

Added definitions for 'Expression', 'Expression-Oriented Language' and 'Statement' to glossary.
Sorted the definitions alphabetically.

r? @steveklabnik

8 years agoRollup merge of #26778 - jawline:master, r=pnkfelix
Manish Goregaokar [Wed, 29 Jul 2015 20:13:52 +0000 (01:43 +0530)]
Rollup merge of #26778 - jawline:master, r=pnkfelix

Print the error message and then what is expected by the repeat count so the output makes more sense when there is an error in the const expression

8 years agoAuto merge of #27368 - alexcrichton:deprecate-net-methods, r=aturon
bors [Wed, 29 Jul 2015 19:50:52 +0000 (19:50 +0000)]
Auto merge of #27368 - alexcrichton:deprecate-net-methods, r=aturon

These methods are all covered by [RFC 1158] and are currently all available on
stable Rust via the [`net2` crate][net2] on crates.io. This commit does not
touch the timeout related functions as they're still waiting on `Duration` which
is unstable anyway, so punting in favor of the `net2` crate wouldn't buy much.

[RFC 1158]: https://github.com/rust-lang/rfcs/pull/1158
[net2]: http://crates.io/crates/net2

8 years agoAuto merge of #27353 - arielb1:parenthetical-error, r=steveklabnik
bors [Wed, 29 Jul 2015 18:10:48 +0000 (18:10 +0000)]
Auto merge of #27353 - arielb1:parenthetical-error, r=steveklabnik

This also calls the right API, which e.g. prevents a suggestion
for #![feature(unboxed_closures)] on stable.

Fixes #26970

r? @steveklabnik

8 years agoFormatting
Brian Anderson [Wed, 29 Jul 2015 17:31:07 +0000 (10:31 -0700)]
Formatting

8 years agostd: Fix sub-second Condvar::wait_timeout_ms
Alex Crichton [Wed, 29 Jul 2015 04:13:02 +0000 (21:13 -0700)]
std: Fix sub-second Condvar::wait_timeout_ms

The API we're calling requires us to pass an absolute point in time as an
argument (`pthread_cond_timedwait`) so we call `gettimeofday` ahead of time to
then add the specified duration to. Unfortuantely the current "add the duration"
logic forgot to take into account the current time's sub-second precision (e.g.
the `tv_usec` field was ignored), causing sub-second duration waits to return
spuriously.

8 years agoAuto merge of #27346 - dotdash:closure_dbg, r=michaelwoerister
bors [Wed, 29 Jul 2015 16:28:59 +0000 (16:28 +0000)]
Auto merge of #27346 - dotdash:closure_dbg, r=michaelwoerister

Closure variables represent the closure environment, not the closure
function, so the identifier used to ensure that the debuginfo is unique
for each kind of closure needs to be based on the closure upvars and not
the function signature.

8 years agoAuto merge of #27380 - steveklabnik:rollup, r=steveklabnik
bors [Wed, 29 Jul 2015 14:47:23 +0000 (14:47 +0000)]
Auto merge of #27380 - steveklabnik:rollup, r=steveklabnik

- Successful merges: #27102, #27286, #27313, #27325, #27326, #27327, #27341, #27342, #27343, #27345, #27350, #27355, #27374, #27375, #27379
- Failed merges:

8 years agoRollup merge of #27379 - jeehoonkang:master, r=steveklabnik
Steve Klabnik [Wed, 29 Jul 2015 14:30:37 +0000 (10:30 -0400)]
Rollup merge of #27379 - jeehoonkang:master, r=steveklabnik

As described in the module documentation, the memory orderings in Rust
are the same with that of LLVM.  However, the documentation for the
memory orderings enum says the memory orderings are the same of that of
C++.  Note that they differ in that C++'s support the consume reads,
while LLVM's does not.  Hence this commit fixes the bug in the
documentation for the enum.

8 years agoRollup merge of #27375 - niconii:vec-docs, r=Gankro
Steve Klabnik [Wed, 29 Jul 2015 14:30:36 +0000 (10:30 -0400)]
Rollup merge of #27375 - niconii:vec-docs, r=Gankro

Noticed that syntax like `vec![0; 5]` is never mentioned in `Vec<T>`'s docs, nor used in any of its methods' docs, so I figured I should add a mention of it. Also noticed `vec!(1, 2)` being used in one spot while I was at it, so I fixed that as well for consistency's sake.

r? @steveklabnik

8 years agoRollup merge of #27374 - dhuseby:fixing_configure_bsd, r=alexcrichton
Steve Klabnik [Wed, 29 Jul 2015 14:30:36 +0000 (10:30 -0400)]
Rollup merge of #27374 - dhuseby:fixing_configure_bsd, r=alexcrichton

FreeBSD uses ash, not bash.  The double bracket operators [[ and ]] are not supported.

8 years agoRollup merge of #27355 - krumelmonster:patch-1, r=alexcrichton
Steve Klabnik [Wed, 29 Jul 2015 14:30:36 +0000 (10:30 -0400)]
Rollup merge of #27355 - krumelmonster:patch-1, r=alexcrichton

Minor change in the book

8 years agoRollup merge of #27350 - GuillaumeGomez:patch-1, r=Manishearth
Steve Klabnik [Wed, 29 Jul 2015 14:30:36 +0000 (10:30 -0400)]
Rollup merge of #27350 - GuillaumeGomez:patch-1, r=Manishearth

cc #26970.

r? @Manishearth

8 years agoRollup merge of #27345 - killercup:patch-15, r=alexcrichton
Steve Klabnik [Wed, 29 Jul 2015 14:30:35 +0000 (10:30 -0400)]
Rollup merge of #27345 - killercup:patch-15, r=alexcrichton

The first paragraph of the docs of the Cursor struct ([src](https://github.com/rust-lang/rust/blob/ff6c6ce917bd6af9c5d9315708ae6be3ba0b7e91/src/libstd/io/cursor.rs#L18-L21)) contains a Markdown link. In listings (like <http://doc.rust-lang.org/nightly/std/io/>), this won't get rendered:

![std__io_-_rust](https://cloud.githubusercontent.com/assets/20063/8925843/5c5281a8-350b-11e5-8c63-09a369d746b0.png)

The hotfix would be to change the link by reference:

```rust
/// A `Cursor` wraps another type and provides it with a [`Seek`][seek]
/// implementation.
///
/// [seek]: trait.Seek.html
```

to a direct link:

```rust
/// A `Cursor` wraps another type and provides it with a
/// [`Seek`](trait.Seek.html) implementation.
```

_I have not tested this as I don't have access to a machine for compiling Rust right now._

(This seems to be a more general issue, but I think I have seen this mentioned before. This PR is just to hotfix on particular occurrence. Rustdoc seems to only read the first paragraph of a doc string for the description in index pages, and _after that_ convert Markdown to HTML.)

r? @steveklabnik

8 years agoRollup merge of #27343 - steveklabnik:fix_module, r=alexcrichton
Steve Klabnik [Wed, 29 Jul 2015 14:30:35 +0000 (10:30 -0400)]
Rollup merge of #27343 - steveklabnik:fix_module, r=alexcrichton