]> git.lizzy.rs Git - rust.git/log
rust.git
9 years agoRollup merge of #24649 - nham:path_new_examples, r=steveklabnik
Manish Goregaokar [Sat, 25 Apr 2015 15:48:47 +0000 (21:18 +0530)]
Rollup merge of #24649 - nham:path_new_examples, r=steveklabnik

9 years agoAuto merge of #24803 - SkylerLipthay:patch-2, r=huonw
bors [Sat, 25 Apr 2015 13:10:33 +0000 (13:10 +0000)]
Auto merge of #24803 - SkylerLipthay:patch-2, r=huonw

The description of the syntax for single byte literals is missing the preceding `b` distinction.

9 years agoAuto merge of #24783 - jooert:unittestguidelines, r=alexcrichton
bors [Sat, 25 Apr 2015 09:55:06 +0000 (09:55 +0000)]
Auto merge of #24783 - jooert:unittestguidelines, r=alexcrichton

Changes the style guidelines regarding unit tests to recommend using a sub-module named "tests" instead of "test" for unit tests as "test" might clash with imports of libtest (see #23870, #24030 and http://users.rust-lang.org/t/guidelines-naming-of-unit-test-module/1078 for previous discussions).

r? @alexcrichton

9 years agoReference manual 3.5.2.3.1
Skyler [Sat, 25 Apr 2015 06:26:56 +0000 (23:26 -0700)]
Reference manual 3.5.2.3.1

The description of the syntax for single byte literals is missing the preceding `b` distinction.

9 years agoAuto merge of #24724 - alexcrichton:symlink-stable, r=aturon
bors [Sat, 25 Apr 2015 05:43:39 +0000 (05:43 +0000)]
Auto merge of #24724 - alexcrichton:symlink-stable, r=aturon

These functions were intended to be introduced as `#[stable]` as a stable API
was deprecated in favor of them, but they just erroneously forgot the stability
attributes.

9 years agoAuto merge of #24798 - steveklabnik:rollup, r=steveklabnik
bors [Sat, 25 Apr 2015 03:43:31 +0000 (03:43 +0000)]
Auto merge of #24798 - steveklabnik:rollup, r=steveklabnik

- Successful merges: #24662, #24722, #24725, #24729, #24736, #24749, #24751, #24766, #24769, #24772, #24775, #24790
- Failed merges: #24760

9 years agoMore small syntax changes in reference.md
Michael Rosenberg [Fri, 24 Apr 2015 04:54:11 +0000 (00:54 -0400)]
More small syntax changes in reference.md

9 years agoRollup merge of #24790 - jooert:fix24774, r=steveklabnik
Steve Klabnik [Sat, 25 Apr 2015 02:54:27 +0000 (22:54 -0400)]
Rollup merge of #24790 - jooert:fix24774, r=steveklabnik

Fixes #24774.

r? @steveklabnik

9 years agoRollup merge of #24775 - mbrubeck:reference, r=steveklabnik
Steve Klabnik [Sat, 25 Apr 2015 02:54:27 +0000 (22:54 -0400)]
Rollup merge of #24775 - mbrubeck:reference, r=steveklabnik

Update 7.2.20 (`for` expressions):

* `for` loops now use `IntoIterator` instead of just `Iterator`
* Simplify the example by removing unnecessary `Vec::iter` call.

...and a fix for a minor formatting error.

r? @steveklabnik

9 years agoRollup merge of #24772 - steveklabnik:gh24712, r=alexcrichton
Steve Klabnik [Sat, 25 Apr 2015 02:54:26 +0000 (22:54 -0400)]
Rollup merge of #24772 - steveklabnik:gh24712, r=alexcrichton

FIxes #24712

9 years agoRollup merge of #24769 - SkylerLipthay:patch-1, r=steveklabnik
Steve Klabnik [Sat, 25 Apr 2015 02:54:26 +0000 (22:54 -0400)]
Rollup merge of #24769 - SkylerLipthay:patch-1, r=steveklabnik

`is` and `us` suffixes are deprecated in favor of `isize` and `usize`.

9 years agoRollup merge of #24766 - nwin:patch-1, r=steveklabnik
Steve Klabnik [Sat, 25 Apr 2015 02:54:26 +0000 (22:54 -0400)]
Rollup merge of #24766 - nwin:patch-1, r=steveklabnik

Changed in #22838.

audited (raw) byte string literals @ #16676

9 years agoRollup merge of #24751 - lstat:feature-gate-22820-dups, r=brson
Steve Klabnik [Sat, 25 Apr 2015 02:54:25 +0000 (22:54 -0400)]
Rollup merge of #24751 - lstat:feature-gate-22820-dups, r=brson

As part of the audit for #22820 the following duplicate feature
gate tests were removed:

* `box_patterns`
* `simd_ffi`

These tests for `box_patterns` and `simd_ffi` were added in #23578,
however there were existing tests in #20723 and #21233 respectively.

r? @nrc

9 years agoRollup merge of #24749 - lstat:feature-gate-22820, r=nrc
Steve Klabnik [Sat, 25 Apr 2015 02:54:25 +0000 (22:54 -0400)]
Rollup merge of #24749 - lstat:feature-gate-22820, r=nrc

As part of the audit for #22820 the following feature gate tests have been
added:

* `negate_unsigned`
* `on_unimplemented`
* `optin_builtin_traits`
* `plugin`
* `rustc_attrs`
* `rustc_diagnostic_macros`
* `slice_patterns`

In addition some feature gate error message typos fixed.

9 years agoRollup merge of #24736 - steveklabnik:doc_mutability, r=alexcrichton
Steve Klabnik [Sat, 25 Apr 2015 02:54:25 +0000 (22:54 -0400)]
Rollup merge of #24736 - steveklabnik:doc_mutability, r=alexcrichton

Okay, last chapter other than ownership stuff. :confetti_ball:

9 years agoRollup merge of #24729 - mdinger:reference_grammar, r=steveklabnik
Steve Klabnik [Sat, 25 Apr 2015 02:54:25 +0000 (22:54 -0400)]
Rollup merge of #24729 - mdinger:reference_grammar, r=steveklabnik

From https://github.com/rust-lang/rust/issues/24723#issuecomment-95636827 :

> Yes, I've been meaning to just remove it in favor of GRAMMAR.md
> - steveklabnik

9 years agoRollup merge of #24725 - steveklabnik:doc_operators_and_overloading, r=alexcrichton
Steve Klabnik [Sat, 25 Apr 2015 02:54:25 +0000 (22:54 -0400)]
Rollup merge of #24725 - steveklabnik:doc_operators_and_overloading, r=alexcrichton

I forgot these heavily use associated types, so move it after that
as well.

9 years agoRollup merge of #24722 - steveklabnik:doc_deref, r=alexcrichton
Steve Klabnik [Sat, 25 Apr 2015 02:54:24 +0000 (22:54 -0400)]
Rollup merge of #24722 - steveklabnik:doc_deref, r=alexcrichton

r? @alexcrichton

9 years agoRollup merge of #24662 - steveklabnik:gh24656, r=steveklabnik
Steve Klabnik [Sat, 25 Apr 2015 02:54:24 +0000 (22:54 -0400)]
Rollup merge of #24662 - steveklabnik:gh24656, r=steveklabnik

Fixes #24656

r? @pnkfelix

I just added the examples, but if the wording needs expanded too, let me know what you think should be added :)

