]> git.lizzy.rs Git - rust.git/log
rust.git
9 years agotest: Use Thread::scoped in two more tests
Alex Crichton [Sun, 11 Jan 2015 06:56:01 +0000 (22:56 -0800)]
test: Use Thread::scoped in two more tests

I saw these hanging on a windows bot, and the previous ones seem to have calmed
down after switching from Thread::spawn to Thread::scoped, so try that here as
well!

9 years agoMerge pull request #20887 from TeXitoi/improve-shootout-binarytrees
bors [Sat, 10 Jan 2015 23:40:20 +0000 (23:40 +0000)]
Merge pull request #20887 from TeXitoi/improve-shootout-binarytrees

Improvement of shootout-binarytrees.rs

Reviewed-by: alexcrichton
9 years agoImprovement of shootout-binarytrees.rs
Guillaume Pinot [Sat, 10 Jan 2015 19:14:21 +0000 (20:14 +0100)]
Improvement of shootout-binarytrees.rs

Part of #18085

Instead of using an Enum, we use a struct with Option<&Tree> as leaves. It allow
to limit a lot of allocation.

before:
```
texitoi@vaio:~/dev/benchmarksgame-rs$ time ./bin/binary-trees-orig 20
stretch tree of depth 21  check: -1
2097152  trees of depth 4  check: -2097152
524288  trees of depth 6  check: -524288
131072  trees of depth 8  check: -131072
32768  trees of depth 10  check: -32768
8192  trees of depth 12  check: -8192
2048  trees of depth 14  check: -2048
512  trees of depth 16  check: -512
128  trees of depth 18  check: -128
32  trees of depth 20  check: -32
long lived tree of depth 20  check: -1

real 0m3.860s
user 0m11.032s
sys 0m3.572s
```
after:
```
texitoi@vaio:~/dev/benchmarksgame-rs$ time ./bin/binary-trees 20
stretch tree of depth 21  check: -1
2097152  trees of depth 4  check: -2097152
524288  trees of depth 6  check: -524288
131072  trees of depth 8  check: -131072
32768  trees of depth 10  check: -32768
8192  trees of depth 12  check: -8192
2048  trees of depth 14  check: -2048
512  trees of depth 16  check: -512
128  trees of depth 18  check: -128
32  trees of depth 20  check: -32
long lived tree of depth 20  check: -1

real 0m2.824s
user 0m9.224s
sys 0m1.428s
```

9 years agoauto merge of #20869 : nikomatsakis/rust/issue-18875, r=huonw
bors [Sat, 10 Jan 2015 16:20:04 +0000 (16:20 +0000)]
auto merge of #20869 : nikomatsakis/rust/issue-18875, r=huonw

Feature-gate `<>` syntax used with `Fn`. Fixes #18875.

r? @huonw

9 years agoMerge pull request #20851 from englishm/patch-1
bors [Sat, 10 Jan 2015 14:15:12 +0000 (14:15 +0000)]
Merge pull request #20851 from englishm/patch-1

Docs: Should be `assert_eq!` not `assert_eq`

Reviewed-by: sfackler
9 years agoMerge pull request #20849 from scode/scode/fix-book-typo
bors [Sat, 10 Jan 2015 14:15:12 +0000 (14:15 +0000)]
Merge pull request #20849 from scode/scode/fix-book-typo

Fix typo in documentation.

Reviewed-by: sfackler
9 years agoMerge pull request #20833 from nstoddard/master
bors [Sat, 10 Jan 2015 14:15:11 +0000 (14:15 +0000)]
Merge pull request #20833 from nstoddard/master

Fix a couple wording issues in TRPL book

Reviewed-by: Gankro
9 years agoMerge pull request #20819 from GuillaumeGomez/master
bors [Sat, 10 Jan 2015 14:15:11 +0000 (14:15 +0000)]
Merge pull request #20819 from GuillaumeGomez/master

Fixes typo

