]> git.lizzy.rs Git - rust.git/log
rust.git
8 years agoAdjusted heading and created dedicated section in std::io docs
Nathan [Tue, 1 Dec 2015 02:23:19 +0000 (21:23 -0500)]
Adjusted heading and created dedicated section in std::io docs

8 years agoLinks and punctionaction fixes.
Nathan [Tue, 10 Nov 2015 01:13:10 +0000 (20:13 -0500)]
Links and punctionaction fixes.

8 years agoAdded platform notes to std::fs public functions.
Nathan [Tue, 10 Nov 2015 00:43:12 +0000 (19:43 -0500)]
Added platform notes to std::fs public functions.

8 years agoAuto merge of #30672 - nagisa:to-degrad-stab, r=sfackler
bors [Fri, 1 Jan 2016 22:42:04 +0000 (22:42 +0000)]
Auto merge of #30672 - nagisa:to-degrad-stab, r=sfackler

f64 methods have been stable since rust 1.0, but f32 never got stabilised.

I suggest backporting this to beta as well (needs changing stablilisation version then).

r? @aturon

Fixes https://github.com/rust-lang/rfcs/issues/1438

8 years agoStabilise f32::to_{degrees,radians} to match f64
Simonas Kazlauskas [Fri, 1 Jan 2016 12:32:21 +0000 (14:32 +0200)]
Stabilise f32::to_{degrees,radians} to match f64

f64 methods have been stable since rust 1.0, but f32 never got stabilised.

8 years agoAuto merge of #30670 - emoon:fs-copy-comment, r=steveklabnik
bors [Fri, 1 Jan 2016 16:38:40 +0000 (16:38 +0000)]
Auto merge of #30670 - emoon:fs-copy-comment, r=steveklabnik

When looking in the documentation I often scan the examples the first thing I do. In these 3 cases it's not obvious which direction the operation happens by adding this comment it makes it more obvious.

r? @steveklabnik

8 years agoAuto merge of #30663 - apasel422:ll, r=bluss
bors [Fri, 1 Jan 2016 13:51:38 +0000 (13:51 +0000)]
Auto merge of #30663 - apasel422:ll, r=bluss

CC #30642

r? @Gankro

8 years agoAdded comment in which direction operation happens
Daniel Collin [Fri, 1 Jan 2016 09:09:24 +0000 (10:09 +0100)]
Added comment in which direction operation happens

8 years agoAuto merge of #30648 - tshepang:missing-graves, r=steveklabnik
bors [Fri, 1 Jan 2016 00:38:43 +0000 (00:38 +0000)]
Auto merge of #30648 - tshepang:missing-graves, r=steveklabnik

8 years agoAuto merge of #30645 - tshepang:grammar, r=steveklabnik
bors [Thu, 31 Dec 2015 22:44:02 +0000 (22:44 +0000)]
Auto merge of #30645 - tshepang:grammar, r=steveklabnik

8 years agoAuto merge of #30616 - arcnmx:cstr-asref, r=aturon
bors [Thu, 31 Dec 2015 20:52:17 +0000 (20:52 +0000)]
Auto merge of #30616 - arcnmx:cstr-asref, r=aturon

Are trait impls still insta-stable? Considering that this design has been around for a long time on `String` and `OsString` it probably doesn't matter much...

The `From` impl is a bit strange to me. It's stolen from `OsString` but I'm not really sure about it... `String` just impls `From<&str>` instead, would that make more sense?

8 years agoMake `LinkedList` and its read-only iterators covariant
Andrew Paseltiner [Thu, 31 Dec 2015 20:17:50 +0000 (15:17 -0500)]
Make `LinkedList` and its read-only iterators covariant

CC #30642

8 years agoCStr impl stability
arcnmx [Thu, 31 Dec 2015 19:21:40 +0000 (14:21 -0500)]
CStr impl stability

8 years agoimpl From<&CStr> for CString
arcnmx [Thu, 31 Dec 2015 18:56:21 +0000 (13:56 -0500)]
impl From<&CStr> for CString