9 years agoWhoops, please tidy
Steve Klabnik [Fri, 24 Apr 2015 22:59:47 +0000 (18:59 -0400)]
Whoops, please tidy

9 years agoTRPL: deref coercions
Steve Klabnik [Thu, 23 Apr 2015 15:35:37 +0000 (11:35 -0400)]
TRPL: deref coercions

9 years agoAdd examples by @pnkfelix to fmt precision
Steve Klabnik [Tue, 21 Apr 2015 15:10:56 +0000 (11:10 -0400)]
Add examples by @pnkfelix to fmt precision

Fixes #24656

9 years agorustbook: Fixes display of navigation links in README.html.
Johannes Oertel [Fri, 24 Apr 2015 22:21:13 +0000 (00:21 +0200)]
rustbook: Fixes display of navigation links in README.html.

9 years agoTRPL: mutability
Steve Klabnik [Thu, 23 Apr 2015 19:09:25 +0000 (15:09 -0400)]
TRPL: mutability

9 years agoTRPL: operators and overloading
Steve Klabnik [Thu, 23 Apr 2015 16:16:45 +0000 (12:16 -0400)]
TRPL: operators and overloading

I forgot these heavily use associated types, so move it after that
as well.

9 years agoAuto merge of #24553 - nikomatsakis:issue-22779-overconstrained-impl, r=pnkfelix
bors [Fri, 24 Apr 2015 21:07:41 +0000 (21:07 +0000)]
Auto merge of #24553 - nikomatsakis:issue-22779-overconstrained-impl, r=pnkfelix

