Commit Graph

61137 Commits

Author SHA1 Message Date
Andrew Cann
6a99573513 Fix test 2017-02-03 18:48:15 +08:00
Andrew Cann
5c90dd7978 Use a proper future-compatibility lint 2017-02-03 18:48:15 +08:00
Andrew Cann
085f046c28 Add is_defaulted_unit helper method 2017-02-03 18:48:15 +08:00
Andrew Cann
5dbaefb608 Hash TyTuple's defaulted flag 2017-02-03 18:48:15 +08:00
Andrew Cann
c570cd6636 Fix make tidy 2017-02-03 18:48:15 +08:00
Andrew Cann
2cc84df44c Add warning for () to ! switch 2017-02-03 18:48:15 +08:00
Guillaume Gomez
723eed3228 Update cargo version to last master 2017-02-03 11:08:20 +01:00
Guillaume Gomez
7c4b79c80a Update run-make/issue-22131 to new rustdoc --test format 2017-02-03 11:08:20 +01:00
Guillaume Gomez
f144795058 Set correct hoedown submodule branch 2017-02-03 11:08:20 +01:00
Guillaume Gomez
6756b72a1d Create new flag to test rustdoc --test 2017-02-03 11:08:20 +01:00
Guillaume Gomez
44b59be0f2 Move test from bootstrap to compiletest 2017-02-03 11:08:20 +01:00
Guillaume Gomez
aea6f3234a Put rustdoc --test ui check at the end of docs check 2017-02-03 11:08:20 +01:00
Guillaume Gomez
d97226c132 Add new rustdoc ui tests 2017-02-03 11:08:20 +01:00
Guillaume Gomez
62fb7fc54a Switch logic to Span instead of HashMap 2017-02-03 11:08:20 +01:00
Guillaume Gomez
409e8ba34e Move to my own hoedown repository 2017-02-03 11:08:19 +01:00
Guillaume Gomez
a0ad4adf59 Change thread name 2017-02-03 11:08:19 +01:00
Guillaume Gomez
5fe3915a05 Rework rustdoc test output a bit 2017-02-03 11:08:19 +01:00
Guillaume Gomez
59ac401b39 Truncate output example to 10 lines 2017-02-03 11:08:19 +01:00
Guillaume Gomez
902460d218 Add line number and filename in error message 2017-02-03 11:08:19 +01:00
ggomez
230234f3a8 Add information in case of markdown block code test failure 2017-02-03 11:08:19 +01:00
king6cong
768f6a9b57 add and use rename_or_copy_remove fn that fallback to copy & remove 2017-02-03 17:54:34 +08:00
bors
f45992b300 Auto merge of #39415 - alexcrichton:fix-upload-dirs, r=brson
travis: Really delete the `doc` folder

Got two location to look at, be sure to delete them both.
2017-02-03 09:13:06 +00:00
Tatsuyuki Ishi
7de99cdf69 Merge remote tracking branch 'upstream/master' 2017-02-03 17:42:07 +09:00
king6cong
5e41ec2ccc rename other than copy/remove 2017-02-03 16:13:58 +08:00
Jean-Sébastien Pédron
f6c6b31d26
aarch64 CPU type is called arm64 on FreeBSD 2017-02-03 09:11:33 +01:00
Jean-Sébastien Pédron
458167e3a0
Add aarch64-unknown-freebsd to the supported targets 2017-02-03 09:02:59 +01:00
Tatsuyuki Ishi
3ccb87a532 liballoc_jemalloc: fix linking with system library 2017-02-03 16:15:34 +09:00
bors
57ecd7aa4b Auto merge of #39329 - petrochenkov:rb2, r=alexcrichton
rustbuild: Build jemalloc and libbacktrace only once (take 2)

This is a rebase of https://github.com/rust-lang/rust/pull/38583 without any additions, but with implemented @alexcrichton's suggestions.
~~This includes `exists(Makefile)` => `cfg(stage0)` suggestion... but it will break cross-compilation, no? Are `libstd/liballoc_jemalloc` cross-compiled for `target != host` built during `stage0`?~~

r? @alexcrichton
2017-02-03 05:58:09 +00:00
Clar Charr
3cf485c963 Move rfind to DoubleEndedIterator, add tracking issue. 2017-02-03 00:01:52 -05:00
Alex Crichton
681bc5c66c rustbuild: Add x.py to source tarballs
We should be sure to add our build system entry point!

Closes #39476
2017-02-02 19:24:20 -08:00
bors
5de2a24b2e Auto merge of #39287 - wesleywiser:move_cell, r=aturon
Extend Cell to work with non-Copy types

I'm not sure that I did this right but all of the tests pass.