Reviewed-by: alexcrichton
9 years agoMerge pull request #20818 from rgs1/fix-guide
bors [Sat, 10 Jan 2015 14:15:10 +0000 (14:15 +0000)]
Merge pull request #20818 from rgs1/fix-guide

Remove extra dangling period

Reviewed-by: alexcrichton
9 years agoMerge pull request #20817 from killercup/patch-2
bors [Sat, 10 Jan 2015 14:15:10 +0000 (14:15 +0000)]
Merge pull request #20817 from killercup/patch-2

Update Conclusion of The Rust Programming Language

Reviewed-by: steveklabnik
9 years agoMerge pull request #20808 from Manishearth/span_fix
bors [Sat, 10 Jan 2015 14:15:09 +0000 (14:15 +0000)]
Merge pull request #20808 from Manishearth/span_fix

Fix checking of command line expansion spans

Reviewed-by: alexcrichton
9 years agoMerge pull request #20771 from Kimundi/vec-macro-repeat
bors [Sat, 10 Jan 2015 14:15:09 +0000 (14:15 +0000)]
Merge pull request #20771 from Kimundi/vec-macro-repeat

Enabled the `vec![]` macro to use the `[a; b]` repeat syntax.

Reviewed-by: alexcrichton
9 years agoFeature-gate `<>` syntax used with `Fn`. Fixes #18875.
Niko Matsakis [Sat, 10 Jan 2015 13:38:51 +0000 (08:38 -0500)]
Feature-gate `<>` syntax used with `Fn`. Fixes #18875.

9 years agoauto merge of #20839 : alexcrichton/rust/missing-stability, r=aturon
bors [Sat, 10 Jan 2015 12:10:08 +0000 (12:10 +0000)]
auto merge of #20839 : alexcrichton/rust/missing-stability, r=aturon

Both `Extend::extend` and `DoubleEndedIterator::next_back` were intended to be
stable, but they mistakenly didn't have the `#[stable]` tag.

9 years agoauto merge of #20837 : huonw/rust/remove-unused-lifetime, r=nikomatsakis
bors [Sat, 10 Jan 2015 10:05:05 +0000 (10:05 +0000)]
auto merge of #20837 : huonw/rust/remove-unused-lifetime, r=nikomatsakis

9 years agoauto merge of #20794 : sfackler/rust/trailing-attrs, r=alexcrichton
bors [Sat, 10 Jan 2015 08:00:09 +0000 (08:00 +0000)]
auto merge of #20794 : sfackler/rust/trailing-attrs, r=alexcrichton

Closes #20711

9 years agoShould be `assert_eq!` not `assert_eq`
Mike English [Sat, 10 Jan 2015 06:52:51 +0000 (01:52 -0500)]
Should be `assert_eq!` not `assert_eq`

9 years agoFix typo in documentation.
Peter Schuller [Sat, 10 Jan 2015 06:35:18 +0000 (22:35 -0800)]
Fix typo in documentation.

9 years agoauto merge of #20802 : huonw/rust/book-css, r=steveklabnik
bors [Sat, 10 Jan 2015 05:55:07 +0000 (05:55 +0000)]
auto merge of #20802 : huonw/rust/book-css, r=steveklabnik

There is likely to be new users with the alpha release, and there are a lot of documents on the internet (StackOverflow, reddit, blogs) that refer to these guides, so emitting a more helpful error than "404" is nice. Hence, I've temporarily reinstated stub documents for each of the old guides, referring to as relevant a part of the book as possible.

Also, rustbook was silently ignoring some errors, which lead to an inconsistency with directory creation/file writing. This meant the CSS file was not being written if no `doc` directory existed in the users build dir (e.g. the buildbots). This should mean that the CSS will appear automatically in later builds.

9 years agoauto merge of #20782 : iKevinY/rust/trpl-formatting, r=steveklabnik
bors [Sat, 10 Jan 2015 03:45:11 +0000 (03:45 +0000)]
auto merge of #20782 : iKevinY/rust/trpl-formatting, r=steveklabnik