Rather than storing the relations between free-regions in a global
table, introduce a `FreeRegionMap` data structure. regionck computes the
`FreeRegionMap` for each fn and stores the result into the tcx so that
borrowck can use it (this could perhaps be refactored to have borrowck
recompute the map, but it's a bid tedious to recompute due to the
interaction of closures and free fns). The main reason to do this is
because of #22779 -- using a global table was incorrect because when
validating impl method signatures, we want to use the free region
relationships from the *trait*, not the impl.

Fixes #22779.

9 years agoChange name of unit test sub-module to "tests".
Johannes Oertel [Fri, 24 Apr 2015 15:30:41 +0000 (17:30 +0200)]
Change name of unit test sub-module to "tests".

Changes the style guidelines regarding unit tests to recommend using a
sub-module named "tests" instead of "test" for unit tests as "test"
might clash with imports of libtest.

9 years agofix rustc_driver tests
Niko Matsakis [Fri, 24 Apr 2015 20:55:19 +0000 (16:55 -0400)]
fix rustc_driver tests

9 years agoRemove keywords from reference because they're already in grammar
mdinger [Fri, 24 Apr 2015 18:15:09 +0000 (14:15 -0400)]
Remove keywords from reference because they're already in grammar

9 years agoUpdates to grammar
mdinger [Fri, 24 Apr 2015 17:57:37 +0000 (13:57 -0400)]
Updates to grammar

9 years agoRemove ebnf from reference
mdinger [Fri, 24 Apr 2015 17:52:21 +0000 (13:52 -0400)]
Remove ebnf from reference

9 years agoAuto merge of #24594 - doomsplayer:patch-2, r=alexcrichton
bors [Fri, 24 Apr 2015 17:49:46 +0000 (17:49 +0000)]
Auto merge of #24594 - doomsplayer:patch-2, r=alexcrichton

why use dummy implementation on linux?

9 years ago[reference] Update 7.2.20: For expressions.
Matt Brubeck [Fri, 24 Apr 2015 16:19:51 +0000 (09:19 -0700)]
[reference] Update 7.2.20: For expressions.

* `for` loops now use `IntoIterator` instead of just `Iterator`
* Simplify the example by removing unnecessary `Vec::iter` call.

9 years ago[reference] Fix missing formatting.
Matt Brubeck [Fri, 24 Apr 2015 16:18:30 +0000 (09:18 -0700)]
[reference] Fix missing formatting.

9 years agoAuto merge of #24744 - bluss:reference-1, r=steveklabnik
bors [Fri, 24 Apr 2015 15:48:35 +0000 (15:48 +0000)]
Auto merge of #24744 - bluss:reference-1, r=steveklabnik

Audit & Edit Chapter 8.1 Types in reference manual

- Remove mention of unit type
- Update closure types and reference types sections
- Fix minor typos

9 years agoRemove reference to 'to'
Steve Klabnik [Fri, 24 Apr 2015 15:01:03 +0000 (11:01 -0400)]
Remove reference to 'to'

FIxes #24712

9 years agoreference: Audit & Edit chapter 8.1 Types.
Ulrik Sverdrup [Thu, 23 Apr 2015 20:41:21 +0000 (22:41 +0200)]
reference: Audit & Edit chapter 8.1 Types.

- Remove mention of unit type
- Update closure types and reference types sections
- Fix minor typos

