]> git.lizzy.rs Git - rust.git/log
rust.git
8 years agoAuto merge of #29291 - petrochenkov:privacy, r=alexcrichton
bors [Mon, 2 Nov 2015 23:38:49 +0000 (23:38 +0000)]
Auto merge of #29291 - petrochenkov:privacy, r=alexcrichton

The public set is expanded with trait items, impls and their items, foreign items, exported macros, variant fields, i.e. all the missing parts. Now it's a subset of the exported set.
This is needed for https://github.com/rust-lang/rust/pull/29083 because stability annotation pass uses the public set and all things listed above need to be annotated.
Rustdoc can now be migrated to the public set as well, I guess.

Exported set is now slightly more correct with regard to exported items in blocks - 1) blocks in foreign items are considered and 2) publicity is not inherited from the block's parent - if a function is public it doesn't mean structures defined in its body are public.

r? @alexcrichton or maybe someone else

8 years agoParens + issue number + typo
Vadim Petrochenkov [Mon, 2 Nov 2015 22:58:41 +0000 (01:58 +0300)]
Parens + issue number + typo

8 years agoAuto merge of #29456 - alexcrichton:path-hash, r=aturon
bors [Mon, 2 Nov 2015 21:56:47 +0000 (21:56 +0000)]
Auto merge of #29456 - alexcrichton:path-hash, r=aturon

Almost all operations on Path are based on the components iterator in one form
or another to handle equivalent paths. The `Hash` implementations, however,
mistakenly just went straight to the underlying `OsStr`, causing these
equivalent paths to not get merged together.

This commit updates the `Hash` implementation to also be based on the iterator
which should ensure that if two paths are equal they hash to the same thing.

cc #29008, but doesn't close it

8 years agostd: Base Hash for Path on its iterator
Alex Crichton [Thu, 29 Oct 2015 17:56:54 +0000 (10:56 -0700)]
std: Base Hash for Path on its iterator

Almost all operations on Path are based on the components iterator in one form
or another to handle equivalent paths. The `Hash` implementations, however,
mistakenly just went straight to the underlying `OsStr`, causing these
equivalent paths to not get merged together.

This commit updates the `Hash` implementation to also be based on the iterator
which should ensure that if two paths are equal they hash to the same thing.

cc #29008, but doesn't close it

8 years agoAuto merge of #29513 - apasel422:issue-23217, r=alexcrichton
bors [Mon, 2 Nov 2015 20:11:53 +0000 (20:11 +0000)]
Auto merge of #29513 - apasel422:issue-23217, r=alexcrichton

Closes #23217.

r? @alexcrichton

8 years agoAuto merge of #29510 - mneumann:dragonfly-guard-page, r=alexcrichton
bors [Mon, 2 Nov 2015 18:29:33 +0000 (18:29 +0000)]
Auto merge of #29510 - mneumann:dragonfly-guard-page, r=alexcrichton

Only tested on DragonFly.

8 years agoAuto merge of #29518 - KyleMayes:master, r=apasel422
bors [Mon, 2 Nov 2015 14:41:31 +0000 (14:41 +0000)]
Auto merge of #29518 - KyleMayes:master, r=apasel422

Fixes one of the `expr` examples to be a correct expression

r? @steveklabnik

8 years agoMinor fix to Rust Book, Macros chapter
Kyle Mayes [Mon, 2 Nov 2015 13:52:05 +0000 (08:52 -0500)]
Minor fix to Rust Book, Macros chapter

Fixes one of the `expr` examples to be a proper expression

8 years agoAuto merge of #28846 - Ms2ger:categorization, r=nikomatsakis
bors [Mon, 2 Nov 2015 10:44:08 +0000 (10:44 +0000)]
Auto merge of #28846 - Ms2ger:categorization, r=nikomatsakis

8 years agoAuto merge of #29505 - rjbs:docs-where-type, r=steveklabnik
bors [Mon, 2 Nov 2015 08:01:56 +0000 (08:01 +0000)]
Auto merge of #29505 - rjbs:docs-where-type, r=steveklabnik

I read this section a few times before even having a guess what
was meant, then consulted IRC for confirmation.  It may be that I
was thick-headed, but I think this is a useful addition.