8 years agoAuto merge of #28469 - DenisKolodin:master, r=steveklabnik
bors [Thu, 31 Dec 2015 18:57:27 +0000 (18:57 +0000)]
Auto merge of #28469 - DenisKolodin:master, r=steveklabnik

8 years agoAuto merge of #30660 - nagisa:rollup, r=steveklabnik
bors [Thu, 31 Dec 2015 17:05:34 +0000 (17:05 +0000)]
Auto merge of #30660 - nagisa:rollup, r=steveklabnik

- Successful merges: #30365, #30565, #30590, #30630
- Failed merges:

8 years agoRollup merge of #30630 - tsion:mir-closure-args, r=nagisa
Simonas Kazlauskas [Thu, 31 Dec 2015 15:28:57 +0000 (17:28 +0200)]
Rollup merge of #30630 - tsion:mir-closure-args, r=nagisa

Previously, all references to closure arguments went to the argument before the one they should (e.g. to `arg1` when it was supposed to go to `arg2`). This was because the MIR builder did not account for the implicit arguments that come before the explicit arguments, and closures have one implicit argument - the struct containing the captures.

This is my test code and a diff of the MIR generated for the closure:

```rust
let a = 2i32;
let _f = |b: i32| -> i32 { a + b }:
```

```diff
--- old 2015-12-29 23:16:32.027926372 -0600
+++ new 2015-12-29 23:16:42.975400757 -0600
@@ -1,22 +1,22 @@
 fn(arg0: &[closure@closure-args.rs:8:14: 8:39 a:&i32], arg1: i32) -> i32 {
     let var0: i32; // b
     let tmp0: ();
     let tmp1: i32;
     let tmp2: i32;

     bb0: {
-        var0 = arg0;
+        var0 = arg1;
         tmp1 = (*(*arg0).0);
         tmp2 = var0;
         ReturnPointer = Add(tmp1, tmp2);
         goto -> bb1;
     }

     bb1: {
         return;
     }

     bb2: {
         diverge;
     }
 }
```