9 years agoAuto merge of #24758 - Manishearth:rollup, r=Manishearth
bors [Fri, 24 Apr 2015 13:50:40 +0000 (13:50 +0000)]
Auto merge of #24758 - Manishearth:rollup, r=Manishearth

- Successful merges: #24523, #24698, #24699, #24700, #24706, #24717, #24718, #24721, #24727
- Failed merges:

9 years agoRollup merge of #24727 - rkruppe:reference-audit, r=steveklabnik
Manish Goregaokar [Fri, 24 Apr 2015 04:14:18 +0000 (09:44 +0530)]
Rollup merge of #24727 - rkruppe:reference-audit, r=steveklabnik

It was in pretty good shape, but since that is my pet peeve, I clarified the compiler/interpreter distinction and why it is irrelevant for this section. Otherwise only a couple of minor clarifications, and weasel words where reality is more complicated than the text accounted for (e.g., there is more than one kind of library).

r? @steveklabnik

9 years agoRollup merge of #24721 - vosen:patch-1, r=steveklabnik
Manish Goregaokar [Fri, 24 Apr 2015 04:14:18 +0000 (09:44 +0530)]
Rollup merge of #24721 - vosen:patch-1, r=steveklabnik

`us` and `is` were replaced with `usize` and `isize` some time ago. Other than that, 3.5.2.1.5 is correct.

9 years agoRollup merge of #24717 - liigo:add-back-toggle-links, r=alexcrichton
Manish Goregaokar [Fri, 24 Apr 2015 04:14:17 +0000 (09:44 +0530)]
Rollup merge of #24717 - liigo:add-back-toggle-links, r=alexcrichton

r? @alexcrichton (since you added `.stability` warning messages)

9 years agoRollup merge of #24706 - tamird:remove-DST-comment, r=alexcrichton
Manish Goregaokar [Fri, 24 Apr 2015 04:14:17 +0000 (09:44 +0530)]
Rollup merge of #24706 - tamird:remove-DST-comment, r=alexcrichton

`ToCStr` was removed with `old_io` and the current method `as_os_str`
is inherent to `Path`, meaning there is no suitable trait bound that
could be used here.

r? @alexcrichton

9 years agoRollup merge of #24700 - rkruppe:doc-typos, r=alexcrichton
Manish Goregaokar [Fri, 24 Apr 2015 04:14:17 +0000 (09:44 +0530)]
Rollup merge of #24700 - rkruppe:doc-typos, r=alexcrichton

r? @steveklabnik

9 years agoRollup merge of #24699 - mbrubeck:doc-edit, r=steveklabnik
Manish Goregaokar [Fri, 24 Apr 2015 04:14:16 +0000 (09:44 +0530)]
Rollup merge of #24699 - mbrubeck:doc-edit, r=steveklabnik

r? @steveklabnik

9 years agoRollup merge of #24698 - steveklabnik:remove_debug_display, r=steveklabnik
Manish Goregaokar [Fri, 24 Apr 2015 04:14:16 +0000 (09:44 +0530)]
Rollup merge of #24698 - steveklabnik:remove_debug_display, r=steveklabnik

this is too small for its own thing, I think.

9 years agoRollup merge of #24523 - GuillaumeGomez:clean-error-codes, r=Manishearth
Manish Goregaokar [Fri, 24 Apr 2015 04:14:16 +0000 (09:44 +0530)]
Rollup merge of #24523 - GuillaumeGomez:clean-error-codes, r=Manishearth

9 years agoReference manual 3.5.2.1.5
Skyler [Fri, 24 Apr 2015 11:35:29 +0000 (04:35 -0700)]
Reference manual 3.5.2.1.5

`is` and `us` suffixes are deprecated in favor of `isize` and `usize`.

9 years agoByte string literals are now fixed-size arrays
nwin [Fri, 24 Apr 2015 09:12:53 +0000 (11:12 +0200)]
Byte string literals are now fixed-size arrays

Changed in #22838.

audited (raw) byte string literals @ #16676

9 years agoAuto merge of #24759 - Manishearth:rollup2, r=Manishearth
bors [Fri, 24 Apr 2015 05:09:31 +0000 (05:09 +0000)]
Auto merge of #24759 - Manishearth:rollup2, r=Manishearth