Here's my PR for the changes discussed in #19823. I decided to leave `_these_` types of italics the way there were because it differentiates the use of italics for emphasis from `*key term*` italics. Otherwise, bolded terms have been changed to italics, and single and double quotes have been changed appropriately, depending on their context (my judgement may not be the best, though).

r? @steveklabnik (congratulations on #19897 being finalized and merged, by the way!)

9 years agoauto merge of #20828 : alexcrichton/rust/issue-20823, r=brson
bors [Sat, 10 Jan 2015 00:55:12 +0000 (00:55 +0000)]
auto merge of #20828 : alexcrichton/rust/issue-20823, r=brson

This will temporarily prevent warnings generated from expanding to code that the
test harness itself uses. This solution will require tweaking around the beta
cycle, but it will prevent spurious warnings for now.

Closes #20823

9 years agocore: rm unused lifetime.
Huon Wilson [Fri, 9 Jan 2015 23:31:56 +0000 (10:31 +1100)]
core: rm unused lifetime.

9 years agostd: Mark two missing functions as #[stable]
Alex Crichton [Fri, 9 Jan 2015 23:49:09 +0000 (15:49 -0800)]
std: Mark two missing functions as #[stable]

Both `Extend::extend` and `DoubleEndedIterator::next_back` were intended to be
stable, but they mistakenly didn't have the `#[stable]` tag.

9 years agoFix a couple wording issues in trpl book
Nathan Stoddard [Fri, 9 Jan 2015 22:21:30 +0000 (17:21 -0500)]
Fix a couple wording issues in trpl book

9 years agoauto merge of #20776 : kmcallister/rust/macro-cleanup, r=alexcrichton
bors [Fri, 9 Jan 2015 22:15:12 +0000 (22:15 +0000)]
auto merge of #20776 : kmcallister/rust/macro-cleanup, r=alexcrichton

r? @alexcrichton. This passes tests for me.

9 years agosyntax: Add #[allow(unstable)] to --test expansion
Alex Crichton [Fri, 9 Jan 2015 21:26:21 +0000 (13:26 -0800)]
syntax: Add #[allow(unstable)] to --test expansion

This will temporarily prevent warnings generated from expanding to code that the
test harness itself uses. This solution will require tweaking around the beta
cycle, but it will prevent spurious warnings for now.

Closes #20823

9 years agoauto merge of #20815 : brson/rust/installer, r=alexcrichton
bors [Fri, 9 Jan 2015 20:10:07 +0000 (20:10 +0000)]
auto merge of #20815 : brson/rust/installer, r=alexcrichton

9 years agoUpdate advanced.md
Guillaume Gomez [Fri, 9 Jan 2015 19:08:30 +0000 (20:08 +0100)]
Update advanced.md

9 years agoUpdate macro scope intro
Keegan McAllister [Thu, 8 Jan 2015 19:56:10 +0000 (11:56 -0800)]
Update macro scope intro

9 years agoRe-reduce libstd macro duplication
Keegan McAllister [Thu, 8 Jan 2015 20:21:51 +0000 (12:21 -0800)]
Re-reduce libstd macro duplication

The libstd definitions move to libcore, which causes some minor updates there.

9 years agoRemove extra dangling period
Raul Gutierrez S [Fri, 9 Jan 2015 18:54:00 +0000 (10:54 -0800)]
Remove extra dangling period

Signed-off-by: Raul Gutierrez S <rgs@itevenworks.net>
9 years agoUpdate Conclusion of The Rust Programming Language
Pascal Hertleif [Fri, 9 Jan 2015 18:48:27 +0000 (19:48 +0100)]
Update Conclusion of The Rust Programming Language

This replaces a obsolete conclusion (based on the original, basic Guide) with
links to further documentation sources.

9 years agoFix revert of rust-installer
Brian Anderson [Fri, 9 Jan 2015 18:19:30 +0000 (10:19 -0800)]
Fix revert of rust-installer

9 years agoMerge pull request #20800 from jroesch/add-regression-for-issue-20414
bors [Fri, 9 Jan 2015 17:35:11 +0000 (17:35 +0000)]
Merge pull request #20800 from jroesch/add-regression-for-issue-20414

Add test for issue #20414

Reviewed-by: alexcrichton
9 years agoMerge pull request #20799 from kud1ing/patch-1
bors [Fri, 9 Jan 2015 17:35:11 +0000 (17:35 +0000)]
Merge pull request #20799 from kud1ing/patch-1

Link to http://rustbyexample.com/

Reviewed-by: steveklabnik
9 years agoMerge pull request #20793 from ktossell/rustdoc-fixedvector-syntax
bors [Fri, 9 Jan 2015 17:35:10 +0000 (17:35 +0000)]
Merge pull request #20793 from ktossell/rustdoc-fixedvector-syntax

Make rustdoc use the `[_; N]` syntax instead of `[_, ..N]`

Reviewed-by: sfackler
9 years agoMerge pull request #20699 from vhbit/ios-archs
bors [Fri, 9 Jan 2015 17:35:09 +0000 (17:35 +0000)]
Merge pull request #20699 from vhbit/ios-archs

Better iOS support

Reviewed-by: alexcrichton
9 years agoiOS: preliminary 64-bit archs support
Valerii Hiora [Fri, 9 Jan 2015 16:25:01 +0000 (18:25 +0200)]
iOS: preliminary 64-bit archs support

9 years agoUpdated compiler-rt
Valerii Hiora [Fri, 9 Jan 2015 08:54:10 +0000 (10:54 +0200)]
Updated compiler-rt

9 years agoiOS: makefiles and runtime for new archs
Valerii Hiora [Wed, 7 Jan 2015 10:24:18 +0000 (12:24 +0200)]
iOS: makefiles and runtime for new archs

9 years agoiOS: cabi fixes
Valerii Hiora [Fri, 9 Jan 2015 16:18:23 +0000 (18:18 +0200)]
iOS: cabi fixes

Changed alignment according to official Apple docs

9 years agoiOS: fixed test build
Valerii Hiora [Mon, 5 Jan 2015 09:54:41 +0000 (11:54 +0200)]
iOS: fixed test build

Now it is possible to run tests on a jailbroken device

9 years agoiOS: updated targets
Valerii Hiora [Thu, 8 Jan 2015 08:19:52 +0000 (10:19 +0200)]
iOS: updated targets

- target_word_size -> target_pointer_width
- added armv7 and armv7s targets
- enabled building binaries so tests could be run on a jailbroken device

9 years agoFix checking of command line expansion spans (fixes #20747)
Manish Goregaokar [Fri, 9 Jan 2015 14:11:20 +0000 (19:41 +0530)]
Fix checking of command line expansion spans (fixes #20747)

9 years agorustbook: use a relative @import path to ensure it works offline.
Huon Wilson [Fri, 9 Jan 2015 13:54:18 +0000 (00:54 +1100)]
rustbook: use a relative @import path to ensure it works offline.

The URL previously caused the book to require an internet connection to
get the full styling, this should mean no internet is required.

9 years agoRevert "Ignore extra error from test for now"
Manish Goregaokar [Fri, 9 Jan 2015 12:57:23 +0000 (18:27 +0530)]
Revert "Ignore extra error from test for now"

This reverts commit 6342aa62efd1b3aa7e1bc8f834f317290b11c519.

9 years agoauto merge of #20788 : Zoxc/rust/loader, r=huonw
bors [Fri, 9 Jan 2015 09:50:06 +0000 (09:50 +0000)]
auto merge of #20788 : Zoxc/rust/loader, r=huonw

Fixes #19907

9 years agoEnsure that the book is built after the doc/ directory.
Huon Wilson [Fri, 9 Jan 2015 09:26:31 +0000 (20:26 +1100)]
Ensure that the book is built after the doc/ directory.

Without this, rustbook was failing because it was expecting the
directory to exist. (Previously, rustbook was just silently failing to
install the CSS files due to this.)

9 years agoHandle errors properly in rustbook.
Huon Wilson [Fri, 9 Jan 2015 09:25:45 +0000 (20:25 +1100)]
Handle errors properly in rustbook.

Silently ignoring errors is :( so lets not silently ignore them. huon is
:) now.

9 years agoAdd stub deprecation files for each of the old guides.
Huon Wilson [Fri, 9 Jan 2015 08:47:09 +0000 (19:47 +1100)]
Add stub deprecation files for each of the old guides.

There are hundreds of stackoverflow answers, reddit posts and blog
articles that link to these documents, so it's a nicer user experience
if they're not plain 404s.

The intention is to let these hang around only for relatively short
while. The alpha is likely to bring in many new users and they will be
reading the documents mentioned above.

9 years agoAdd test for issue #20414
Jared Roesch [Fri, 9 Jan 2015 07:35:17 +0000 (23:35 -0800)]
Add test for issue #20414

9 years agoLink to http://rustbyexample.com/
kud1ing [Fri, 9 Jan 2015 07:25:42 +0000 (08:25 +0100)]
Link to http://rustbyexample.com/

9 years agoForbid trailing attributes in impl blocks
Steven Fackler [Fri, 9 Jan 2015 05:36:30 +0000 (21:36 -0800)]
Forbid trailing attributes in impl blocks

Closes #20711

9 years agoauto merge of #20786 : brson/rust/rustdocwarnings, r=huonw
bors [Fri, 9 Jan 2015 04:14:53 +0000 (04:14 +0000)]
auto merge of #20786 : brson/rust/rustdocwarnings, r=huonw

Because we are warning about unstable APIs and there are many
of these yet, this creates a high likelyhood doc tests will
fail.

This doesn't seem right as a blanket policy to me anyway, though
certainly we want it in std. Probably more appropriate to add
a rustdoc option.

9 years agoMake the metadata loader use the appropriate Target structure
John Kåre Alsaker [Fri, 9 Jan 2015 01:14:10 +0000 (02:14 +0100)]
Make the metadata loader use the appropriate Target structure

Fixes #19907

9 years agoMake rustdoc use the `[_; N]` syntax instead of `[_, ..N]`
Ken Tossell [Fri, 9 Jan 2015 03:35:08 +0000 (22:35 -0500)]
Make rustdoc use the `[_; N]` syntax instead of `[_, ..N]`

9 years agorustdoc: Stop adding #[deny(warnings)] to all tests
Brian Anderson [Fri, 9 Jan 2015 02:13:20 +0000 (18:13 -0800)]
rustdoc: Stop adding #[deny(warnings)] to all tests

Because we are warning about unstable APIs and there are many
of these yet, this creates a high likelyhood doc tests will
fail.

This doesn't seem right as a blanket policy to me anyway, though
certainly we want it in std. Probably more appropriate to add
a rustdoc option.

9 years agoMerge pull request #20779 from brson/prerel
bors [Fri, 9 Jan 2015 01:19:54 +0000 (01:19 +0000)]
Merge pull request #20779 from brson/prerel

mk: Update prerelase versioning to conform to semver

Reviewed-by: alexcrichton
9 years agoMerge pull request #20741 from mneumann/dragonfly-pthread-mutex
bors [Fri, 9 Jan 2015 01:19:54 +0000 (01:19 +0000)]
Merge pull request #20741 from mneumann/dragonfly-pthread-mutex

Fix assertion in Mutex::destroy() on DragonFly (#20698)

Reviewed-by: alexcrichton
9 years agoMerge pull request #20718 from tshepang/bench-fix-some-warnings
bors [Fri, 9 Jan 2015 01:19:53 +0000 (01:19 +0000)]
Merge pull request #20718 from tshepang/bench-fix-some-warnings

bench: fix a few compiler warnings

Reviewed-by: alexcrichton
9 years agoStandardize punctuation & formatting of TRPL
Kevin Yap [Fri, 9 Jan 2015 00:52:50 +0000 (16:52 -0800)]
Standardize punctuation & formatting of TRPL

This commit is an attempt to standardize the use of punctuation and
formatting in "The Rust Programming Language" as discussed in #19823.

- Convert bold text to italicized textcwhen referring to terminology.
- Convert single-quoted text to italicized or double-quoted text,
  depending on context.
- Use double quotes only in the case of scare quotes or quotations.

9 years agomk: Add rustbook to source dist
Brian Anderson [Fri, 9 Jan 2015 01:03:40 +0000 (17:03 -0800)]
mk: Add rustbook to source dist

9 years agomk: Update prerelase versioning to conform to semver
Brian Anderson [Thu, 8 Jan 2015 23:33:31 +0000 (15:33 -0800)]
mk: Update prerelase versioning to conform to semver

9 years agoMerge pull request #20766 from tsurai/patch-1
bors [Thu, 8 Jan 2015 20:59:48 +0000 (20:59 +0000)]
Merge pull request #20766 from tsurai/patch-1

doc: Fix unresolved import in Bitv example

Reviewed-by: alexcrichton
9 years agoMerge pull request #20735 from squidpickles/master
bors [Thu, 8 Jan 2015 20:59:48 +0000 (20:59 +0000)]
Merge pull request #20735 from squidpickles/master

Spelling fix compatibel -> compatible

Reviewed-by: Gankro
9 years agoEnabled the `vec![]` macro to use the `[a; b]` repeat syntax.
Marvin Löbel [Thu, 8 Jan 2015 20:44:39 +0000 (21:44 +0100)]
Enabled the `vec![]` macro to use the `[a; b]` repeat syntax.

Closes #15587

9 years agoauto merge of #20760 : alexcrichton/rust/rollup, r=alexcrichton
bors [Thu, 8 Jan 2015 18:40:04 +0000 (18:40 +0000)]
auto merge of #20760 : alexcrichton/rust/rollup, r=alexcrichton

9 years agoFix dead links in the guide and reorganize
Alex Crichton [Thu, 8 Jan 2015 18:27:03 +0000 (10:27 -0800)]
Fix dead links in the guide and reorganize

9 years agodoc: Fix unresolved import in Bitv example
Cristian Kubis [Thu, 8 Jan 2015 18:25:53 +0000 (19:25 +0100)]
doc: Fix unresolved import in Bitv example

9 years agoFix destroy assertions in mutex/rwlock/condvar
Michael Neumann [Thu, 8 Jan 2015 18:04:34 +0000 (19:04 +0100)]
Fix destroy assertions in mutex/rwlock/condvar

On DragonFly pthread_{mutex,rwlock,condvar}_destroy() returns EINVAL
when called on a pthread_{mutex,rwlock,condvar}_t that was just
initialized via PTHREAD_{MUTEX,RWLOCK,CONDVAR}_INITIALIZER and not used
in the meantime or initialized via pthread_{mutex,rwlock,condvar}_init().
Change the code to treat a return value of EINVAL on DragonFly as success.

9 years agorollup merge of #20757: nikomatsakis/issue-20624-assoc-types-coherence
Alex Crichton [Thu, 8 Jan 2015 17:32:06 +0000 (09:32 -0800)]
rollup merge of #20757: nikomatsakis/issue-20624-assoc-types-coherence

9 years agoRemove silly long line.
Niko Matsakis [Thu, 8 Jan 2015 17:30:13 +0000 (12:30 -0500)]
Remove silly long line.

9 years agorollup merge of #20754: nikomatsakis/int-feature
Alex Crichton [Thu, 8 Jan 2015 17:24:08 +0000 (09:24 -0800)]
rollup merge of #20754: nikomatsakis/int-feature

Conflicts:
src/test/compile-fail/borrowck-move-out-of-overloaded-auto-deref.rs
src/test/compile-fail/issue-2590.rs
src/test/compile-fail/lint-stability.rs
src/test/compile-fail/slice-mut-2.rs
src/test/compile-fail/std-uncopyable-atomics.rs

9 years agorollup merge of #20751: nikomatsakis/issue-20232
Alex Crichton [Thu, 8 Jan 2015 17:22:10 +0000 (09:22 -0800)]
rollup merge of #20751: nikomatsakis/issue-20232

Issue #20232. Fun.

r? @eddyb you prob know this system best

9 years agorollup merge of #20746: dotdash/fix_indent
Alex Crichton [Thu, 8 Jan 2015 17:22:08 +0000 (09:22 -0800)]
rollup merge of #20746: dotdash/fix_indent

Most of the file lost one level of indentation in a recent rollup. Most
likely an accident during merge conflict resolution.

9 years agorollup merge of #20740: FlaPer87/remove-opt-out-copy
Alex Crichton [Thu, 8 Jan 2015 17:22:06 +0000 (09:22 -0800)]
rollup merge of #20740: FlaPer87/remove-opt-out-copy

[breaking-change] code using this feature will break.

9 years agorollup merge of #20738: brson/feature-staging2
Alex Crichton [Thu, 8 Jan 2015 17:22:03 +0000 (09:22 -0800)]
rollup merge of #20738: brson/feature-staging2

This gets rid of the 'experimental' level, removes the non-staged_api
case (i.e. stability levels for out-of-tree crates), and lets the
staged_api attributes use 'unstable' and 'deprecated' lints.

This makes the transition period to the full feature staging design
a bit nicer.

9 years agorollup merge of #20736: akiss77/pr-u8-c_char
Alex Crichton [Thu, 8 Jan 2015 17:21:59 +0000 (09:21 -0800)]
rollup merge of #20736: akiss77/pr-u8-c_char

9 years agorollup merge of #19897: steveklabnik/trpl
Alex Crichton [Thu, 8 Jan 2015 17:21:57 +0000 (09:21 -0800)]
rollup merge of #19897: steveklabnik/trpl

An updated version of https://github.com/rust-lang/rust/pull/19461

This version vendors aturon/rust-book@731f7bf and builds it when building the docs. This is almost great, except my `make`-foo is poor, so I have my own personal paths in `mk/docs.mk`. How should I best get around that?

/cc @brson

9 years agoAdd another test using projection types in impls.
Niko Matsakis [Thu, 8 Jan 2015 17:02:34 +0000 (12:02 -0500)]
Add another test using projection types in impls.

9 years agoNormalize types bottom up. Fixes #20666.
Niko Matsakis [Thu, 8 Jan 2015 17:02:15 +0000 (12:02 -0500)]
Normalize types bottom up. Fixes #20666.

9 years ago"The Rust Programming Language"
Steve Klabnik [Tue, 2 Dec 2014 14:20:48 +0000 (09:20 -0500)]
"The Rust Programming Language"

This pulls all of our long-form documentation into a single document,
nicknamed "the book" and formally titled "The Rust Programming
Language."

A few things motivated this change:

* People knew of The Guide, but not the individual Guides. This merges
  them together, helping discoverability.
* You can get all of Rust's longform documentation in one place, which
  is nice.
* We now have rustbook in-tree, which can generate this kind of
  documentation. While its style is basic, the general idea is much
  better: a table of contents on the left-hand side.
* Rather than a almost 10,000-line guide.md, there are now smaller files
  per section.

9 years agoAdjust tests to be clearer about the type that results from a shift expression.
Niko Matsakis [Thu, 8 Jan 2015 16:26:42 +0000 (11:26 -0500)]
Adjust tests to be clearer about the type that results from a shift expression.

9 years agoRename test to fit naming convention.
Niko Matsakis [Thu, 8 Jan 2015 15:49:05 +0000 (10:49 -0500)]
Rename test to fit naming convention.

9 years agoNormalize types in supertraits when checking that impls are valid during wf.
Niko Matsakis [Thu, 8 Jan 2015 15:45:56 +0000 (10:45 -0500)]
Normalize types in supertraits when checking that impls are valid during wf.
Fixes #20559.

9 years agoNormalize types in impls, add test for coherence failure.
Niko Matsakis [Thu, 8 Jan 2015 11:58:41 +0000 (06:58 -0500)]
Normalize types in impls, add test for coherence failure.

Fixes #20624.

9 years agoauto merge of #20032 : Manishearth/rust/plugin-loader, r=cmr
bors [Thu, 8 Jan 2015 16:15:03 +0000 (16:15 +0000)]
auto merge of #20032 : Manishearth/rust/plugin-loader, r=cmr

`rustc something.rs -L folder_with_plugin_dylib/ -Z extra-plugins=foo` works via this

My way of testing this is by cloning https://github.com/Manishearth/rust-clippy, `cargo build`ing it, and then running `rustc examples/box_vec.rs -L target/ -Z extra-plugins=rust_clippy` after editing out the `exern crate rust_clippy` from `box_vec.rs`

r? @huonw

fixes #15446

9 years agoWrap long line
Niko Matsakis [Thu, 8 Jan 2015 15:59:40 +0000 (10:59 -0500)]
Wrap long line

9 years agoModify lifetime-infereence-give-expl-lifetime-param-3 to use a shorter
Niko Matsakis [Thu, 8 Jan 2015 15:56:56 +0000 (10:56 -0500)]
Modify lifetime-infereence-give-expl-lifetime-param-3 to use a shorter
type name so that messages do not wrap.

9 years agoAllow shift operator to take any integral type (and add a test).
Niko Matsakis [Thu, 8 Jan 2015 15:28:59 +0000 (10:28 -0500)]
Allow shift operator to take any integral type (and add a test).

9 years agoUpdate graphviz tests to accommodate new isize/usize types and is/us suffixes.
Felix S. Klock II [Thu, 8 Jan 2015 14:19:12 +0000 (15:19 +0100)]
Update graphviz tests to accommodate new isize/usize types and is/us suffixes.

9 years agoUpdate the compile-fail-fulldeps tests with new isize/usize literal suffixes.
Felix S. Klock II [Thu, 8 Jan 2015 14:09:03 +0000 (15:09 +0100)]
Update the compile-fail-fulldeps tests with new isize/usize literal suffixes.

9 years agoAccommodate the "int literal is too large" error message currently embedded in rustc.
Felix S. Klock II [Thu, 8 Jan 2015 14:05:17 +0000 (15:05 +0100)]
Accommodate the "int literal is too large" error message currently embedded in rustc.

9 years agoTest fixes.
Huon Wilson [Thu, 8 Jan 2015 12:36:24 +0000 (23:36 +1100)]
Test fixes.

9 years agoUpdate compile-fail tests to use is/us, not i/u.
Huon Wilson [Thu, 8 Jan 2015 11:05:56 +0000 (22:05 +1100)]
Update compile-fail tests to use is/us, not i/u.

9 years agoUpdate compile fail tests to use usize.
Huon Wilson [Thu, 8 Jan 2015 11:02:42 +0000 (22:02 +1100)]
Update compile fail tests to use usize.

9 years agoUpdate compile fail tests to use isize.
Huon Wilson [Thu, 8 Jan 2015 10:54:35 +0000 (21:54 +1100)]
Update compile fail tests to use isize.

9 years agoRemove warning from the libraries.
Huon Wilson [Thu, 8 Jan 2015 10:45:49 +0000 (21:45 +1100)]
Remove warning from the libraries.

This adds the int_uint feature to *every* library, whether or not it
needs it.

9 years agoAdd a warning feature gate for int/uint in types and i/u suffixes.
Huon Wilson [Thu, 8 Jan 2015 10:16:35 +0000 (21:16 +1100)]
Add a warning feature gate for int/uint in types and i/u suffixes.

9 years agoStore deprecated status of i/u-suffixed literals.
Huon Wilson [Thu, 8 Jan 2015 09:13:14 +0000 (20:13 +1100)]
Store deprecated status of i/u-suffixed literals.