Commit Graph

61614 Commits

Author SHA1 Message Date
Guillaume Gomez
94a3172891 Rollup merge of #40010 - GuillaumeGomez:barrier-docs, r=frewsxcv
Add missing urls and examples into Barrier structs

r? @frewsxcv
2017-02-24 13:22:56 +01:00
Guillaume Gomez
01758c19b7 Rollup merge of #39940 - sgrif:sg-indentation, r=alexcrichton
Fix indentation of error message

So I just encountered this error for the first time. It's unclear what
it means, why I encountered it, or how to fix it. But worst of all, it
has a random newline and weird indentation! This commit fixes that last
bit.

<img width="680" alt="screen shot 2017-02-18 at 4 35 36 pm" src="https://cloud.githubusercontent.com/assets/1529387/23097087/0ef5ac4a-f5f9-11e6-9132-18ce759f7092.png">
2017-02-24 13:22:55 +01:00
Guillaume Gomez
3b10300e0a Rollup merge of #39886 - mbrubeck:doc-edit, r=steveklabnik
Additional docs for Vec, String, and slice trait impls

r? @steveklabnik
2017-02-24 13:22:54 +01:00
Guillaume Gomez
03e9e00d85 Rollup merge of #39845 - JDemler:master, r=steveklabnik
Add Documentation for Custom Attributes and Error Reporting in Procedural Macros

This fixes #39821 .

I'm not sure if the process of how to access custom attributes should be documented as well.
But I feel, that this should rather be documented in `syn`
2017-02-24 13:22:53 +01:00
Guillaume Gomez
c07aa14201 Rollup merge of #39815 - oli-obk:patch-3, r=aturon
enable tools to use test runners programmatically
2017-02-24 13:22:52 +01:00
Guillaume Gomez
246b1db3ec Rollup merge of #39777 - mina86:gib, r=steveklabnik
book: binary prefixed are defined by IEC and not in SI

Binary prefixes (such as Gi for ‘gibi-’ in GiB) are defined by
International Electrotechnical Commission (IEC) and not in the
International System of Units (SI).

Though to be honest I’d just reword the previous paragraph to use ‘1 GiB’.
2017-02-24 13:22:51 +01:00
bors
9f082d2111 Auto merge of #39714 - vadimcn:top-level-expn2, r=michaelwoerister
Code cleanup.

r? @michaelwoerister

Just figured out that the same condition may be expressed much more cleanly.
Sorry for the churn!
2017-02-24 07:30:11 +00:00
bors
674af8c7f5 Auto merge of #39851 - alexcrichton:verify-unstable, r=brson
test: Verify all sysroot crates are unstable

As we continue to add more crates to the compiler and use them to implement
various features we want to be sure we're not accidentally expanding the API
surface area of the compiler! To that end this commit adds a new `run-make` test
which will attempt to `extern crate foo` all crates in the sysroot, verifying
that they're all unstable.

This commit discovered that the `std_shim` and `test_shim` crates were
accidentally stable and fixes the situation by deleting those shims. The shims
are no longer necessary due to changes in Cargo that have happened since they
were originally incepted.
2017-02-24 02:40:16 +00:00
bors
413a975e31 Auto merge of #40039 - abonander:issue_40001, r=jseyfried
Don't assume plugin-whitelisted attributes are proc macro attributes

closes #40001
2017-02-23 16:56:13 +00:00
Austin Bonander
dac25e2b27 Don't assume plugin-whitelisted attributes are proc macro attributes
closes #40001
2017-02-22 15:43:03 -08:00
bors
bfe45974a1 Auto merge of #39866 - steveklabnik:unstable-book, r=alexcrichton
Create the Unstable Book

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

This isn't done yet. To do:

- [x] import the nightly book contents here
- [ ] possibly write some more chapters

This will _not_ be done before it lands; that's part of the whole unstable thing.
2017-02-22 23:08:35 +00:00
Steve Klabnik
06e311b66a get linkcheck clean 2017-02-21 21:12:56 -05:00
Steve Klabnik
5f325e918d fix some links 2017-02-21 21:12:55 -05:00
Steve Klabnik
6fb2545f77 TRPL Nightly -> Unstable Book
Port the chapters from TRPL's "Nightly Rust" section to the Unstable
Book, and remove it from TRPL.
2017-02-21 21:12:55 -05:00
Steve Klabnik
aba4bf60f5 write intro 2017-02-21 21:12:54 -05:00
Steve Klabnik
f16c48e713 Import basic book contents 2017-02-21 21:12:53 -05:00
Steve Klabnik
a1301c3495 Create "The Unstable Book"
part of #39588
2017-02-21 21:12:52 -05:00
bors
fc6f092c21 Auto merge of #39855 - steveklabnik:mdbook-reference, r=GuillaumeGomez
Port the reference to mdbook

Part of #39588.

This is only a work in progress. Still left to do:

- [x] double check contents weren't duplicated/lost with the move to individual pages (I'm going to do this)
- [x] fix up links [and footnotes](https://github.com/rust-lang/rust/pull/39855#issuecomment-280168170) (@frewsxcv has volunteered to help with this)
- [x] change `src/doc/reference.md` to redirect to the book
- [x] move the reference on the doc index to be part of the bookshelf
2017-02-21 23:46:20 +00:00
bors
0f34b532af Auto merge of #39765 - GuillaumeGomez:file-not-found-for-module-error, r=jseyfried
File not found for module error

Fixes #39542.

r? @jonathandturner

Maybe you want to take a look @pnkfelix?
2017-02-21 21:08:11 +00:00
Guillaume Gomez
58a9dd3f7e Add missing urls and examples into Barrier structs 2017-02-21 21:12:35 +01:00
Alex Crichton
40aaa65734 test: Verify all sysroot crates are unstable
As we continue to add more crates to the compiler and use them to implement
various features we want to be sure we're not accidentally expanding the API
surface area of the compiler! To that end this commit adds a new `run-make` test
which will attempt to `extern crate foo` all crates in the sysroot, verifying
that they're all unstable.

This commit discovered that the `std_shim` and `test_shim` crates were
accidentally stable and fixes the situation by deleting those shims. The shims
are no longer necessary due to changes in Cargo that have happened since they
were originally incepted.
2017-02-21 11:38:17 -08:00
Steve Klabnik
55c02f6bcc move the reference to the bookshelf 2017-02-21 14:03:15 -05:00
Steve Klabnik
54baed6dc1 Redirect to the new reference 2017-02-21 14:03:13 -05:00
Steve Klabnik
9e9552048e Add footnote style.
Until https://github.com/azerupi/mdBook/issues/210 is resolved,
we'll import the css file.
2017-02-21 14:03:11 -05:00
Steve Klabnik
3eb8434150 Get linkchecker clean
This affects the book, some missed things in the reference, the grammar,
and the standard library. Whew!
2017-02-21 14:02:12 -05:00
Steve Klabnik
4305b67d31 statements and expressions 2017-02-21 14:02:02 -05:00
Steve Klabnik
0c5e17a2e5 types 2017-02-21 14:02:00 -05:00
Steve Klabnik
3de961972f memory model 2017-02-21 14:01:58 -05:00
Corey Farwell
465a2bd75f Items 2017-02-21 14:01:55 -05:00
Steve Klabnik
c0b40e1b5c linkage 2017-02-21 14:01:52 -05:00
Steve Klabnik
ac4c55e944 unsafety 2017-02-21 14:01:50 -05:00
Steve Klabnik
093380acdc influences 2017-02-21 14:01:48 -05:00
Corey Farwell
227aae3e63 Items and attributes 2017-02-21 14:01:46 -05:00
Corey Farwell
d1f046fe89 Crates and source files 2017-02-21 14:01:44 -05:00
Corey Farwell
cdcc0f3850 Procedural macros 2017-02-21 14:01:42 -05:00
Corey Farwell
b443c5ee22 Macros By Example 2017-02-21 14:01:40 -05:00
Corey Farwell
a486dcbd97 Macros 2017-02-21 14:01:38 -05:00
Corey Farwell
49cea270d1 Paths 2017-02-21 14:01:37 -05:00
Corey Farwell
c6275c4b76 Tokens 2017-02-21 14:01:35 -05:00
Corey Farwell
94f3c1eee8 Comments 2017-02-21 14:01:33 -05:00
Corey Farwell
72497d5d13 Identifiers 2017-02-21 14:01:31 -05:00
Corey Farwell
fd272161cb String table productions 2017-02-21 14:01:29 -05:00
Corey Farwell
bb6b578e0b Unicode productions 2017-02-21 14:01:27 -05:00
Corey Farwell
c5cac872c8 Introduction 2017-02-21 14:01:25 -05:00
Steve Klabnik
287a3457bc clean up some things
I double checked that everything is here and in the correct order; this fixes things up
2017-02-21 14:01:23 -05:00
Steve Klabnik
c937254357 Start the port of the reference to mdBook
This only really moves the files, there's a lot more work coming
in the next commits.

Part of #39588.
2017-02-21 14:00:47 -05:00
bors
8a1ce4020c Auto merge of #39874 - amosonn:master, r=alexcrichton
Fixes overflow in libsdt/io/cursor.rs "seek"

Fixes #39631
Test which fails (with old implementation), then fix to implementation.
2017-02-21 16:04:44 +00:00
Guillaume Gomez
b6818be41d Add long error explanations 2017-02-21 15:52:14 +01:00
bors
3954c70537 Auto merge of #39990 - CryZe:emscripten-no-vectorization, r=alexcrichton
Turn off Vectorization for Emscripten

When targeting Emscripten, rustc emits Vector Instructions by default. However Web Assembly doesn't support Vector Instructions yet, which causes Binaryen to fail converting the intermediate asm.js code to Web Assembly. While asm.js kind of supports Vector Instructions, they aren't supported by any browser other than Firefox, often meaning that they need to be emulated very slowly. So it should just be turned off
for all Emscripten targets.

Fixes #38558
2017-02-21 04:36:46 +00:00
Christopher Serr
275e9bb51b Turn off Vectorization for Emscripten
When targeting Emscripten, rustc emits Vector Instructions by default.
However Web Assembly doesn't support Vector Instructions yet, which
causes Binaryen to fail converting the intermediate asm.js code to Web
Assembly. While asm.js kind of supports Vector Instructions, they
aren't supported by any browser other than Firefox, often meaning that
they need to be emulated very slowly. So it should just be turned off
for all Emscripten targets.

Fixes #38558
2017-02-20 23:29:02 +01:00