r? @Manishearth

9 years agofixup #24754
Manish Goregaokar [Fri, 24 Apr 2015 05:08:07 +0000 (10:38 +0530)]
fixup #24754

9 years agoRollup merge of #24754 - iliekturtles:patch-1, r=steveklabnik
Manish Goregaokar [Fri, 24 Apr 2015 04:20:16 +0000 (09:50 +0530)]
Rollup merge of #24754 - iliekturtles:patch-1, r=steveklabnik

9 years agoRollup merge of #24753 - tynopex:patch-1, r=steveklabnik
Manish Goregaokar [Fri, 24 Apr 2015 04:19:59 +0000 (09:49 +0530)]
Rollup merge of #24753 - tynopex:patch-1, r=steveklabnik

 Add section for range expressions.

9 years agoRollup merge of #24752 - doomrobo:patch-1, r=steveklabnik
Manish Goregaokar [Fri, 24 Apr 2015 04:19:44 +0000 (09:49 +0530)]
Rollup merge of #24752 - doomrobo:patch-1, r=steveklabnik

 Updated sample code to updated syntax (now compiles). Also tweaked the text to reflect the change.

9 years agoRollup merge of #24750 - withoutboats:patch-1, r=steveklabnik
Manish Goregaokar [Fri, 24 Apr 2015 04:19:27 +0000 (09:49 +0530)]
Rollup merge of #24750 - withoutboats:patch-1, r=steveklabnik

 1) Moved 'while' section below 'loop', 'break', and 'continue'; 2) Added information to 'while' and 'for' loops that they interact with 'break' and 'continue' and may have a lifetime label. 3) Clarified labeling syntax on the infinite loops.

9 years agoRollup merge of #24743 - geofft:trpl-macros-links, r=steveklabnik
Manish Goregaokar [Fri, 24 Apr 2015 04:19:12 +0000 (09:49 +0530)]
Rollup merge of #24743 - geofft:trpl-macros-links, r=steveklabnik

 r? @steveklabnik

9 years agoRollup merge of #24742 - mbrubeck:keywords, r=steveklabnik
Manish Goregaokar [Fri, 24 Apr 2015 04:18:50 +0000 (09:48 +0530)]
Rollup merge of #24742 - mbrubeck:keywords, r=steveklabnik

 * Add two missing keywords, `Self` and `proc`
* Fix some mis-alphabetized keywords

r? @steveklabnik

9 years agoRollup merge of #24740 - mbrubeck:reference, r=steveklabnik
Manish Goregaokar [Fri, 24 Apr 2015 04:18:33 +0000 (09:48 +0530)]
Rollup merge of #24740 - mbrubeck:reference, r=steveklabnik

 r? @steveklabnik

9 years agoRollup merge of #24739 - nrc:span-item, r=huonw
Manish Goregaokar [Fri, 24 Apr 2015 04:18:18 +0000 (09:48 +0530)]
Rollup merge of #24739 - nrc:span-item, r=huonw

 (And other kinds of items).

This brings trait/impl items in line with top-level items in this respect. It means we don't get the attributes when showing error messages for methods, etc. (a good thing, I think). Since attributes have spans it is still easy to create a span for the item + all attributes.

9 years agoRollup merge of #24734 - vadimcn:patch-1, r=alexcrichton
Manish Goregaokar [Fri, 24 Apr 2015 04:17:58 +0000 (09:47 +0530)]
Rollup merge of #24734 - vadimcn:patch-1, r=alexcrichton

 'win32' -> 'windows', added 'ios'

9 years agoRollup merge of #24733 - nwin:patch-1, r=steveklabnik
Manish Goregaokar [Fri, 24 Apr 2015 04:17:43 +0000 (09:47 +0530)]
Rollup merge of #24733 - nwin:patch-1, r=steveklabnik

 Consistency. The book also refers to it as trait objects.

9 years agoFix spelling errors.
Mike Boutin [Fri, 24 Apr 2015 00:26:24 +0000 (20:26 -0400)]
Fix spelling errors.

