summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2017-10-06Update cargo to rust-1.21.0 branchAlex Crichton-0/+0
2017-08-31Rename the rls component to rls-preview on beta/stableNick Cameron-4/+9
2017-08-31Update rls to beta (1.21) branchNick Cameron-0/+0
2017-08-30Revert "Remove all packaging support for the RLS"Nick Cameron-0/+15
This reverts commit ccb7c55ac7a9941b6a4d23f0aaf7034aad0dba42.
2017-08-28Remove all packaging support for the RLSAlex Crichton-15/+0
2017-08-27Update Cargo submoduleTatsuyuki Ishi-0/+0
2017-08-27Additional libc cleanupTatsuyuki Ishi-0/+1
2017-08-26Update cargoMark Simulacrum-0/+0
2017-08-25Update RLS and CargoNick Cameron-0/+0
2017-08-24Auto merge of #43907 - euclio:command, r=alexcrichtonbors-451/+240
Use std::process::Command throughout compile-test Resubmission of #43798. Fixes #43762. r? @alexcrichton
2017-08-23capture `adb shell` stdoutAndy Russell-0/+2
2017-08-22remove needless cloneAndy Russell-1/+1
2017-08-20Auto merge of #43950 - redox-os:redox_docker, r=alexcrichtonbors-0/+1
Add x86_64-unknown-redox to build manifest target list This should fix the issue of `x86_64-unknown-redox` not being available for `rustup target add`
2017-08-17Add x86_64-unknown-redox to build manifest target listJeremy Soller-0/+1
2017-08-16remove procsrv moduleAndy Russell-51/+28
2017-08-16remove `extra_args` argumentAndy Russell-48/+38
2017-08-16return `Command` from make_compile_argsAndy Russell-68/+45
2017-08-16make `compose_and_run_compiler` take `Command`Andy Russell-52/+40
2017-08-16remove `working_dir` argumentAndy Russell-40/+20
2017-08-16let `compose_and_run` take a `Command`Andy Russell-68/+55
2017-08-16replace procsrv functions with `Command`Andy Russell-182/+70
2017-08-15use field init shorthand EVERYWHEREZack M. Davis-35/+35
Like #43008 (f668999), but _much more aggressive_.
2017-08-13Cargotest needs only one rustdoc.exe to exist on WindowsMark Simulacrum-1/+4
2017-08-11Rollup merge of #43632 - ruuda:allow-long-relative-urls, r=Mark-SimulacrumGuillaume Gomez-1/+1
Detect relative urls in tidy check This came up in #43631: there can be long relative urls in Markdown comments, that do not start with `http://` or `https://`, so the tidy check will not detect them as urls and complain about the line length. This PR adds detection of relative urls starting with `../`.
2017-08-10Auto merge of #43589 - aidanhs:aphs-fix-system-malloc, r=alexcrichtonbors-0/+1
Make a disable-jemalloc build work Fixes #43510. I've tested this up to building a stage1 compiler. r? @alexcrichton cc @cuviper @vorner @cuviper your fix was almost correct, you just had a stray `!` in there which caused the second error you saw.
2017-08-10Fix cross-crate global allocators on windowsAidan Hobson Sayers-0/+1
2017-08-10Auto merge of #43522 - alexcrichton:rewrite-lints, r=michaelwoeristerbors-3/+15
rustc: Rearchitect lints to be emitted more eagerly In preparation for incremental compilation this commit refactors the lint handling infrastructure in the compiler to be more "eager" and overall more incremental-friendly. Many passes of the compiler can emit lints at various points but before this commit all lints were buffered in a table to be emitted at the very end of compilation. This commit changes these lints to be emitted immediately during compilation using pre-calculated lint level-related data structures. Linting today is split into two phases, one set of "early" lints run on the `syntax::ast` and a "late" set of lints run on the HIR. This commit moves the "early" lints to running as late as possible in compilation, just before HIR lowering. This notably means that we're catching resolve-related lints just before HIR lowering. The early linting remains a pass very similar to how it was before, maintaining context of the current lint level as it walks the tree. Post-HIR, however, linting is structured as a method on the `TyCtxt` which transitively executes a query to calculate lint levels. Each request to lint on a `TyCtxt` will query the entire crate's 'lint level data structure' and then go from there about whether the lint should be emitted or not. The query depends on the entire HIR crate but should be very quick to calculate (just a quick walk of the HIR) and the red-green system should notice that the lint level data structure rarely changes, and should hopefully preserve incrementality. Overall this resulted in a pretty big change to the test suite now that lints are emitted much earlier in compilation (on-demand vs only at the end). This in turn necessitated the addition of many `#![allow(warnings)]` directives throughout the compile-fail test suite and a number of updates to the UI test suite. Closes https://github.com/rust-lang/rust/issues/42511
2017-08-10Auto merge of #43582 - ivanbakel:unused_mut_ref, r=arielb1bors-0/+0
Fixed mutable vars being marked used when they weren't #### NB : bootstrapping is slow on my machine, even with `keep-stage` - fixes for occurances in the current codebase are <s>in the pipeline</s> done. This PR is being put up for review of the fix of the issue. Fixes #43526, Fixes #30280, Fixes #25049 ### Issue Whenever the compiler detected a mutable deref being used mutably, it marked an associated value as being used mutably as well. In the case of derefencing local variables which were mutable references, this incorrectly marked the reference itself being used mutably, instead of its contents - with the consequence of making the following code emit no warnings ``` fn do_thing<T>(mut arg : &mut T) { ... // don't touch arg - just deref it to access the T } ``` ### Fix Make dereferences not be counted as a mutable use, but only when they're on borrows on local variables. #### Why not on things other than local variables? * Whenever you capture a variable in a closure, it gets turned into a hidden reference - when you use it in the closure, it gets dereferenced. If the closure uses the variable mutably, that is actually a mutable use of the thing being dereffed to, so it has to be counted. * If you deref a mutable `Box` to access the contents mutably, you are using the `Box` mutably - so it has to be counted.
2017-08-10Updated cargo submodule to fix compile errorIsaac van Bakel-0/+0
2017-08-09rustc: Rearchitect lints to be emitted more eagerlyAlex Crichton-3/+15
In preparation for incremental compilation this commit refactors the lint handling infrastructure in the compiler to be more "eager" and overall more incremental-friendly. Many passes of the compiler can emit lints at various points but before this commit all lints were buffered in a table to be emitted at the very end of compilation. This commit changes these lints to be emitted immediately during compilation using pre-calculated lint level-related data structures. Linting today is split into two phases, one set of "early" lints run on the `syntax::ast` and a "late" set of lints run on the HIR. This commit moves the "early" lints to running as late as possible in compilation, just before HIR lowering. This notably means that we're catching resolve-related lints just before HIR lowering. The early linting remains a pass very similar to how it was before, maintaining context of the current lint level as it walks the tree. Post-HIR, however, linting is structured as a method on the `TyCtxt` which transitively executes a query to calculate lint levels. Each request to lint on a `TyCtxt` will query the entire crate's 'lint level data structure' and then go from there about whether the lint should be emitted or not. The query depends on the entire HIR crate but should be very quick to calculate (just a quick walk of the HIR) and the red-green system should notice that the lint level data structure rarely changes, and should hopefully preserve incrementality. Overall this resulted in a pretty big change to the test suite now that lints are emitted much earlier in compilation (on-demand vs only at the end). This in turn necessitated the addition of many `#![allow(warnings)]` directives throughout the compile-fail test suite and a number of updates to the UI test suite.
2017-08-07update rlsNick Cameron-0/+0
2017-08-04Only allow long relative urls after a link labelRuud van Asseldonk-1/+1
Yellow is indeed a nice color for a bikeshed.
2017-08-03Detect relative urls in tidy checkRuud van Asseldonk-2/+2
2017-08-02Update RLSNick Cameron-0/+0
2017-07-29Auto merge of #43009 - GuillaumeGomez:unused-doc-comments, r=nrcbors-0/+0
Throw errors when doc comments are added where they're unused #42617
2017-07-29Update rls submoduleGuillaume Gomez-0/+0
2017-07-29Update cargo versionGuillaume Gomez-0/+0
2017-07-27Don't needlessly build rustdoc for compiletest.Mark Simulacrum-6/+8
For most tests, rustdoc isn't needed, so avoid building it.
2017-07-27Build rustdoc on-demand.Mark Simulacrum-0/+27
Rustdoc is no longer compiled in every stage, alongside rustc, instead it is only compiled when requested, and generally only for the last stage.
2017-07-26Auto merge of #42059 - derekdreery:bugfix/fix_emscripten_tests, r=alexcrichtonbors-11/+57
Make compiletest set cwd before running js tests Proposed fix for #38800. Not all tests pass yet - I will mention failures here once the test suite has finished.
2017-07-26Auto merge of #43485 - nrc:rls-env-fix, r=Mark-Simulacrumbors-0/+0
Update RLS This pulls in https://github.com/rust-lang-nursery/rls/commit/79d659e5699fbf7db5b4819e9a442fb3f550472a It should fix #43453. It increases the timeout for test runs and forces builds in RLS tests to happen sequentially, this prevents interference between env vars passed to Cargo or rustc. r? @Mark-Simulacrum
2017-07-26Update RLSNick Cameron-0/+0
2017-07-26Auto merge of #43226 - alexcrichton:aarch64-ci, r=aidanhsbors-12/+35
Add a disabled builder for aarch64 emulated tests This commit adds a disabled builder which will run all tests for the standard library for aarch64 in a QEMU instance. Once we get enough capacity to run this on Travis this can be used to boost our platform coverage of AArch64
2017-07-25Bump master to 1.21.0Alex Crichton-0/+0
This commit bumps the master branch's version to 1.21.0 and also updates the bootstrap compiler from the freshly minted beta release.
2017-07-24Add a disabled builder for aarch64 emulated testsAlex Crichton-12/+35
This commit adds a disabled builder which will run all tests for the standard library for aarch64 in a QEMU instance. Once we get enough capacity to run this on Travis this can be used to boost our platform coverage of AArch64
2017-07-24Rollup merge of #43342 - ranweiler:no-std-exe-docs, r=alexcrichtonMark Simulacrum-0/+12
Document use of `compiler_builtins` with `no_std` binaries See discussion in #43264. The docs for the `compiler_builtins_lib` feature were removed in PR #42899. But, though the `compiler_builtins` library has been migrated out-of-tree, the language feature remains, and is needed to use the stand-alone crate. So, we reintroduce the docs for the feature, and add a reference to them when describing how to create a `no_std` executable.
2017-07-24Auto merge of #43327 - nrc:rls-config, r=eddybbors-0/+0
Use a config struct for save-analysis Replaces some existing customisation options, including removing the -Zsave-analysis-api flag r? @eddyb
2017-07-24Point RLS submodule at a branch with required changesNick Cameron-0/+0
And cargo update
2017-07-22Auto merge of #43059 - Mark-Simulacrum:rustbuild-2.0, r=alexcrichtonbors-23/+16
Rework Rustbuild to an eagerly compiling approach This introduces a new dependency on `serde`; I don't believe that's a problem since bootstrap is compiled with nightly/beta always so proc macros are available. Compile times are slightly longer -- about 2-3x (30 seconds vs. 10 seconds). I don't think this is too big a problem, especially since recompiling bootstrap is somewhat rare. I think we can remove the dependency on Serde if necessary, though, so let me know. r? @alexcrichton
2017-07-21Update Cargo to ffab51954ec32d55631c37a8730bb24915fc090bSimon Sapin-0/+1
https://github.com/rust-lang/cargo/pull/4123 added the [patch] section of the manifest