8 years agoAttempt to clarify use of `where i32: ConvertTo<T>
Ricardo Signes [Sun, 1 Nov 2015 18:28:51 +0000 (13:28 -0500)]
Attempt to clarify use of `where i32: ConvertTo<T>

I read this section a few times before even having a guess what
was meant, then consulted IRC for confirmation.  It may be that I
was thick-headed, but I think this is a useful addition.

8 years agoAuto merge of #29507 - fhartwig:result-expect, r=Manishearth
bors [Sun, 1 Nov 2015 23:22:22 +0000 (23:22 +0000)]
Auto merge of #29507 - fhartwig:result-expect, r=Manishearth

This fixes part of #29506
These instances of `ok().expect()` have no benefit over using `Result`'s `expect` directly.

8 years agoAdd test for #23217
Andrew Paseltiner [Sun, 1 Nov 2015 22:55:09 +0000 (17:55 -0500)]
Add test for #23217

Closes #23217.

8 years agoUse guard-pages also on DragonFly/FreeBSD.
Michael Neumann [Sun, 1 Nov 2015 21:56:31 +0000 (22:56 +0100)]
Use guard-pages also on DragonFly/FreeBSD.

Only tested on DragonFly.

8 years agoAuto merge of #29501 - Manishearth:pat-docs, r=alexcrichton
bors [Sun, 1 Nov 2015 21:42:18 +0000 (21:42 +0000)]
Auto merge of #29501 - Manishearth:pat-docs, r=alexcrichton

None

8 years agoAuto merge of #29471 - pierzchalski:custom-target-custom-unwind-json, r=alexcrichton
bors [Sun, 1 Nov 2015 20:00:07 +0000 (20:00 +0000)]
Auto merge of #29471 - pierzchalski:custom-target-custom-unwind-json, r=alexcrichton

8 years agoStop using ok().expect() in Result docs
Florian Hartwig [Sun, 1 Nov 2015 19:41:23 +0000 (20:41 +0100)]
Stop using ok().expect() in Result docs

8 years agoReplace ok().expect() by Result::expect in trait chapter of trpl
Florian Hartwig [Sun, 1 Nov 2015 19:40:20 +0000 (20:40 +0100)]
Replace ok().expect() by Result::expect in trait chapter of trpl

8 years agoAuto merge of #29177 - vadimcn:rtstuff, r=alexcrichton
bors [Sun, 1 Nov 2015 17:15:29 +0000 (17:15 +0000)]
Auto merge of #29177 - vadimcn:rtstuff, r=alexcrichton

Note: for now, this change only affects `-windows-gnu` builds.