9 years agoUpdate reference.md
tynopex [Fri, 24 Apr 2015 00:38:11 +0000 (20:38 -0400)]
Update reference.md

Add section for range expressions.

9 years agoUpdate "Generic Functions" section
Michael Rosenberg [Fri, 24 Apr 2015 00:33:46 +0000 (20:33 -0400)]
Update "Generic Functions" section

Updated sample code to updated syntax (now compiles). Also tweaked the text to reflect the change.

9 years agoRemove duplicate feature gate tests
Luke Gallagher [Mon, 20 Apr 2015 10:48:23 +0000 (20:48 +1000)]
Remove duplicate feature gate tests

As part of the audit for #22820 the following duplicate feature
gate tests were removed:

* `box_patterns`
* `simd_ffi`

These tests for `box_patterns` and `simd_ffi` were added in #23578,
however there were existing tests in #20723 and #21233 respectively.

9 years agoAdd feature gate tests
Luke Gallagher [Thu, 23 Apr 2015 23:14:53 +0000 (09:14 +1000)]
Add feature gate tests

As part of the audit for #22820 the following feature gate tests have
been added:

* `rustc_diagnostic_macros`

/cc #19624

9 years agoAdd feature gate tests
Luke Gallagher [Thu, 16 Apr 2015 12:48:31 +0000 (22:48 +1000)]
Add feature gate tests

As part of the audit for #22820 the following feature gate tests have
been added:

* `negate_unsigned`
* `on_unimplemented`
* `optin_builtin_traits`
* `plugin`
* `rustc_attrs`
* `slice_patterns`

9 years agoAdd ')' in `advaced_slice_patterns` error message
Luke Gallagher [Sun, 19 Apr 2015 03:26:32 +0000 (13:26 +1000)]
Add ')' in `advaced_slice_patterns` error message

9 years agoAdd missing '\' for `custom_derive` error message
Luke Gallagher [Fri, 17 Apr 2015 12:46:36 +0000 (22:46 +1000)]
Add missing '\' for `custom_derive` error message

9 years agoFixed typo
Lee Aronson [Thu, 23 Apr 2015 23:50:05 +0000 (16:50 -0700)]
Fixed typo

9 years agoImprove information about loops
Lee Aronson [Thu, 23 Apr 2015 23:46:33 +0000 (16:46 -0700)]
Improve information about loops

1) Moved 'while' section below 'loop', 'break', and 'continue'; 2) Added information to 'while' and 'for' loops that they interact with 'break' and 'continue' and may have a lifetime label. 3) Clarified labeling syntax on the infinite loops.

9 years agoAuto merge of #24633 - rapha:master, r=alexcrichton
bors [Thu, 23 Apr 2015 23:44:40 +0000 (23:44 +0000)]
Auto merge of #24633 - rapha:master, r=alexcrichton

9 years agoAuto merge of #24695 - bluss:arc-default, r=alexcrichton
bors [Thu, 23 Apr 2015 21:42:32 +0000 (21:42 +0000)]
Auto merge of #24695 - bluss:arc-default, r=alexcrichton

Relax bounds on Default implementation for Arc.

Send + Sync are overly restrictive, follow other traits for Arc.

9 years agoAlso mention `/*!` doc comments.
Matt Brubeck [Thu, 23 Apr 2015 21:25:30 +0000 (14:25 -0700)]
Also mention `/*!` doc comments.

9 years agoTRPL: Remove references to "advanced macros chapter"
Geoffrey Thomas [Thu, 23 Apr 2015 21:17:14 +0000 (17:17 -0400)]
TRPL: Remove references to "advanced macros chapter"

This was merged back into the regular macros chapter, but a few
references lingered and caused broken links.

9 years agoUpdate and organize the Keywords table
Matt Brubeck [Thu, 23 Apr 2015 21:14:15 +0000 (14:14 -0700)]
Update and organize the Keywords table

* Add two missing keywords, `Self` and `proc`
* Fix some mis-alphabetized keywords

9 years agoTRPL: Fix link to macro section of reference
Geoffrey Thomas [Thu, 23 Apr 2015 21:08:19 +0000 (17:08 -0400)]
TRPL: Fix link to macro section of reference