(If you're wondering where this text MIR output comes from, it's from another branch of mine waiting on https://github.com/rust-lang/rust/pull/30602 to get merged.)

8 years agoRollup merge of #30590 - nagisa:mir-constval-function, r=luqmana
Simonas Kazlauskas [Thu, 31 Dec 2015 15:28:57 +0000 (17:28 +0200)]
Rollup merge of #30590 - nagisa:mir-constval-function, r=luqmana

This moves back (essentially reverts #30265) into MIR-specific translation code, but keeps the
funcition split out, since it is expected to eventually become recursive.

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

cc @oli-obk

8 years agoRollup merge of #30565 - michaelwoerister:opaque_encoder, r=brson
Simonas Kazlauskas [Thu, 31 Dec 2015 15:28:57 +0000 (17:28 +0200)]
Rollup merge of #30565 - michaelwoerister:opaque_encoder, r=brson

This PR changes the `emit_opaque` and `read_opaque` methods in the RBML library to use a space-efficient binary encoder that does not emit any tags and uses the LEB128 variable-length integer format for all numbers it emits.

The space savings are nice, albeit a bit underwhelming, especially for dynamic libraries where metadata is already compressed.

| RLIBs        |  NEW   |   OLD     |
|--------------|--------|-----------|
|libstd        | 8.8 MB |  10.5 MB  |
|libcore       |15.6 MB |   19.7 MB |
|libcollections| 3.7 MB |    4.8 MB |
|librustc      |34.0 MB |   37.8 MB |
|libsyntax     |28.3 MB |   32.1 MB |

| SOs           |     NEW   |    OLD |
|---------------|-----------|--------|
| libstd        |  4.8 MB   | 5.1 MB |
| librustc      |  8.6 MB   | 9.2 MB |
| libsyntax     |  7.8 MB   | 8.4 MB |

At least this should make up for the size increase caused recently by also storing MIR in crate metadata.

Can this be a breaking change for anyone?
cc @rust-lang/compiler

8 years agoRollup merge of #30365 - tamird:update-valgrind, r=pnkfelix
Simonas Kazlauskas [Thu, 31 Dec 2015 15:28:56 +0000 (17:28 +0200)]
Rollup merge of #30365 - tamird:update-valgrind, r=pnkfelix

Since `darwin` is really `apple-darwin`, the valgrind-rpass tests were not actually being run with valgrind on mac before. Also, the `HOST` check was completely wrong.

r? @alexcrichton

8 years agoAuto merge of #30644 - tshepang:typo, r=steveklabnik
bors [Thu, 31 Dec 2015 15:12:07 +0000 (15:12 +0000)]
Auto merge of #30644 - tshepang:typo, r=steveklabnik

8 years agoAuto merge of #30593 - steveklabnik:small_rc_refactoring, r=Gankro
bors [Thu, 31 Dec 2015 11:42:16 +0000 (11:42 +0000)]
Auto merge of #30593 - steveklabnik:small_rc_refactoring, r=Gankro

This hairy conditional doesn't need to be so. It _does_ need to be a
thin pointer, otherwise, it will fail to compile, so let's pull that out
into a temporary for future readers of the source.

/cc @nrc @SimonSapin @Gankro @durka , who brought this up on IRC

8 years agoAuto merge of #30641 - tsion:match-range, r=eddyb
bors [Thu, 31 Dec 2015 09:40:02 +0000 (09:40 +0000)]
Auto merge of #30641 - tsion:match-range, r=eddyb

The previous version using `PartialOrd::le` was broken since it passed `T` arguments where `&T` was expected.

It makes sense to use primitive comparisons since range patterns can only be used with chars and numeric types.

r? @eddyb

8 years agoAuto merge of #30598 - est31:macro_export_help_note, r=Manishearth
bors [Thu, 31 Dec 2015 06:16:12 +0000 (06:16 +0000)]
Auto merge of #30598 - est31:macro_export_help_note, r=Manishearth

The current help message is too much about "normal" macros to be used
as general message. Keep it for normal macros, and add custom help and
error messages for macro definitions.

8 years agoAuto merge of #30586 - nagisa:mir-cast, r=arielb1
bors [Thu, 31 Dec 2015 03:01:00 +0000 (03:01 +0000)]
Auto merge of #30586 - nagisa:mir-cast, r=arielb1

I think that should pretty much conclude all of https://github.com/rust-lang/rust/issues/29576.

8 years agoAuto merge of #30585 - Ms2ger:ExplicitSelfCategory, r=brson
bors [Thu, 31 Dec 2015 01:12:38 +0000 (01:12 +0000)]
Auto merge of #30585 - Ms2ger:ExplicitSelfCategory, r=brson

8 years agoAuto merge of #30375 - aaronkeen:issue_28777, r=eddyb
bors [Wed, 30 Dec 2015 23:20:12 +0000 (23:20 +0000)]
Auto merge of #30375 - aaronkeen:issue_28777, r=eddyb

RESTRICTION_STMT_EXPR restriction to allow subsequent expressions to
contain braces.

https://github.com/rust-lang/rust/issues/28777

8 years agoMerge pull request #30643 from dhuseby/snaps_2015-12-18-3391630
Dave Huseby [Wed, 30 Dec 2015 22:33:33 +0000 (14:33 -0800)]
Merge pull request #30643 from dhuseby/snaps_2015-12-18-3391630

Fixes #30521 and #30627 by adding new snapshots
edunham uploaded the snapshots.

8 years agoAuto merge of #30467 - shahn:master, r=brson
bors [Wed, 30 Dec 2015 19:37:53 +0000 (19:37 +0000)]
Auto merge of #30467 - shahn:master, r=brson

This adds a constructor for a Weak that can never be upgraded. These are
mostly useless, but for example are required when deserializing.

8 years agodoc: missed these in a4da9ac
Tshepang Lekhonkhobe [Wed, 30 Dec 2015 19:01:42 +0000 (21:01 +0200)]
doc: missed these in a4da9ac

8 years agodoc: fix grammar
Tshepang Lekhonkhobe [Wed, 30 Dec 2015 17:54:06 +0000 (19:54 +0200)]
doc: fix grammar

8 years agodoc: fix typo
Tshepang Lekhonkhobe [Wed, 30 Dec 2015 17:31:28 +0000 (19:31 +0200)]
doc: fix typo

8 years agoSmall refactoring to make this code more clear
Steve Klabnik [Mon, 28 Dec 2015 20:28:46 +0000 (15:28 -0500)]
Small refactoring to make this code more clear

This hairy conditional doesn't need to be so. It _does_ need to be a
thin pointer, otherwise, it will fail to compile, so let's pull that out
into a temporary for future readers of the source.

Also, after a discussion with @pnkfelix and @gankro, we don't need these
null checks anymore, as zero-on-drop has been gone for a while now.

8 years agoFixes #30521 and #30627 by adding new snapshots
Dave Huseby [Wed, 30 Dec 2015 17:02:02 +0000 (09:02 -0800)]
Fixes #30521 and #30627 by adding new snapshots

8 years agoAdd test for MIR range matching.
Scott Olson [Wed, 30 Dec 2015 16:28:45 +0000 (10:28 -0600)]
Add test for MIR range matching.

8 years agoUse built-in comparisons for range matching in MIR.
Scott Olson [Wed, 30 Dec 2015 16:25:35 +0000 (10:25 -0600)]
Use built-in comparisons for range matching in MIR.

The previous version using `PartialOrd::le` was broken since it passed `T`
arguments where `&T` was expected.

It makes sense to use primitive comparisons since range patterns can only be
used with chars and numeric types.

8 years agoAuto merge of #30640 - steveklabnik:rollup, r=steveklabnik
bors [Wed, 30 Dec 2015 16:07:08 +0000 (16:07 +0000)]
Auto merge of #30640 - steveklabnik:rollup, r=steveklabnik

- Successful merges: #30373, #30502, #30511, #30546, #30556, #30620
- Failed merges:

8 years agoLimit line length to below 100 chars
est31 [Wed, 30 Dec 2015 15:27:55 +0000 (16:27 +0100)]
Limit line length to below 100 chars

8 years agoMove pub-{item,methd}-macro.rs to the parse-fail subdir as well
est31 [Tue, 29 Dec 2015 13:19:08 +0000 (14:19 +0100)]
Move pub-{item,methd}-macro.rs to the parse-fail subdir as well

8 years agoMove pub-macro-rules.rs test to parse-fail directory
est31 [Tue, 29 Dec 2015 13:00:38 +0000 (14:00 +0100)]
Move pub-macro-rules.rs test to parse-fail directory

8 years agowhitespace after colon, not before
est31 [Tue, 29 Dec 2015 12:59:19 +0000 (13:59 +0100)]
whitespace after colon, not before

8 years agoCustom help message for people trying to make macro public
est31 [Mon, 28 Dec 2015 04:31:11 +0000 (05:31 +0100)]
Custom help message for people trying to make macro public

The current help message is too much about "normal" macros to be used
as general message. Keep it for normal macros, and add custom help and
error messages for macro definitions.

8 years agoRollup merge of #30620 - salty-horse:an_mut, r=brson
Steve Klabnik [Wed, 30 Dec 2015 14:24:24 +0000 (09:24 -0500)]
Rollup merge of #30620 - salty-horse:an_mut, r=brson

As discussed in issue #30568.

8 years agoRollup merge of #30556 - nodakai:patch-1, r=brson
Steve Klabnik [Wed, 30 Dec 2015 14:24:24 +0000 (09:24 -0500)]
Rollup merge of #30556 - nodakai:patch-1, r=brson

Use proper URLs as given by Github.

So far we relied on redirect by Github which is not guaranteed to work.

8 years agoRollup merge of #30546 - tshepang:add-links, r=steveklabnik
Steve Klabnik [Wed, 30 Dec 2015 14:24:24 +0000 (09:24 -0500)]
Rollup merge of #30546 - tshepang:add-links, r=steveklabnik

8 years agoRollup merge of #30511 - defyrlt:issue_30507, r=steveklabnik
Steve Klabnik [Wed, 30 Dec 2015 14:24:24 +0000 (09:24 -0500)]
Rollup merge of #30511 - defyrlt:issue_30507, r=steveklabnik

Resolves #30507

r? @steveklabnik

8 years agoRollup merge of #30502 - Luke-Nukem:master, r=steveklabnik
Steve Klabnik [Wed, 30 Dec 2015 14:24:24 +0000 (09:24 -0500)]
Rollup merge of #30502 - Luke-Nukem:master, r=steveklabnik

Rewrite of a paragraph in in the `match` section.

The colon `:` should be used only when the sentence preceeding it is a
complete sentence. If this is not the case, then a `;` should be used;
this denotes that the following fragment is a part of the previous
fragment.

I got a new bike; it has two wheels. (Similar to I got a new bike, it has two wheels)
The ice cream truck has great flavours; blueberry, blackberry, berryberry.

Writing a complete sentence:
- with a list under it
- You can join two sentences with it: Much like this.

r? @steveklabnik

8 years agoRollup merge of #30373 - ChrisBuchholz:master, r=steveklabnik
Steve Klabnik [Wed, 30 Dec 2015 14:24:24 +0000 (09:24 -0500)]
Rollup merge of #30373 - ChrisBuchholz:master, r=steveklabnik

The current explanation for scan() is not very clear as to how it works, especially when it compares itself to fold().

I believe these changes makes it all a bit more clear for the reader, and makes it easier to understand the example code.

r? @steveklabnik

8 years agoAuto merge of #30526 - Ms2ger:PathParameters, r=brson
bors [Wed, 30 Dec 2015 14:19:08 +0000 (14:19 +0000)]
Auto merge of #30526 - Ms2ger:PathParameters, r=brson

8 years agoRefactor MIR building for arguments.
Scott Olson [Wed, 30 Dec 2015 12:55:51 +0000 (06:55 -0600)]
Refactor MIR building for arguments.

8 years agoAuto merge of #30542 - nrc:errs-base, r=nagisa
bors [Wed, 30 Dec 2015 12:27:10 +0000 (12:27 +0000)]
Auto merge of #30542 - nrc:errs-base, r=nagisa

As discussed [here](https://internals.rust-lang.org/t/more-structured-errors/3005)

r? @nikomatsakis or anyone else on the @rust-lang/compiler team

8 years agodoc: add graves
Tshepang Lekhonkhobe [Wed, 30 Dec 2015 10:41:04 +0000 (12:41 +0200)]
doc: add graves

8 years agodoc: add some links for io::stdio
Tshepang Lekhonkhobe [Thu, 24 Dec 2015 00:52:27 +0000 (02:52 +0200)]
doc: add some links for io::stdio

8 years agoAuto merge of #30458 - fhahn:fix-warnings-tests-stdlib, r=sanxiyn
bors [Wed, 30 Dec 2015 07:35:10 +0000 (07:35 +0000)]
Auto merge of #30458 - fhahn:fix-warnings-tests-stdlib, r=sanxiyn

This PR siliences some warnings when compiling stdlib with --test. Mostly remove some unused imports and added a few `#[allow(..)]`.

I also marked some signal handling functions with `#[cfg(not(test))]`, because they are only called through `rt::lang_start`, which is also marked as  `#[cfg(not(test))]`

8 years agoFix argument indices in MIR for closures.
Scott Olson [Wed, 30 Dec 2015 04:55:38 +0000 (22:55 -0600)]
Fix argument indices in MIR for closures.

Previously, all references to closure arguments went to the argument before the
one they should (e.g. to arg1 when it was supposed to be arg2). This was because
the MIR builder did not account for the implicit arguments that come before the
explicit arguments, and closures have one implicit argument - the struct
containing the captures.

8 years agoRebasing and review comments
Nick Cameron [Wed, 23 Dec 2015 21:54:37 +0000 (10:54 +1300)]
Rebasing and review comments

8 years agoRefactoring
Nick Cameron [Wed, 23 Dec 2015 06:27:20 +0000 (19:27 +1300)]
Refactoring

8 years agouse structured errors
Nick Cameron [Sun, 20 Dec 2015 21:00:43 +0000 (10:00 +1300)]
use structured errors

8 years agoStructured diagnostics
Nick Cameron [Fri, 18 Dec 2015 03:15:53 +0000 (16:15 +1300)]
Structured diagnostics

8 years agoAuto merge of #29974 - brson:gold, r=alexcrichton
bors [Wed, 30 Dec 2015 01:07:19 +0000 (01:07 +0000)]
Auto merge of #29974 - brson:gold, r=alexcrichton

When using `cc` for linking rustc will, if gold is available (by looking for `/usr/bin/ld.gold`), pass `-fuse-ld=gold` to `cc`.

In some scenarios gold links much faster than ld. Servo uses it to considerably speed up linking. gold behaves nearly identically to ld (though I think there are rare corner cases that don't work still). I've run this through crater and everything there continues to link.

To disable, pass `-C disable-gold`.

8 years agoAuto merge of #30619 - steveklabnik:rollup, r=steveklabnik
bors [Tue, 29 Dec 2015 22:21:57 +0000 (22:21 +0000)]
Auto merge of #30619 - steveklabnik:rollup, r=steveklabnik

- Successful merges: #30253, #30390, #30405, #30549, #30603, #30610
- Failed merges:

8 years agobook: Replace "an &mut" with "a mut". Fixes #30568
Ori Avtalion [Tue, 29 Dec 2015 21:13:23 +0000 (23:13 +0200)]
book: Replace "an &mut" with "a mut". Fixes #30568

8 years agoRollup merge of #30610 - steveklabnik:gh30600, r=sfackler
Steve Klabnik [Tue, 29 Dec 2015 20:55:09 +0000 (15:55 -0500)]
Rollup merge of #30610 - steveklabnik:gh30600, r=sfackler

Also, make its panic description identical in wording to assert_eq.

Fixes #30600

8 years agoRollup merge of #30603 - cmr:extern-failure-error-message, r=Manishearth
Steve Klabnik [Tue, 29 Dec 2015 20:55:09 +0000 (15:55 -0500)]
Rollup merge of #30603 - cmr:extern-failure-error-message, r=Manishearth

@ubsan brought up this relatively poor error message. This adds a
help message hinting when the problem actually is, and how to fix
it.

8 years agoRollup merge of #30549 - mitaa:doc_dstruct, r=brson
Steve Klabnik [Tue, 29 Dec 2015 20:55:09 +0000 (15:55 -0500)]
Rollup merge of #30549 - mitaa:doc_dstruct, r=brson

(reported in #30477)

8 years agoRollup merge of #30405 - durka:patch-12, r=steveklabnik
Steve Klabnik [Tue, 29 Dec 2015 20:55:09 +0000 (15:55 -0500)]
Rollup merge of #30405 - durka:patch-12, r=steveklabnik

Fixes #30217.

8 years agoRollup merge of #30390 - mitaa:patch-1, r=steveklabnik
Steve Klabnik [Tue, 29 Dec 2015 20:55:08 +0000 (15:55 -0500)]
Rollup merge of #30390 - mitaa:patch-1, r=steveklabnik

None of my devices/browsers renders this correctly.

r? @steveklabnik

8 years agoRollup merge of #30253 - Manishearth:diag-401-improve, r=steveklabnik
Steve Klabnik [Tue, 29 Dec 2015 20:55:08 +0000 (15:55 -0500)]
Rollup merge of #30253 - Manishearth:diag-401-improve, r=steveklabnik

r? @steveklabnik

8 years agoImplement `as` casting (Misc cast kind)
Simonas Kazlauskas [Thu, 5 Nov 2015 11:33:06 +0000 (13:33 +0200)]
Implement `as` casting (Misc cast kind)

8 years agoAsRef and related conversions for CString
arcnmx [Tue, 29 Dec 2015 18:02:08 +0000 (13:02 -0500)]
AsRef and related conversions for CString

8 years agoCorrect the documentation of debug_assert_eq
Steve Klabnik [Tue, 29 Dec 2015 16:01:35 +0000 (11:01 -0500)]
Correct the documentation of debug_assert_eq

Also, make its panic description identical in wording to assert_eq.

Fixes #30600

8 years agoFix warnings when compiling stdlib with --test
Florian Hahn [Fri, 18 Dec 2015 12:29:49 +0000 (13:29 +0100)]
Fix warnings when compiling stdlib with --test

8 years agoAdd a hint when given --extern with an indeterminate type
Corey Richardson [Tue, 29 Dec 2015 05:11:52 +0000 (00:11 -0500)]
Add a hint when given --extern with an indeterminate type

@ubsan brought up this relatively poor error message. This adds a
help message hinting when the problem actually is, and how to fix
it.

8 years agoAuto merge of #30548 - mmcco:linux-syscall, r=brson
bors [Mon, 28 Dec 2015 20:11:34 +0000 (20:11 +0000)]
Auto merge of #30548 - mmcco:linux-syscall, r=brson

There's no need for us to redeclare it in an extern block.

We should probably put the syscall number constants in libc too.

8 years ago[MIR] Translate ConstVal::Function
Simonas Kazlauskas [Mon, 28 Dec 2015 19:18:24 +0000 (21:18 +0200)]
[MIR] Translate ConstVal::Function

This moves back (essentially reverts #30265) into MIR-specific translation code, but keeps the
funcition split out, since it is expected to eventually become recursive.

8 years agoLink with ld.gold by default
Brian Anderson [Sat, 8 Aug 2015 18:33:43 +0000 (11:33 -0700)]
Link with ld.gold by default

To disable, pass `-C disable-gold`

8 years agoUse a more efficient encoding for opaque data in RBML.
Michael Woerister [Fri, 25 Dec 2015 18:59:02 +0000 (13:59 -0500)]
Use a more efficient encoding for opaque data in RBML.

8 years agoAuto merge of #30588 - nagisa:mir-unit-enums-again, r=eddyb
bors [Mon, 28 Dec 2015 14:32:09 +0000 (14:32 +0000)]
Auto merge of #30588 - nagisa:mir-unit-enums-again, r=eddyb

A dumb mistake on my part from previous PR fixing unit enums in MIR.

8 years ago[MIR] Fix setting discriminant for unit enums
Simonas Kazlauskas [Mon, 28 Dec 2015 13:48:01 +0000 (15:48 +0200)]
[MIR] Fix setting discriminant for unit enums

8 years agoRename ExplicitSelfCategory's variants and stop re-exporting them.
Ms2ger [Mon, 28 Dec 2015 11:52:43 +0000 (12:52 +0100)]
Rename ExplicitSelfCategory's variants and stop re-exporting them.

8 years agoAuto merge of #30570 - fhartwig:dead-doc-links, r=steveklabnik
bors [Mon, 28 Dec 2015 09:55:45 +0000 (09:55 +0000)]
Auto merge of #30570 - fhartwig:dead-doc-links, r=steveklabnik

r? @steveklabnik

8 years agoAuto merge of #30547 - mmcco:cfg, r=sanxiyn
bors [Mon, 28 Dec 2015 06:07:34 +0000 (06:07 +0000)]
Auto merge of #30547 - mmcco:cfg, r=sanxiyn

8 years agoAuto merge of #30579 - dotdash:30478, r=arielb1
bors [Mon, 28 Dec 2015 02:29:14 +0000 (02:29 +0000)]
Auto merge of #30579 - dotdash:30478, r=arielb1

`auto_ref()` currently returns an Rvalue datum for the ref'd value,
which is fine for thin pointers, but for fat pointers this means that
once the pointer is moved out of that datum, its memory will be marked
as dead. And because there is not necessarily an intermediate temporary
involved we can end up marking memory as dead that is actually still
used.

As I don't want to break the micro-optimization for thin pointers by
always returning an Lvalue datum, I decided to only do so for fat
pointers.

Fix #30478

8 years agoAuto merge of #30582 - arielb1:self-test, r=eddyb
bors [Sun, 27 Dec 2015 23:26:18 +0000 (23:26 +0000)]
Auto merge of #30582 - arielb1:self-test, r=eddyb

the old code was *so terrible*.

r? @eddyb

8 years agoremove hack in region inference
Ariel Ben-Yehuda [Sun, 27 Dec 2015 23:20:35 +0000 (01:20 +0200)]
remove hack in region inference

I forgot about it in the previous commit

8 years agorewrite the method-receiver matching code
Ariel Ben-Yehuda [Sun, 27 Dec 2015 20:09:33 +0000 (22:09 +0200)]
rewrite the method-receiver matching code

the old code was *so terrible*.

8 years agoAuto merge of #30575 - jswalden:error-handling-typo, r=apasel422
bors [Sun, 27 Dec 2015 19:50:09 +0000 (19:50 +0000)]
Auto merge of #30575 - jswalden:error-handling-typo, r=apasel422

Didn't build/test the change, but if that one-character fix isn't correct, I'll eat my hat.  :-)  Found this reading the book over the last week or two since Mozlando -- much enjoying the book so far.

8 years agoFix `auto_ref()` for fat pointers
Björn Steinbrink [Sun, 27 Dec 2015 16:56:15 +0000 (17:56 +0100)]
Fix `auto_ref()` for fat pointers

`auto_ref()` currently returns an Rvalue datum for the ref'd value,
which is fine for thin pointers, but for fat pointers this means that
once the pointer is moved out of that datum, its memory will be marked
as dead. And because there is not necessarily an intermediate temporary
involved we can end up marking memory as dead that is actually still
used.

As I don't want to break the micro-optimization for thin pointers by
always returning an Lvalue datum, I decided to only do so for fat
pointers.

Fix #30478

8 years agoChange the typo 'that' to 'than' in the book error-handling chapter.
Jeff Walden [Sun, 27 Dec 2015 06:24:45 +0000 (00:24 -0600)]
Change the typo 'that' to 'than' in the book error-handling chapter.

8 years agoAuto merge of #30566 - salty-horse:doc_typo, r=apasel422
bors [Sun, 27 Dec 2015 01:00:53 +0000 (01:00 +0000)]
Auto merge of #30566 - salty-horse:doc_typo, r=apasel422

Small typo. vectors -> vector.

8 years agoAuto merge of #30562 - nagisa:mir-unit-enums, r=luqmana
bors [Sat, 26 Dec 2015 22:58:34 +0000 (22:58 +0000)]
Auto merge of #30562 - nagisa:mir-unit-enums, r=luqmana

Thanks @arielb1!
r? @luqmana

8 years agoFix links in char docs
Florian Hartwig [Sat, 26 Dec 2015 21:04:18 +0000 (22:04 +0100)]
Fix links in char docs

8 years agobook: Fix typo
Ori Avtalion [Sat, 26 Dec 2015 20:29:02 +0000 (22:29 +0200)]
book: Fix typo

8 years agoAlso fix MIRification of unit enum variants
Simonas Kazlauskas [Sat, 26 Dec 2015 12:39:10 +0000 (14:39 +0200)]
Also fix MIRification of unit enum variants

8 years agoFix some links in str docs
Florian Hartwig [Sat, 26 Dec 2015 11:16:48 +0000 (12:16 +0100)]
Fix some links in str docs

8 years agoFix links in docs for std::io
Florian Hartwig [Fri, 25 Dec 2015 23:11:20 +0000 (00:11 +0100)]
Fix links in docs for std::io

8 years agoFix link that is currently broken due to bad markup
Florian Hartwig [Fri, 25 Dec 2015 23:01:10 +0000 (00:01 +0100)]
Fix link that is currently broken due to bad markup

8 years agoAuto merge of #30558 - jonas-schievink:delete-ast, r=nrc
bors [Fri, 25 Dec 2015 22:32:08 +0000 (22:32 +0000)]
Auto merge of #30558 - jonas-schievink:delete-ast, r=nrc

Or more specifically, after running early lints.

Closes #28142

8 years agoupdate valgrind suppressions
Tamir Duberstein [Sun, 13 Dec 2015 04:53:17 +0000 (23:53 -0500)]
update valgrind suppressions

8 years agoCorrect .gitmodules
Kai Noda [Fri, 25 Dec 2015 18:51:04 +0000 (02:51 +0800)]
Correct .gitmodules

Use proper URLs as given by Github.

So far we relied on redirect by Github which is not guaranteed to work.