Commit Graph

61751 Commits

Author SHA1 Message Date
Ariel Ben-Yehuda
4e2c993bd3 trans: don't ICE when trying to create ADT trans-items
ADTs are translated in-place from rustc_trans::callee, so no trans-items
are needed.

This fix will be superseded by the shimmir branch, but I prefer not to
backport that to beta.

Fixes #39823.
2017-02-23 20:03:18 +02:00
Peter Wagenet
ae32b6eafd Better handling of lib defaults 2017-02-23 09:36:33 -08: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
Alex Crichton
30b0ed0bb6 rustbuild: Retry downloads by default
Don't rely on curl's --retry, it appears to not work for some errors like SSL
errors.
2017-02-23 07:04:29 -08:00
Guillaume Gomez
088b727456 Add missing urls in MutexGuard docs 2017-02-23 11:43:30 +01:00
Josh Driver
da6dc5331f Add macro suggestions for macros imported with use
This commit searchs modules for macro suggestions.
It also removes imported macro_rules from macro_names,
and adds more corner case checks for which macros
should be suggested in specific contexts.
2017-02-23 20:28:35 +10:30
Josh Driver
4ecdc68153 Move MacroKind into Def::Macro 2017-02-23 20:12:33 +10:30
Luxko
729948f958 Update exception-safety.md 2017-02-23 01:50:16 -06:00
Luxko
84ca464f9c Update exception-safety.md
Fix variable name typo
2017-02-23 01:44:27 -06:00
Jim Blandy
6b8e1756c7 Update std::fmt module docs for landing of #33642. 2017-02-22 21:18:52 -08:00
Taylor Cramer
6f0447b52b Change break or continue with no label to error nmbr 590 2017-02-22 18:10:37 -08: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
Guillaume Gomez
958fbc5d66 Make path separator replacement for subfiles as well 2017-02-22 23:19:03 +01:00
Nikhil Shagrithaya
b7b58ffdf4 Added test for inclusive_range_syntax in compile-fail test suite 2017-02-23 00:50:29 +05:30
Raph Levien
b3ee2490c2 Merge branch 'master' of https://github.com/rust-lang/rust into readdir 2017-02-22 09:30:46 -08:00
Raph Levien
81b9b3c542 Update name_bytes, scoop up latest libc
Update the implementation of name_bytes to use the owned string (which
is thread safe). Also bump the src/liblibc submodule now that's merged.
2017-02-22 09:28:02 -08:00
Niko Matsakis
b576abd2cc detect "bootstrap outputs" when serializing the dep-graph
Fixes #39828.
2017-02-22 12:02:41 -05:00
Nathan Froyd
ffc6ddd51b add -C overflow-checks option
In addition to defining and handling the new option, we also add a
method on librustc::Session for determining the necessity of overflow
checks.  This method provides a single point to sort out the three (!)
different ways for turning on overflow checks: -C debug-assertions, -C
overflow-checks, and -Z force-overflow-checks.

Fixes #33134.
2017-02-22 10:08:57 -05:00
er-1
f557e71f44 Ignore ASM tests on powerpc
Part of #39015
2017-02-22 15:49:07 +01:00
Aleksey Kladov
689dc26b68 Clarify thread::Builder::stack_size 2017-02-22 17:13:22 +03:00
Taylor Cramer
802a826a57 Stabilize static_recursion 2017-02-21 23:41:04 -08:00
Nick Cameron
9ce8bb9f9d Add save-analysis data to nightly manifests.
For use by RLS.
2017-02-22 15:33:34 +13: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
Raph Levien
163698c45f Switch Fuchsia to readdir (instead of readdir_r)
The readdir_r function is deprecated on newer Posix systems because of
various problems, and not implemented at all for Fuchsia. There are
already implementations using both, and this patch switches Fuchsia
over to the readdir-based one.

Fixes #40021 for Fuchsia, but that issue also contains discussion of
what should happen for other Posix systems.
2017-02-21 15:55:47 -08: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
Alex Crichton
347e1af66b std: Relax UnwindSafe impl for Unique
Add the `?Sized` bound as we don't require the type to be sized.

Closes #40011
2017-02-21 14:36:24 -08:00
Alex Crichton
9a08f40349 travis: Move -mrelax-relocations to Docker config
This doesn't belong in rustbuild itself, and now that we have only rustbuild we
can move this out of the build system.
2017-02-21 14:22:48 -08:00
Alex Crichton
305aca86f9 travis: Compile a more compatible libc.a for musl
The mitigations for #34978 involve passing `-Wa,-mrelax-relocations=no` to all C
code we compile, and we just forgot to pass it when compiling musl itself.

Closes #39979
2017-02-21 14:22:42 -08: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
James Miller
d80cf80b16 Update codegen test with new attributes 2017-02-22 09:49:12 +13: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