9 years agoClarify that //! comments are also doc comments.
Matt Brubeck [Thu, 23 Apr 2015 21:03:25 +0000 (14:03 -0700)]
Clarify that //! comments are also doc comments.

9 years agoDo not include attributes in trait item spans.
Nick Cameron [Thu, 23 Apr 2015 20:45:32 +0000 (08:45 +1200)]
Do not include attributes in trait item spans.

(And other kinds of items).

9 years agoAuto merge of #24615 - arielb1:rapid-reject, r=nikomatsakis
bors [Thu, 23 Apr 2015 19:39:40 +0000 (19:39 +0000)]
Auto merge of #24615 - arielb1:rapid-reject, r=nikomatsakis

skolemize_late_bound_regions essentially copies the entire type (most of the times it shouldn't, but it does), and match_impl runs millions of times.

Times compiling rustc, tested with
$ make -j4 rustc-stage1
$ ( time RUSTFLAGS=-Z time-passes make -j4 rustc-stage2 ) # need LLVM time for calibration

Before:
real 21m44.960s
user 29m38.812s
sys 0m14.944s

After:
real 19m31.445s
user 26m47.260s
sys 0m14.952s

Making this is a 10% performance improvement.

LLVM passes took 867 seconds before, 862 seconds after.

9 years agoUpdate supported values of target_os
Vadim Chugunov [Thu, 23 Apr 2015 19:32:25 +0000 (12:32 -0700)]
Update supported values of target_os

'win32' -> 'windows', added 'ios'

9 years agotypo 2
nwin [Thu, 23 Apr 2015 19:26:34 +0000 (21:26 +0200)]
typo 2

9 years agotypo
nwin [Thu, 23 Apr 2015 19:25:09 +0000 (21:25 +0200)]
typo

9 years agoobject type -> trait object
nwin [Thu, 23 Apr 2015 19:23:35 +0000 (21:23 +0200)]
object type -> trait object

Consistency. The book also refers to it as trait objects.

9 years agoAuto merge of #24537 - rprichard:fix-parallel-check, r=alexcrichton
bors [Thu, 23 Apr 2015 17:32:16 +0000 (17:32 +0000)]
Auto merge of #24537 - rprichard:fix-parallel-check, r=alexcrichton

This required fixing the `pretty-rpass-full` tests to have the same `$$(CSREQ$(1)_T_$(2)_H_$(3))`  dependencies as the `rpass-full` and `cfail-full` tests.  It also required fixing the `run-make/simd-ffi` test to use unique names for its output files.

9 years agoReference audit: section 5 (Crates and source files)
Robin Kruppe [Thu, 23 Apr 2015 17:06:09 +0000 (19:06 +0200)]
Reference audit: section 5 (Crates and source files)

9 years agoUpdate diagnostics.rs
Guillaume Gomez [Tue, 21 Apr 2015 09:51:49 +0000 (11:51 +0200)]
Update diagnostics.rs

9 years agoImplement IntoIterator for Receiver
Raphael Speyer [Mon, 20 Apr 2015 16:01:06 +0000 (02:01 +1000)]
Implement IntoIterator for Receiver

9 years agostd: Add missing stability for symlink functions
Alex Crichton [Thu, 23 Apr 2015 15:58:47 +0000 (08:58 -0700)]
std: Add missing stability for symlink functions

These functions were intended to be introduced as `#[stable]` as a stable API
was deprecated in favor of them, but they just erroneously forgot the stability
attributes.

9 years agoStop mentioning obsolete integer suffixes
Andrzej Janik [Thu, 23 Apr 2015 14:39:18 +0000 (16:39 +0200)]
Stop mentioning obsolete integer suffixes

`us` and `is` were replaced with `usize` and `isize` some time ago.

9 years agoAuto merge of #24694 - liigo:toggle-all-docs-using-one-link, r=alexcrichton
bors [Thu, 23 Apr 2015 14:09:10 +0000 (14:09 +0000)]
Auto merge of #24694 - liigo:toggle-all-docs-using-one-link, r=alexcrichton

Combine the two links, [-] and [+], at top-right corner of the page, to use a single and the same one, so that:

- one less link to be created/displayed
- be consistent with other [-]/[+] links in the same page
- people can easily toggle docs without moving their mouse pointer

I also added tooltips/titles to these links.

9 years agoAuto merge of #24664 - steveklabnik:doc_ufcs, r=alexcrichton
bors [Thu, 23 Apr 2015 12:04:01 +0000 (12:04 +0000)]
Auto merge of #24664 - steveklabnik:doc_ufcs, r=alexcrichton

AKA, two four-letter acronyms :wink:

This feels a bit light, if there's other things I should add, let me know.

9 years agoAuto merge of #24714 - frewsxcv:patch-15, r=alexcrichton
bors [Thu, 23 Apr 2015 09:58:12 +0000 (09:58 +0000)]
Auto merge of #24714 - frewsxcv:patch-15, r=alexcrichton

9 years agoAuto merge of #24704 - brson:installer, r=alexcrichton
bors [Thu, 23 Apr 2015 07:56:17 +0000 (07:56 +0000)]
Auto merge of #24704 - brson:installer, r=alexcrichton

r? @alexcrichton

9 years agorustdoc: add back [-]/[+] toggle links for unstable-methods
Liigo Zhuang [Wed, 22 Apr 2015 17:32:59 +0000 (01:32 +0800)]
rustdoc: add back [-]/[+] toggle links for unstable-methods

9 years agoIndicate trait names in doc-comment are code-like
Corey Farwell [Thu, 23 Apr 2015 05:27:11 +0000 (01:27 -0400)]
Indicate trait names in doc-comment are code-like

9 years agoAuto merge of #24693 - brson:beta, r=alexcrichton
bors [Thu, 23 Apr 2015 04:50:39 +0000 (04:50 +0000)]
Auto merge of #24693 - brson:beta, r=alexcrichton

Instead of rustc-1.0.0-beta-$triple.tar.gz, betas will be named
rustc-beta-$triple.tar.gz. This will give betas a stable download
URL, prevent old artifacts from accumulating in the dist server's
root directory, and not require the website to be updated every
beta.

As a tradeoff, it will be harder to download previous betas because
they will need to be located in the archives.

I'm still unsure about whether this is the right choice.

cc @alexcrichton @steveklabnik

9 years agoInclude the mode in compiletest's aux-build directory.
Ryan Prichard [Thu, 23 Apr 2015 02:01:42 +0000 (19:01 -0700)]
Include the mode in compiletest's aux-build directory.

The run-pass and pretty run-pass tests could run concurrently, and if they
do, they need to keep their output segregated.

This change might be overkill. We need the suffix for the `pretty` mode,
but we might not need it otherwise. The `debuginfo-lldb` and
`debuginfo-gdb` modes look like they could also need it, but the current
`tests.mk` file happens not to enable both lldb and gdb at the same time,
for incidental reasons.

9 years agoReplace ignore-android with ignore-cross-compile in rustdoc tests
Ryan Prichard [Wed, 22 Apr 2015 22:22:36 +0000 (15:22 -0700)]
Replace ignore-android with ignore-cross-compile in rustdoc tests

The problem is that rustdoc searches for external crates using the host
triple, not the target triple. It's actually unclear to me whether this is
correct behavior or not, but it is necessary to get cross-compiled tests
working.

9 years agoIgnore cross-compilation in some fulldeps tests.
Ryan Prichard [Wed, 22 Apr 2015 22:20:57 +0000 (15:20 -0700)]
Ignore cross-compilation in some fulldeps tests.

These tests fail, in general, for cross-compilation, because they require
the rustc crates to exist for the target, and they don't. We can't compile
them for the target unless we also compile LLVM for the target (we don't).

Android is a subset of cross-compilation.

The other fulldeps tests, on the other hand, work fine for
cross-compilation, and in fact, are verifying that rustc correctly searches
for a host plugin crate, not a target plugin crate.

9 years agoFix run-make/simd-ffi to work with parallel make check.
Ryan Prichard [Fri, 17 Apr 2015 11:58:47 +0000 (04:58 -0700)]
Fix run-make/simd-ffi to work with parallel make check.