So why was this `libgcc` dylib dependency needed in the first place?
The stack unwinder needs to know about locations of unwind tables of all the modules loaded in the current process.  The easiest portable way of achieving this is to have each module register itself with the unwinder when loaded into the process.  All modules compiled by GCC do this by calling the __register_frame_info() in their startup code (that's `crtbegin.o` and `crtend.o`, which are automatically linked into any gcc output).
Another important piece is that there should be only one copy of the unwinder (and thus unwind tables registry) in the process.  This pretty much means that the unwinder must be in a shared library (unless everything is statically linked).

Now, Rust compiler tries very hard to make sure that any given Rust crate appears in the final output just once.   So if we link the unwinder statically to one of Rust's crates, everything should be fine.

Unfortunately, GCC startup objects are built under assumption that `libgcc` is the one true place for the unwind info registry, so I couldn't find any better way than to replace them.  So out go `crtbegin`/`crtend`, in come `rsbegin`/`rsend`!

A side benefit of this change is that rustc is now more in control of the command line that goes to the linker, so we could stop using `gcc` as the linker driver and just invoke `ld` directly.

8 years agoAuto merge of #29486 - petrochenkov:multiwild, r=Manishearth
bors [Sun, 1 Nov 2015 13:36:49 +0000 (13:36 +0000)]
Auto merge of #29486 - petrochenkov:multiwild, r=Manishearth

Motivation:
- It is not actually a pattern
- It is not actually needed, except for...

Drawback:
- Slice patterns like `[a, _.., b]` are pretty-printed as `[a, .., b]`. Great loss :(

plugin-[breaking-change], as always

8 years agoAdd comment for stability.rs
Vadim Petrochenkov [Sun, 1 Nov 2015 13:33:46 +0000 (16:33 +0300)]
Add comment for stability.rs

8 years agoAdd code formatting on PatVec docs
Manish Goregaokar [Sun, 1 Nov 2015 11:07:12 +0000 (16:37 +0530)]
Add code formatting on PatVec docs

8 years agoFix PatEnum docs
Manish Goregaokar [Sun, 1 Nov 2015 11:02:51 +0000 (16:32 +0530)]
Fix PatEnum docs

8 years agoAuto merge of #29316 - GBGamer:change-unchecked-div-generic, r=eddyb
bors [Sun, 1 Nov 2015 07:03:09 +0000 (07:03 +0000)]
Auto merge of #29316 - GBGamer:change-unchecked-div-generic, r=eddyb

Similarly to the simd intrinsics. I believe this is a better solution than #29288, and I could implement it as well for overflowing_add/sub/mul. Also rename from udiv/sdiv to div, and same for rem.

8 years agoAuto merge of #29496 - cpjreynolds:patch-1, r=apasel422
bors [Sun, 1 Nov 2015 04:23:18 +0000 (04:23 +0000)]
Auto merge of #29496 - cpjreynolds:patch-1, r=apasel422

Corrects `write_bytes`'s documentation as the parameter name is `val` not `c`.

8 years agoFix stage0 ICE caused by the old _Unwind_Resume override trickery.
Vadim Chugunov [Sun, 1 Nov 2015 01:47:38 +0000 (18:47 -0700)]
Fix stage0 ICE caused by the old _Unwind_Resume override trickery.

8 years agoMinor documentation correction
Cole Reynolds [Sun, 1 Nov 2015 00:31:16 +0000 (20:31 -0400)]
Minor documentation correction

Corrects `write_bytes`'s documentation as the parameter name is `val` not `c`.

8 years agoCheck unchecked_div|rem's specialisation
Nicholas Mazzuca [Mon, 26 Oct 2015 03:51:51 +0000 (20:51 -0700)]
Check unchecked_div|rem's specialisation

Similarly to the simd intrinsics.

8 years agoAuto merge of #29487 - sfackler:current-exe-docs, r=steveklabnik
bors [Sat, 31 Oct 2015 14:13:43 +0000 (14:13 +0000)]
Auto merge of #29487 - sfackler:current-exe-docs, r=steveklabnik

The "optionally" stuff just makes things confusing.

r? @steveklabnik

8 years agoAuto merge of #29489 - Ms2ger:fmt-ri, r=Manishearth
bors [Sat, 31 Oct 2015 10:58:41 +0000 (10:58 +0000)]
Auto merge of #29489 - Ms2ger:fmt-ri, r=Manishearth

CC @nrc

8 years agoRustfmt region_inference.
Ms2ger [Sat, 31 Oct 2015 10:31:52 +0000 (11:31 +0100)]
Rustfmt region_inference.

8 years agoTweak env docs a bit
Steven Fackler [Sat, 31 Oct 2015 05:13:32 +0000 (22:13 -0700)]
Tweak env docs a bit

The "optionally" stuff just makes things confusing.

8 years agoAuto merge of #29484 - steveklabnik:gh29330, r=brson
bors [Sat, 31 Oct 2015 04:04:45 +0000 (04:04 +0000)]
Auto merge of #29484 - steveklabnik:gh29330, r=brson

These two commits do a few things:

1. reformat to 80 cols
2. use the reference-style links where appropriate for improved in-source readability
3. adds a few links, tweaks a couple of words, `3` -> `three`, stuff like that

While the diff is big due to these edits, there's no significant content change.

r? @brson

8 years agoAuto merge of #29480 - apasel422:coerce-unique, r=alexcrichton
bors [Sat, 31 Oct 2015 01:58:51 +0000 (01:58 +0000)]
Auto merge of #29480 - apasel422:coerce-unique, r=alexcrichton

Closes rust-lang/rfcs#1343.

8 years agoRemove PatWildMulti
Vadim Petrochenkov [Sat, 31 Oct 2015 00:44:43 +0000 (03:44 +0300)]
Remove PatWildMulti

8 years agoAuto merge of #29477 - alexcrichton:revert-compiler-rt, r=brson
bors [Sat, 31 Oct 2015 00:09:39 +0000 (00:09 +0000)]
Auto merge of #29477 - alexcrichton:revert-compiler-rt, r=brson

This ended up causing regressions in a few builds I've seen:

* MinGW -- [64-bit](https://ci.appveyor.com/project/alexcrichton/gcc-rs/build/1.0.338/job/2c4pkxgxa2dvqs25) and [32-bit](https://ci.appveyor.com/project/alexcrichton/gcc-rs/build/1.0.338/job/d0n7kml3k5el9gla)
- MSVC - [64-bit with VS 12.0](https://ci.appveyor.com/project/alexcrichton/gcc-rs/build/job/ugldcage9ydoy1k6) and [32-bit with VS 12.0](https://ci.appveyor.com/project/alexcrichton/gcc-rs/build/job/pn59p4rhnj8gybei).

I suspect the problems are along the lines of:

* The emutls support needs to be disabled on Windows, it currently always used pthreads which isn't available
* The objects in compiler-rt either need to be built without a CRT or not specifically against the static one.

8 years agoAuto merge of #29454 - stepancheg:vec-reserve, r=bluss
bors [Fri, 30 Oct 2015 22:23:41 +0000 (22:23 +0000)]
Auto merge of #29454 - stepancheg:vec-reserve, r=bluss

Before this patch `reserve` function allocated twice as requested
amount elements (not twice as capacity).  It leaded to unnecessary
excessive memory usage in scenarios like this:

```
let mut v = Vec::new();
v.push(17);
v.extend(0..10);
println!("{}", v.capacity());
```

`Vec` allocated 22 elements, while it could allocate just 11.

`reserve` function must have a property of keeping `push` operation
cost (which calls `reserve`) `O(1)`. To achieve this `reserve` must
exponentialy grow its capacity when it does reallocation.

There's better strategy to implement `reserve`:

```
let new_capacity = max(current_capacity * 2, requested_capacity);
```

This strategy still guarantees that capacity grows at `O(1)` with
`reserve`, and fixes the issue with `extend`.

Patch imlpements this strategy.

8 years agoSome fixes to std index docs
Steve Klabnik [Fri, 30 Oct 2015 21:43:05 +0000 (17:43 -0400)]
Some fixes to std index docs

Part of https://github.com/rust-lang/rust/issues/29330

Needed because of https://github.com/rust-lang/rust/issues/29481 and https://github.com/rust-lang/rust/issues/29483

8 years agoClean up formatting on std main page
Steve Klabnik [Fri, 30 Oct 2015 21:18:26 +0000 (17:18 -0400)]
Clean up formatting on std main page

Part of #29330

8 years agoFix excessive memory allocation in RawVec::reserve
Stepan Koltsov [Fri, 30 Oct 2015 21:17:16 +0000 (00:17 +0300)]
Fix excessive memory allocation in RawVec::reserve

Before this patch `reserve` function allocated twice as requested
amount elements (not twice as capacity).  It leaded to unnecessary
excessive memory usage in scenarios like this:

```
let mut v = Vec::new();
v.push(17);
v.extend(0..10);
println!("{}", v.capacity());
```

`Vec` allocated 22 elements, while it could allocate just 11.

`reserve` function must have a property of keeping `push` operation
cost (which calls `reserve`) `O(1)`. To achieve this `reserve` must
exponentialy grow its capacity when it does reallocation.

There's better strategy to implement `reserve`:

```
let new_capacity = max(current_capacity * 2, requested_capacity);
```

This strategy still guarantees that capacity grows at `O(1)` with
`reserve`, and fixes the issue with `extend`.

Patch imlpements this strategy.

8 years agoImplement `CoerceUnsized` for `Unique`
Andrew Paseltiner [Fri, 30 Oct 2015 20:38:29 +0000 (16:38 -0400)]
Implement `CoerceUnsized` for `Unique`

Closes rust-lang/rfcs#1343.

8 years agoAuto merge of #29475 - apasel422:drop-in, r=alexcrichton
bors [Fri, 30 Oct 2015 19:06:43 +0000 (19:06 +0000)]
Auto merge of #29475 - apasel422:drop-in, r=alexcrichton

This is a rebase of #27204.

r? @alexcrichton
CC @Gankro

8 years agoRevert "Build compiler-rt/builtins with MSVC"
Alex Crichton [Fri, 30 Oct 2015 17:36:38 +0000 (10:36 -0700)]
Revert "Build compiler-rt/builtins with MSVC"

This reverts commit b09e8f51a26f9421d27fea4e1324b6ee24a26722.

8 years agoRevert "Update compiler-rt"
Alex Crichton [Fri, 30 Oct 2015 17:36:34 +0000 (10:36 -0700)]
Revert "Update compiler-rt"

This reverts commit 6e61c6f11902c686a637207a78aa1ccaad24f9b6.

8 years agoAuto merge of #29468 - ronindev:patch-1, r=alexcrichton
bors [Fri, 30 Oct 2015 16:18:11 +0000 (16:18 +0000)]
Auto merge of #29468 - ronindev:patch-1, r=alexcrichton

There are no `rm` commands on windows. But windows has `del`

8 years agodon't use drop_in_place as an intrinsic
Alexis Beingessner [Wed, 19 Aug 2015 22:55:36 +0000 (15:55 -0700)]
don't use drop_in_place as an intrinsic

8 years agoexpose drop_in_place as ptr::drop_in_place
Alexis Beingessner [Tue, 21 Jul 2015 21:11:50 +0000 (14:11 -0700)]
expose drop_in_place as ptr::drop_in_place

8 years agoAdd JSON parser rule for custom_unwind_resume.
pierzchalski [Thu, 29 Oct 2015 16:20:51 +0000 (03:20 +1100)]
Add JSON parser rule for custom_unwind_resume.

8 years agoFixed delete command on Windows
Igor Shuvalov [Fri, 30 Oct 2015 06:25:55 +0000 (09:25 +0300)]
Fixed delete command on Windows

8 years agoAuto merge of #29458 - tshepang:better, r=alexcrichton
bors [Fri, 30 Oct 2015 01:28:12 +0000 (01:28 +0000)]
Auto merge of #29458 - tshepang:better, r=alexcrichton

I see that `extend()` is not called if new_len > len()

8 years agoAuto merge of #29199 - tshepang:they-can, r=steveklabnik
bors [Thu, 29 Oct 2015 23:39:34 +0000 (23:39 +0000)]
Auto merge of #29199 - tshepang:they-can, r=steveklabnik

8 years agoAuto merge of #29452 - SimonSapin:patch-14, r=alexcrichton
bors [Thu, 29 Oct 2015 20:46:44 +0000 (20:46 +0000)]
Auto merge of #29452 - SimonSapin:patch-14, r=alexcrichton

… I think.

8 years agobook: it's just doctests that can't be run on binary files
Tshepang Lekhonkhobe [Thu, 29 Oct 2015 20:45:09 +0000 (22:45 +0200)]
book: it's just doctests that can't be run on binary files

8 years agodoc: fix and expand explanation
Tshepang Lekhonkhobe [Thu, 29 Oct 2015 19:39:05 +0000 (21:39 +0200)]
doc: fix and expand explanation

I see that `extend()` is not called if new_len > len()

8 years agoAuto merge of #29129 - cuviper:impl-from-for-floats, r=alexcrichton
bors [Thu, 29 Oct 2015 18:55:12 +0000 (18:55 +0000)]
Auto merge of #29129 - cuviper:impl-from-for-floats, r=alexcrichton

This is a spiritual successor to #28921, completing the "upcast" idea from rust-num/num#97.

8 years agoMake fields and macro defs exported
Vadim Petrochenkov [Thu, 29 Oct 2015 18:54:55 +0000 (21:54 +0300)]
Make fields and macro defs exported

8 years agoAuto merge of #29445 - igpay:patch-1, r=alexcrichton
bors [Thu, 29 Oct 2015 16:03:46 +0000 (16:03 +0000)]
Auto merge of #29445 - igpay:patch-1, r=alexcrichton

This documentation confused me when trying to use truncate on a project. Originally, it was unclear whether truncate removed the last `len` elements, or whether it cut down the vector to be exactly `len` elements long. The example was also ambiguous.

8 years agoTypo fix
Simon Sapin [Thu, 29 Oct 2015 16:00:39 +0000 (01:00 +0900)]
Typo fix

… I think.

8 years agoAuto merge of #29450 - defuz:patch-1, r=steveklabnik
bors [Thu, 29 Oct 2015 13:09:12 +0000 (13:09 +0000)]
Auto merge of #29450 - defuz:patch-1, r=steveklabnik

r? @steveklabnik

8 years agoAuto merge of #29188 - nikomatsakis:remove-contraction, r=pnkfelix
bors [Thu, 29 Oct 2015 11:14:27 +0000 (11:14 +0000)]
Auto merge of #29188 - nikomatsakis:remove-contraction, r=pnkfelix

This fixes #29048 (though I think adding better transactional support would be a better fix for that issue, but that is more difficult). It also simplifies region inference and changes the model to a pure data flow one, as discussed in [this internals thread](https://internals.rust-lang.org/t/rough-thoughts-on-the-impl-of-region-inference-mir-etc/2800). I am not 100% sure though if this PR is the right thing to do -- or at least maybe not at this moment, so thoughts on that would be appreciated.

r? @pnkfelix
cc @arielb1

8 years agoTrying to to be more accurate
Ivan Ivaschenko [Thu, 29 Oct 2015 10:07:11 +0000 (12:07 +0200)]
Trying to to be more accurate

r? @steveklabnik

8 years agoAuto merge of #29442 - rjbs:docs-comma-splice, r=steveklabnik
bors [Thu, 29 Oct 2015 09:12:26 +0000 (09:12 +0000)]
Auto merge of #29442 - rjbs:docs-comma-splice, r=steveklabnik

This is two sentences that have been comma spliced, and should
be split with a full stop.  (This error made me stop and re-read,
and I submit this as an actual improvement to readability, not
as a grammar weird-o!)

8 years agoRename categorization and stop re-exporting its variants.
Ms2ger [Sat, 3 Oct 2015 19:36:16 +0000 (21:36 +0200)]
Rename categorization and stop re-exporting its variants.

8 years agoAuto merge of #29441 - Ryman:match_refactor_msg, r=alexcrichton
bors [Thu, 29 Oct 2015 06:56:52 +0000 (06:56 +0000)]
Auto merge of #29441 - Ryman:match_refactor_msg, r=alexcrichton

This helps for the case where a match, such as below:
```rust
let foo = match foo {
    Some(x) => x,
    None => 0
};
```
gets refactored to no longer need the match, but the match keyword has been left accidentally:

```rust
let foo = match foo.unwrap_or(0);
```

This can be hard to spot as the expression grows more complex.

r? @alexcrichton

8 years agoAuto merge of #29432 - taralx:patch-2, r=alexcrichton
bors [Thu, 29 Oct 2015 05:08:56 +0000 (05:08 +0000)]
Auto merge of #29432 - taralx:patch-2, r=alexcrichton

Discarding errors is bad, m'kay?

8 years agoAuto merge of #29289 - DiamondLovesYou:pnacl-std-crates, r=alexcrichton
bors [Thu, 29 Oct 2015 03:20:13 +0000 (03:20 +0000)]
Auto merge of #29289 - DiamondLovesYou:pnacl-std-crates, r=alexcrichton

8 years agoUpdate docstring for truncate
Cameron Sun [Thu, 29 Oct 2015 01:38:46 +0000 (21:38 -0400)]
Update docstring for truncate

This documentation confused me when trying to use truncate on a project. Originally, it was unclear whether truncate removed the last `len` elements, or whether it cut down the vector to be exactly `len` elements long. The example was also ambiguous.

8 years agoAuto merge of #29444 - steveklabnik:rollup, r=steveklabnik
bors [Thu, 29 Oct 2015 01:25:34 +0000 (01:25 +0000)]
Auto merge of #29444 - steveklabnik:rollup, r=steveklabnik

- Successful merges: #29264, #29405, #29417, #29435, #29437, #29438
- Failed merges:

8 years agosplit a run-on sentence
Ricardo Signes [Wed, 28 Oct 2015 23:15:20 +0000 (19:15 -0400)]
split a run-on sentence

This is two sentences that have been comma spliced, and should
be split with a full stop.  (This error made me stop and re-read,
and I submit this as an actual improvement to readability, not
as a grammar weird-o!)

8 years agoRollup merge of #29438 - jethrogb:topic/book-rbstrlit, r=alexcrichton
Steve Klabnik [Thu, 29 Oct 2015 00:27:35 +0000 (20:27 -0400)]
Rollup merge of #29438 - jethrogb:topic/book-rbstrlit, r=alexcrichton

The raw byte string literal syntax in the syntax index was incorrect. Also added links to the reference for raw and/or byte string literals.

8 years agoRollup merge of #29437 - brson:authors, r=alexcrichton
Steve Klabnik [Thu, 29 Oct 2015 00:27:35 +0000 (20:27 -0400)]
Rollup merge of #29437 - brson:authors, r=alexcrichton

8 years agoRollup merge of #29435 - djrollins:diverging-function-doc, r=Manishearth
Steve Klabnik [Thu, 29 Oct 2015 00:27:35 +0000 (20:27 -0400)]
Rollup merge of #29435 - djrollins:diverging-function-doc, r=Manishearth

I put the reference under the function return operator `->` rather than near the suggested `!` operators as I thought it was more relevant there.

Resolves #29431

8 years agoRollup merge of #29417 - pmarcelll:assert-doc, r=steveklabnik
Steve Klabnik [Thu, 29 Oct 2015 00:27:34 +0000 (20:27 -0400)]
Rollup merge of #29417 - pmarcelll:assert-doc, r=steveklabnik

…m message

I recently discovered that this is not mentioned in the docs, only in
the examples, and it's not evident for people coming from C++

r? @steveklabnik

8 years agoRollup merge of #29405 - pmarcelll:docs-fix, r=steveklabnik
Steve Klabnik [Thu, 29 Oct 2015 00:27:34 +0000 (20:27 -0400)]
Rollup merge of #29405 - pmarcelll:docs-fix, r=steveklabnik

Fixes #29401.

r? @steveklabnik

8 years agoRollup merge of #29264 - mdinger:colorify, r=steveklabnik
Steve Klabnik [Thu, 29 Oct 2015 00:27:34 +0000 (20:27 -0400)]
Rollup merge of #29264 - mdinger:colorify, r=steveklabnik

This is an alternative to https://github.com/rust-lang/rust/pull/29240 which fixes #15307 by adding colors to primitives and aliases instead of underlining.

Try to keep the discussion in https://github.com/rust-lang/rust/pull/29240 for now though so it can be kept track of.

A sample rendering is [here](http://mdinger.github.io/rust_std_colored/std/index.html)

8 years agoAuto merge of #29425 - apasel422:issue-29030, r=alexcrichton
bors [Wed, 28 Oct 2015 23:31:31 +0000 (23:31 +0000)]
Auto merge of #29425 - apasel422:issue-29030, r=alexcrichton

Closes #29030.

r? @alexcrichton

8 years agoComment how the significand limits lossless int->float conversion
Josh Stone [Wed, 28 Oct 2015 23:05:51 +0000 (16:05 -0700)]
Comment how the significand limits lossless int->float conversion

8 years agoMove test file to run-fail, since it does an unwrap
Niko Matsakis [Wed, 28 Oct 2015 22:48:06 +0000 (18:48 -0400)]
Move test file to run-fail, since it does an unwrap

8 years agoDo some slight refactoring, leave the rest for #29436
Niko Matsakis [Wed, 28 Oct 2015 20:42:47 +0000 (16:42 -0400)]
Do some slight refactoring, leave the rest for #29436

8 years agoUpdate docs for region inference to reflect current state better
Niko Matsakis [Wed, 28 Oct 2015 20:42:34 +0000 (16:42 -0400)]
Update docs for region inference to reflect current state better

8 years agoDon't "double check" var-sub-var constraints, which are handled in
Niko Matsakis [Mon, 26 Oct 2015 21:01:36 +0000 (17:01 -0400)]
Don't "double check" var-sub-var constraints, which are handled in
expansion already by growing the RHS to be bigger than LHS (all the way
to `'static` if necessary). This is needed because contraction doesn't
handle givens. Fixes #28934.

8 years agoremove SupSupConflict, which is now dead code
Niko Matsakis [Fri, 23 Oct 2015 00:30:22 +0000 (20:30 -0400)]
remove SupSupConflict, which is now dead code

8 years agoRegression test for #29048. Fixes #29048.
Niko Matsakis [Tue, 20 Oct 2015 14:23:31 +0000 (10:23 -0400)]
Regression test for #29048. Fixes #29048.

8 years agoRemove contraction. The contraction rules predated the notion of an
Niko Matsakis [Sat, 17 Oct 2015 00:19:25 +0000 (20:19 -0400)]
Remove contraction. The contraction rules predated the notion of an
empty region, and they complicate region inference to no particular end.
They also lead in some cases to spurious errors like #29048 (though in
some cases these errors are helpful in tracking down missing
constraints).

8 years agodo not dump extern def-ids with path for now
Niko Matsakis [Sat, 17 Oct 2015 00:18:37 +0000 (20:18 -0400)]
do not dump extern def-ids with path for now

8 years agolibsyntax: improve error message when a statement is prefixed with a match keyword
Kevin Butler [Tue, 27 Oct 2015 13:41:55 +0000 (13:41 +0000)]
libsyntax: improve error message when a statement is prefixed with a match keyword

8 years agoPort the standard crates to PNaCl/NaCl.
Richard Diamond [Sun, 25 Oct 2015 01:51:34 +0000 (20:51 -0500)]
Port the standard crates to PNaCl/NaCl.

8 years agoBook: Update raw/byte string literal in syntax index
Jethro Beekman [Wed, 28 Oct 2015 21:32:48 +0000 (14:32 -0700)]
Book: Update raw/byte string literal in syntax index

The raw byte string literal syntax in the syntax index was incorrect. Also added links to the reference for raw and/or byte string literals.

8 years agoAuto merge of #29415 - nikomatsakis:issue-29161, r=nikomatsakis
bors [Wed, 28 Oct 2015 21:37:42 +0000 (21:37 +0000)]
Auto merge of #29415 - nikomatsakis:issue-29161, r=nikomatsakis

Fix corner case in privacy that was causing ICEs when the `source_did` was not crate-local.

Full confession: I only kinda sorta understand this code, but afaict it's legit for `source_did` to be from another crate.

r? @alexcrichton

8 years agoUpdate AUTHORS.txt for 1.5
Brian Anderson [Wed, 28 Oct 2015 20:42:20 +0000 (13:42 -0700)]
Update AUTHORS.txt for 1.5

8 years agoUpdate mailmap
Brian Anderson [Wed, 28 Oct 2015 20:33:55 +0000 (13:33 -0700)]
Update mailmap

8 years agoUpdate AUTHORS.txt for 1.4
Brian Anderson [Wed, 28 Oct 2015 20:28:57 +0000 (13:28 -0700)]
Update AUTHORS.txt for 1.4

8 years agoUpdate mailmap
Brian Anderson [Wed, 28 Oct 2015 20:23:08 +0000 (13:23 -0700)]
Update mailmap

8 years agoTweak the add-authors.sh script
Brian Anderson [Wed, 28 Oct 2015 20:13:55 +0000 (13:13 -0700)]
Tweak the add-authors.sh script

8 years agoAdd diverging functions `-> !` to syntax index
Daniel Rollins [Wed, 28 Oct 2015 19:56:57 +0000 (19:56 +0000)]
Add diverging functions `-> !` to syntax index

Resolves #29431

8 years agoThe `source_did` may not be local, so don't unwrap the
Niko Matsakis [Tue, 27 Oct 2015 22:29:42 +0000 (18:29 -0400)]
The `source_did` may not be local, so don't unwrap the
`as_local_node_id`, instead just compare against `Some(id)`.
Fixes #29161.

8 years agoAuto merge of #29403 - alexcrichton:fix-windows-again-zomg, r=brson
bors [Wed, 28 Oct 2015 19:34:21 +0000 (19:34 +0000)]
Auto merge of #29403 - alexcrichton:fix-windows-again-zomg, r=brson

Although the compiler itself does not depend on this DLL the `libstdc++-6.dll`
that we're shipping does, so we still need to include it.

8 years agoLog the error we get when we fail to load metadata from a library.
JP Sugarbroad [Wed, 28 Oct 2015 18:08:20 +0000 (11:08 -0700)]
Log the error we get when we fail to load metadata from a library.

8 years agoAuto merge of #29233 - angelsl:msvc1, r=alexcrichton
bors [Wed, 28 Oct 2015 17:38:10 +0000 (17:38 +0000)]
Auto merge of #29233 - angelsl:msvc1, r=alexcrichton

Build compiler-rt/builtins with MSVC.

r? @alexcrichton

8 years agoAuto merge of #29419 - brson:bump, r=alexcrichton
bors [Wed, 28 Oct 2015 15:50:52 +0000 (15:50 +0000)]
Auto merge of #29419 - brson:bump, r=alexcrichton