about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2017-10-21Auto merge of #45366 - ollie27:rustbuild_compiler_docs, r=alexcrichtonbors-5/+3
rustbuild: Don't try to build rustdoc API docs with compiler docs rustdoc is built separately to rustc now so the docs would need to be generated separately as well. Also rustdoc doesn't build at stage 1 which prevented the compiler docs being built at stage 1. Fixes: #44629
2017-10-21Rollup merge of #45419 - steveklabnik:fix-commonmark-renderings, ↵Corey Farwell-19/+19
r=QuietMisdreavus Fix most rendering warnings from switching to CommonMark There's one big one lift, I'm filing a bug for it soon. r? @rust-lang/docs
2017-10-21Rollup merge of #45411 - oli-obk:clippy, r=ManishearthCorey Farwell-8/+168
Reactivate clippy in toolstate.toml The `Cargo.lock` changes are b/c clippy is not its own workspace anymore, but is part of the main workspace r? @Manishearth
2017-10-21Rollup merge of #45407 - topecongiro:fix-typos/librust-hir-README, r=kennytmCorey Farwell-8/+8
Fix typos in README.md
2017-10-21Rollup merge of #45356 - neunenak:master, r=GuillaumeGomezCorey Farwell-0/+4
Add explanatory text for error E0599 Add a text description of this error instead of just example error code r? GuillaumeGomez
2017-10-21Rollup merge of #45227 - frewsxcv:frewsxcv-set-nonblocking, r=sfacklerCorey Farwell-7/+66
Expand docs/examples for TCP `set_nonblocking` methods. Part of https://github.com/rust-lang/rust/issues/44050.
2017-10-21Expand docs/examples for TCP `set_nonblocking` methods.Corey Farwell-7/+66
Part of https://github.com/rust-lang/rust/issues/44050.
2017-10-21Auto merge of #45391 - malbarbo:x32-1, r=alexcrichtonbors-16/+16
Update libc and some fixes for x86_64-unknown-linux-gnux32
2017-10-21Add explanatory text for error E0599greg-0/+4
Add a text description of this error instead of just example error code
2017-10-21Auto merge of #45381 - bjorn3:move_collector_out_of_trans, r=nikomatsakisbors-460/+565
Move collector to rustc_trans_utils
2017-10-21Auto merge of #45370 - alexcrichton:update-windows-rand, r=sfacklerbors-46/+10
std: Update randomness implementation on Windows This commit updates the OS random number generator on Windows to match the upstream implementation in the `rand` crate. First proposed in rust-lang-nursery/rand#111 this implementation uses a "private" API of `RtlGenRandom`. Despite the [documentation][dox] indicating this is a private function its widespread use in Chromium and Firefox as well as [comments] from Microsoft internally indicates that it's highly unlikely to break. Another motivation for switching this is to also attempt to make progress on #44911. It may be the case that this function succeeds while the previous implementation may fail in "weird" scenarios. [dox]: https://msdn.microsoft.com/en-us/library/windows/desktop/aa387694(v=vs.85).aspx [comments]: https://github.com/rust-lang-nursery/rand/issues/111#issuecomment-316140155
2017-10-21Auto merge of #45364 - nikomatsakis:issue-44137-anon, r=michaelwoeristerbors-1/+8
make `erase_regions_ty` query anonymous r? @michaelwoerister
2017-10-20Auto merge of #45348 - alexcrichton:thinlto-timp, r=michaelwoeristerbors-50/+115
rustc: Add `_imp_` symbols later in compilation On MSVC targets rustc will add symbols prefixed with `_imp_` to LLVM modules to "emulate" dllexported statics as that workaround is still in place after #27438 hasn't been solved otherwise. These statics, however, were getting gc'd by ThinLTO accidentally which later would cause linking failures. This commit updates the location we add such symbols to happen just before codegen to ensure that (a) they're not eliminated by the optimizer and (b) the optimizer doesn't even worry about them. Closes #45347
2017-10-20Fix most rendering warnings from switching to CommonMarksteveklabnik-19/+19
2017-10-20Auto merge of #44792 - Mark-Simulacrum:correct-deps, r=alexcrichtonbors-79/+132
Make sure to clear out the stageN-{rustc,std,tools} directories. We copy built tool binaries into a dedicated directory to avoid deleting them, stageN-tools-bin. These aren't ever cleared out by code, since there should be no reason to do so, and we'll simply overwrite them as necessary. When clearing out the stageN-{std,rustc,tools} directories, make sure to delete both Cargo directories -- per-target and build scripts. This ensures that changing libstd doesn't cause problems due to build scripts not being rebuilt, even though they should be. Fixes https://github.com/rust-lang/rust/issues/44739.
2017-10-20Fix some tests for linux gnux32Marco A L Barbosa-16/+16
2017-10-20Auto merge of #45359 - arielb1:escaping-borrow, r=eddybbors-55/+127
Fix a few bugs in drop generation This fixes a few bugs in drop generation, one of which causes spurious MIR borrowck errors. Fixes #44832. r? @eddyb
2017-10-20Reactivate clippy in toolstate.tomlOliver Schneider-8/+168
2017-10-20Auto merge of #45324 - GuillaumeGomez:switch-default-markdown-renderer, ↵bors-27/+22
r=steveklabnik Print rustdoc rendering warnings all the time r? @rust-lang/dev-tools
2017-10-20Fix typos in README.mdtopecongiro-8/+8
2017-10-20Auto merge of #45319 - michaelwoerister:use-128bit-siphash, r=nikomatsakisbors-83/+591
incr.comp.: Use 128bit SipHash for fingerprinting This PR switches incr. comp. result fingerprinting from 128 bit BLAKE2 to 128 bit SipHash. When we started using BLAKE2 for fingerprinting, the 128 bit version of SipHash was still experimental. Now that it isn't anymore we should be able to get a nice performance boost without significantly increasing collision probability. ~~I'm going to start a try-build for this, so we can gauge the performance impact before merging (hence the `WIP` in the title).~~ EDIT: Performance improvements look as expected. Tests seem to be passing. Fixes #41215.
2017-10-20Auto merge of #45316 - goffrie:exitable-breakable-block, r=nikomatsakisbors-1/+32
Mark block exits as reachable if the block can break. This only happens when desugaring `catch` expressions for now, but regular blocks (in HIR) can be broken from - respect that when doing reachability analysis. Fixes #45124.
2017-10-20Auto merge of #45312 - theotherjimmy:refactor-ensure, r=michaelwoeristerbors-49/+44
Refactor `ensure` and `try_get_with` There was a bit of code shared between `try_get_with` and `ensure`, after I added `ensure`. I refactored that shared code into a query-agnostic method called `read_node_index`. The new method `read_node_index` will attempt to find the node index (`DepNodeIndex`) of a query. When `read_node_index` finds the `DepNodeIndex`, it marks the current query as a reader of the node it's requesting the index of. This is used by `try_get_with` and `ensure` as it elides the unimportant (to them) details of if the query is invalidated by previous changed computation (Red) or new and if they had to mark the query green. For both `try_get_with` and `ensure`, they just need to know if they can lookup the results or have to reevaluate. @nikomatsakis this is the [refactor we discussed](https://github.com/rust-lang/rust/pull/45228#discussion_r144577392) in the comment thread of #45228
2017-10-19Auto merge of #45288 - GuillaumeGomez:tab-key-binding, r=QuietMisdreavusbors-17/+34
Save the highlighted item when switching tab To be merged after #45281. r? @rust-lang/docs
2017-10-19Make tools which may not build return Option.Mark Simulacrum-53/+65
This makes it mandatory for other steps to have to handle the potential failure instead of failing in an odd way later down the road.
2017-10-19Auto merge of #45080 - clippered:issue-44986/fix-windows-ui-path, r=estebankbors-4/+9
Issue 44986/fix windows ui path #44968
2017-10-19Auto merge of #45386 - kennytm:rollup, r=kennytmbors-87/+88
Rollup of 8 pull requests - Successful merges: #45343, #45349, #45352, #45374, #45375, #45376, #45377, #45382 - Failed merges:
2017-10-19Update libc to include linux gnux32 fixesMarco A L Barbosa-0/+0
2017-10-20Rollup merge of #45382 - Keruspe:master, r=Mark-Simulacrumkennytm-1/+1
rustbuild: fix dist in debug mode In debug mode, the artifacts are placed in "debug", so don't hardcode "release" and use our helper to get the right directory name
2017-10-20Rollup merge of #45377 - topecongiro:fix-typos/librustc-ty-README, r=kennytmkennytm-5/+5
Fix typos in librustc/ty/README.md
2017-10-20Rollup merge of #45376 - topecongiro:fix-typos-in-readme, r=Mark-Simulacrumkennytm-2/+2
Fix typos in src/librustc/README.md
2017-10-20Rollup merge of #45375 - topecongiro:enable-tilde, r=Mark-Simulacrumkennytm-1/+1
Allow passing a path with tilde to the configure script Currently `./configure --local-rust-root=~/.cargo --enable-local-rebuild` fails with ``` Exception: no cargo executable found at `~/.cargo//bin/cargo` ```
2017-10-20Rollup merge of #45374 - topecongiro:remove-enable-rustbuild-config-option, ↵kennytm-2/+2
r=Mark-Simulacrum Remove --enable-rustbuild config option from an example `--enable-rustbuild` is no longer recognized by the configure script. Also I think we should use `./configure` and `./x.py` instead of `configure` and `../x.py`.
2017-10-20Rollup merge of #45352 - alexcrichton:emscripten-tests, r=nikomatsakiskennytm-61/+60
test: Update Emscripten failures/passing All tests should now have annotation for *why* they're ignored on emscripten. A few tests no longer need such an annotation as well! Closes #41299
2017-10-20Rollup merge of #45349 - christianpoveda:closures_str_find, r=steveklabnikkennytm-1/+3
added examples of closures for str::find This is an attempt to fix https://github.com/rust-lang/rust/issues/45327 r? @steveklabnik
2017-10-20Rollup merge of #45343 - bgermann:master, r=alexcrichtonkennytm-14/+14
Make Solaris builder compatible with Solaris 10 retry Unfortunately, #45255 does not quite cut it, so use a different approach to have Solaris 10 compatibility by tricking libbacktrace's autoconf tests. The sysroot download routine is slightly changed, too.
2017-10-19Auto merge of #45301 - ishitatsuyuki:llvm5-backport, r=alexcrichtonbors-1/+53
Backport ThinLTO LLVM 5 fixes This makes building nightly more convenient on Arch.
2017-10-19Auto merge of #45232 - zackmdavis:moar_lint_suggestions, r=estebankbors-36/+141
code suggestions for non-shorthand field pattern, no-mangle lints continuing in the spirit of #44942 ![moar_lint_suggestions](https://user-images.githubusercontent.com/1076988/31485011-3b20cc80-aee7-11e7-993d-81267ab77732.png) r? @estebank
2017-10-19rustbuild: fix dist in debug modeMarc-Antoine Perennou-1/+1
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2017-10-19Move collector to rustc_trans_utilsbjorn3-460/+565
2017-10-19Update ThinLTO (internalization) for LLVM 5Tatsuyuki Ishi-1/+16
Ref: https://github.com/llvm-mirror/llvm/commit/ccb80b9c0f60f33780e5e29bf66a87bb56968b99
2017-10-19Fix typos in librustc/ty/README.mdtopecongiro-5/+5
2017-10-19Fix typos in src/librustc/README.mdtopecongiro-2/+2
2017-10-18Make sure to clear out the stageN-{rustc,std,tools} directories.Mark Simulacrum-31/+72
We copy built tool binaries into a dedicated directory to avoid deleting them, stageN-tools-bin. These aren't ever cleared out by code, since there should be no reason to do so, and we'll simply overwrite them as necessary. When clearing out the stageN-{std,rustc,tools} directories, make sure to delete both Cargo directories -- per-target and build scripts. This ensures that changing libstd doesn't cause problems due to build scripts not being rebuilt, even though they should be.
2017-10-19Allow passing a path with tildetopecongiro-1/+1
2017-10-19Fix typostopecongiro-2/+2
2017-10-19Remove --enable-rustbuild config option from exampletopecongiro-1/+1
2017-10-18std: Update randomness implementation on WindowsAlex Crichton-46/+10
This commit updates the OS random number generator on Windows to match the upstream implementation in the `rand` crate. First proposed in rust-lang-nursery/rand#111 this implementation uses a "private" API of `RtlGenRandom`. Despite the [documentation][dox] indicating this is a private function its widespread use in Chromium and Firefox as well as [comments] from Microsoft internally indicates that it's highly unlikely to break. Another motivation for switching this is to also attempt to make progress on #44911. It may be the case that this function succeeds while the previous implementation may fail in "weird" scenarios. [dox]: https://msdn.microsoft.com/en-us/library/windows/desktop/aa387694(v=vs.85).aspx [comments]: https://github.com/rust-lang-nursery/rand/issues/111#issuecomment-316140155
2017-10-18Auto merge of #45368 - kennytm:rollup, r=kennytmbors-122/+289
Rollup of 10 pull requests - Successful merges: #44138, #45082, #45098, #45181, #45217, #45281, #45325, #45326, #45340, #45354 - Failed merges:
2017-10-19Rollup merge of #45354 - cuviper:unit_doc, r=QuietMisdreavuskennytm-3/+16
rustdoc: add a primitive page for "unit" In `src/libstd/primitive_docs.rs`, a `#[doc(primitive = "unit")]` section has sat long neglected. This patch teaches rustdoc to recognize "unit", and steals its trait implementations away from the tuple page.