Commit Graph

37132 Commits

Author SHA1 Message Date
bors
391e0106ef 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.
2015-01-10 05:55:07 +00:00
bors
9205d74fe0 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!)
2015-01-10 03:45:11 +00:00
bors
14f9d1f256 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
2015-01-10 00:55:12 +00:00
Huon Wilson
719c5d7bde core: rm unused lifetime. 2015-01-10 11:31:53 +11:00
Alex Crichton
ccb1e460dc 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.
2015-01-09 15:49:09 -08:00
Nathan Stoddard
2a29296ea3 Fix a couple wording issues in trpl book 2015-01-09 17:21:30 -05:00
bors
c133b2110b auto merge of #20776 : kmcallister/rust/macro-cleanup, r=alexcrichton
r? @alexcrichton. This passes tests for me.
2015-01-09 22:15:12 +00:00
Alex Crichton
9cc847d8c3 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
2015-01-09 13:26:21 -08:00
bors
73a25f55ad auto merge of #20815 : brson/rust/installer, r=alexcrichton 2015-01-09 20:10:07 +00:00
Sebastian Gesemann
d4b70fe6c6 documentation: Fix boxed closure left-over and add some words on why we use a type parameter for closures. 2015-01-09 20:10:14 +01:00
Guillaume Gomez
ba462b88e9 Update advanced.md 2015-01-09 20:08:30 +01:00
Keegan McAllister
a96a8b2b25 Update macro scope intro 2015-01-09 11:06:17 -08:00
Keegan McAllister
128e7ff53b Re-reduce libstd macro duplication
The libstd definitions move to libcore, which causes some minor updates there.
2015-01-09 11:06:17 -08:00
Raul Gutierrez S
28723048a5 Remove extra dangling period
Signed-off-by: Raul Gutierrez S <rgs@itevenworks.net>
2015-01-09 10:54:00 -08:00
Pascal Hertleif
1a602c1779 Update Conclusion of The Rust Programming Language
This replaces a obsolete conclusion (based on the original, basic Guide) with
links to further documentation sources.
2015-01-09 19:48:27 +01:00
Brian Anderson
df059020c4 Fix revert of rust-installer 2015-01-09 10:19:30 -08:00
bors
b5571ed71a Merge pull request #20800 from jroesch/add-regression-for-issue-20414
Add test for issue #20414

Reviewed-by: alexcrichton
2015-01-09 17:35:11 +00:00
bors
6638242479 Merge pull request #20799 from kud1ing/patch-1
Link to http://rustbyexample.com/

Reviewed-by: steveklabnik
2015-01-09 17:35:11 +00:00
bors
bc492f0cf4 Merge pull request #20793 from ktossell/rustdoc-fixedvector-syntax
Make rustdoc use the `[_; N]` syntax instead of `[_, ..N]`

Reviewed-by: sfackler
2015-01-09 17:35:10 +00:00
bors
87ed884a9c Merge pull request #20699 from vhbit/ios-archs
Better iOS support

Reviewed-by: alexcrichton
2015-01-09 17:35:09 +00:00
Björn Steinbrink
2100b10c4c Treat struct(T) the same as struct S { x: T } WRT being immediate args
Currently we pass a `struct S(u64)` as an immediate value on i686, but a
`struct S { x: u64 }` is passed indirectly. This seems pretty wrong,
as they both have the same underlying LLVM type `{ i64 }`, no sense in
treating them differently.
2015-01-09 17:40:13 +01:00
Valerii Hiora
577d0dbcb8 iOS: preliminary 64-bit archs support 2015-01-09 18:38:30 +02:00
Valerii Hiora
3fbbc6ea2a Updated compiler-rt 2015-01-09 18:38:30 +02:00
Valerii Hiora
a945f288ff iOS: makefiles and runtime for new archs 2015-01-09 18:38:30 +02:00
Valerii Hiora
ea045d2055 iOS: cabi fixes
Changed alignment according to official Apple docs
2015-01-09 18:38:30 +02:00
Valerii Hiora
ac0607acb2 iOS: fixed test build
Now it is possible to run tests on a jailbroken device
2015-01-09 18:23:42 +02:00
Valerii Hiora
1fb91dc1c2 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
2015-01-09 18:23:42 +02:00
Manish Goregaokar
4a7b710031 Fix checking of command line expansion spans (fixes #20747) 2015-01-09 19:41:20 +05:30
Huon Wilson
afe260ff4b 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.
2015-01-10 00:54:18 +11:00
Manish Goregaokar
8c6bd81196 Revert "Ignore extra error from test for now"
This reverts commit 6342aa62ef.
2015-01-09 18:27:23 +05:30
bors
2e2372c6c4 auto merge of #20788 : Zoxc/rust/loader, r=huonw
Fixes #19907
2015-01-09 09:50:06 +00:00
Huon Wilson
6fc0ac5ee3 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.)
2015-01-09 20:26:31 +11:00
Huon Wilson
80fb5ca874 Handle errors properly in rustbook.
Silently ignoring errors is :( so lets not silently ignore them. huon is
:) now.
2015-01-09 20:25:45 +11:00
Huon Wilson
4247a30bdd 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.
2015-01-09 19:47:09 +11:00
Jared Roesch
2d2159f5b0 Add test for issue #20414 2015-01-08 23:35:17 -08:00
kud1ing
2730075ad4 Link to http://rustbyexample.com/ 2015-01-09 08:25:42 +01:00
Steven Fackler
cbd962ebb5 Forbid trailing attributes in impl blocks
Closes #20711
2015-01-08 21:36:30 -08:00
bors
20bce44810 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.
2015-01-09 04:14:53 +00:00
Tim Dumol
d0bc0315f5 Add append() and split_off() to DList. 2015-01-09 12:13:16 +08:00
John Kåre Alsaker
9dea210730 Make the metadata loader use the appropriate Target structure
Fixes #19907
2015-01-09 04:51:47 +01:00
Ken Tossell
38a1bb13cd Make rustdoc use the [_; N] syntax instead of [_, ..N] 2015-01-08 22:35:08 -05:00
Brian Anderson
a728b4c9b8 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.
2015-01-08 18:13:20 -08:00
bors
32545a0460 Merge pull request #20779 from brson/prerel
mk: Update prerelase versioning to conform to semver

Reviewed-by: alexcrichton
2015-01-09 01:19:54 +00:00
bors
948d1d004d Merge pull request #20741 from mneumann/dragonfly-pthread-mutex
Fix assertion in Mutex::destroy() on DragonFly (#20698)

Reviewed-by: alexcrichton
2015-01-09 01:19:54 +00:00
bors
e72ad98e46 Merge pull request #20718 from tshepang/bench-fix-some-warnings
bench: fix a few compiler warnings

Reviewed-by: alexcrichton
2015-01-09 01:19:53 +00:00
Kevin Yap
8f61814641 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.
2015-01-08 17:15:26 -08:00
Brian Anderson
44a287e6eb mk: Add rustbook to source dist 2015-01-08 17:03:40 -08:00
Brian Anderson
1f550b47c2 mk: Update prerelase versioning to conform to semver 2015-01-08 15:33:31 -08:00
bors
6354d60ede Merge pull request #20766 from tsurai/patch-1
doc: Fix unresolved import in Bitv example

Reviewed-by: alexcrichton
2015-01-08 20:59:48 +00:00
bors
bc6e080df5 Merge pull request #20735 from squidpickles/master
Spelling fix compatibel -> compatible

Reviewed-by: Gankro
2015-01-08 20:59:48 +00:00