I also had to move the `new()` function so that `Cell`s with non-`Copy` `T`s could be created. That wasn't in the RFC but I assume it needed to be done?
2017-02-03 03:23:35 +00:00
Niko Matsakis
4b5613cb1d prevent multiple writes to a single entry in a DepTrackingMap 2017-02-02 20:49:21 -05:00
Niko Matsakis
78f7ac561c rejigger how we handle used trait imports
The previous way was not friendly to incremental compilation. The new
plan is to compute, for each body, a set of trait imports used in that
body (slightly subtle: for a closure, we assign the trait imports to the
enclosing fn). Then we walk all bodies and union these sets. The reason
we do this is that we can save the individual sets in the incremental
state, and then recompute only those sets that are needed. Before we
were planning to save only the final union, but in that case if some
components are invalidated we have to recompute *all* of them since we
don't have enough information to "partly" invalidate a result.

In truth, this set probably ought to be part of the `TypeckTables`;
however, I opted not to do that because I don't want to have to
save/restore the entire tables in the incremental state yet (since it
contains a lot of `NodeId` references, and removing those is a
significant refactoring).
2017-02-02 20:48:49 -05:00
Jimmy Cuadra
2add6ac14a Add a name for the parameter to TryFrom::try_from.
Although signatures with anonymous parameters may not be deprecated or
removed at this point, the team seems to agree that the ability to have
an anonymous parameter is unfortunate historical baggage, and that we
shouldn't create new code that uses it.

Context: https://github.com/rust-lang/rust/issues/33417#issuecomment-276933861
2017-02-02 17:40:44 -08:00
Niko Matsakis
fdd7e3c744 remove some of the ways to mutate a DepTrackingMap
It is pretty suspect to insert an entry twice.
2017-02-02 20:38:35 -05:00
Niko Matsakis
d9aaca71cc store typeck lints in the TypeckTables
Otherwise they are a "hidden output"
2017-02-02 20:38:16 -05:00
Niko Matsakis
65b93ebcb8 introduce LintTable 2017-02-02 20:37:13 -05:00
Niko Matsakis
93e0bc6520 change the used_trait_imports map to be a DefIdSet 2017-02-02 20:35:41 -05:00
Niko Matsakis
5a6019429f don't use a mutable field where parameter passing will do 2017-02-02 20:35:41 -05:00
bors
7f294e4c18 Auto merge of #39466 - alexcrichton:fix, r=Manishearth
std: Fix IntoIter::as_mut_slice's signature

This was intended to require `&mut self`, not `&self`, otherwise it's unsound!

Closes #39465
2017-02-03 00:47:58 +00:00
bors
eedaa94e33 Auto merge of #39470 - GuillaumeGomez:rollup, r=GuillaumeGomez
Rollup of 9 pull requests

- Successful merges: #38823, #39196, #39299, #39319, #39373, #39383, #39416, #39420, #39427
- Failed merges:
2017-02-02 21:58:10 +00:00
Dirkjan Ochtman
51e5cb525d Fix typo in bootstrap.py info message 2017-02-02 22:28:26 +01:00
Dirkjan Ochtman
8e793eb3c6 Guard against USER not existing in the environment 2017-02-02 22:28:00 +01:00
Dirkjan Ochtman
a0efdf3441 Don't check for sudo environment if vendored sources are already configured 2017-02-02 22:27:15 +01:00
Guillaume Gomez
d09e4de640 Rollup merge of #39427 - steveklabnik:pliniker-mailmap, r=alexcrichton
update mailmap for @pliniker
2017-02-02 22:22:33 +01:00
Guillaume Gomez
a561ad831d Rollup merge of #39420 - oli-obk:sugg, r=pnkfelix
parser: use suggestions instead of helps with code in them
2017-02-02 22:22:29 +01:00
Guillaume Gomez
9559c4d823 Rollup merge of #39416 - tspiteri:ffi-unsafe-icon, r=brson
rustdoc: mark FFI functions with unsafety icon

Currently, in the list of functions, unsafe functions are marked with a superscript ⚠, but unsafe FFI functions are not. This patch treats unsafe FFI functions like other unsafe functions in this regard.
2017-02-02 22:22:28 +01:00
Guillaume Gomez
7bc322281d Rollup merge of #39383 - nagisa:mir-uninhabited-destinations, r=pnkfelix
Remove the workaround for gh32959

This workaround is no longer necessary as Rust, and by extension MIR, now support uninhabited type
properly. This removes the workaround for the gh32959 that was introduced in gh33267.

Fixes #32959
2017-02-02 22:22:26 +01:00
Guillaume Gomez
a768827c24 Rollup merge of #39373 - Mark-Simulacrum:remove-toprimitive, r=aturon
Remove ToPrimitive trait.

It is no longer used.
2017-02-02 22:22:24 +01:00
Guillaume Gomez
bcfa2f1cce Rollup merge of #39319 - nagisa:remove-rustsetpersonalityfn, r=pnkfelix
Remove unnecessary LLVMRustPersonalityFn binding

LLVM Core C bindings provide this function for all the versions back to what we support (3.7), and
helps to avoid this unnecessary builder->function transition every time. Also a negative diff.

Fixes #38462 (although it was pretty much fixed already)
2017-02-02 22:22:23 +01:00