about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2018-09-12Really make CGU names unique across crates.Michael Woerister-13/+21
2018-09-10Update Cargo submoduleAlex Crichton-0/+0
Bring in a few last-minute updates before the 1.30.0 release
2018-09-10refactor so that it's no longer possible to call print_source incorrectlyTinco Andringa-11/+14
2018-09-10dont pass in src if we are not reading from stdin in compiletestTinco Andringa-1/+6
2018-09-10Update `compiletest` so that the pretty tests only read from stdin when they ↵Felix S. Klock II-4/+16
*have* to. This allows us to test expansion of files that use `mod foo;` syntax.
2018-09-10rustc_resolve: inject `uniform_paths` canaries regardless of the ↵Eduard-Mihai Burtescu-0/+0
feature-gate, on Rust 2018.
2018-09-09submodules: update clippy, rls with crate visibility patches, also update cargoMatthias Krüger-14/+14
2018-09-07Rollup merge of #54023 - matthiaskrgr:clippy, r=oli-obkkennytm-14/+14
update clippy submodule updates to cafef7b576203f166add9ed143979d9775c25219
2018-09-07Rollup merge of #53895 - joshtriplett:tidy-tidy, r=nikomatsakiskennytm-57/+44
tidy: Cleanups and clippy warning fixes This eliminates various clippy warnings in the tidy tool, as well as making some related cleanups. These changes should not introduce any functional differences.
2018-09-07update clippy submoduleMatthias Krüger-14/+14
updates to cafef7b576203f166add9ed143979d9775c25219
2018-09-05Auto merge of #53951 - tromey:restore-lldb-build, r=alexcrichtonbors-0/+0
Restore lldb build commit 6c10142251 ("Update LLVM submodule") disabled the lldb build. This patch updates the lldb and clang submodules to once again build against the LLVM that is included in the Rust tree, and reverts the .travis.yml changes from that patch.
2018-09-05Pick up State.h include path changeTom Tromey-0/+0
2018-09-04Breaking change upgradesMark Rousskov-2/+4
2018-09-04Restore lldb buildTom Tromey-0/+0
commit 6c10142251 ("Update LLVM submodule") disabled the lldb build. This patch updates the lldb and clang submodules to once again build against the LLVM that is included in the Rust tree, and reverts the .travis.yml changes from that patch.
2018-09-04Update RLS wrt recent Clippy changesIgor Matuszewski-0/+0
2018-09-04Update Rustfmt to 0.99.4Igor Matuszewski-5/+5
This pulls the same version of rustc-ap-* libs as RLS does.
2018-09-04Update RLSIgor Matuszewski-0/+0
2018-09-03Auto merge of #53673 - michaelwoerister:incr-thinlto-2000, r=alexcrichtonbors-0/+1
Enable ThinLTO with incremental compilation. This is an updated version of #52309. This PR allows `rustc` to use (local) ThinLTO and incremental compilation at the same time. In theory this should allow for getting compile-time improvements for small changes while keeping the runtime performance of the generated code roughly the same as when compiling non-incrementally. The difference to #52309 is that this version also caches the pre-LTO version of LLVM bitcode. This allows for another layer of caching: 1. if the module itself has changed, we have to re-codegen and re-optimize. 2. if the module itself has not changed, but a module it imported from during ThinLTO has, we don't need to re-codegen and don't need to re-run the first optimization phase. Only the second (i.e. ThinLTO-) optimization phase is re-run. 3. if neither the module itself nor any of its imports have changed then we can re-use the final, post-ThinLTO version of the module. (We might have to load its pre-ThinLTO version though so it's available for other modules to import from)
2018-09-03Add memmap crate to tidy whitelist.Michael Woerister-0/+1
2018-09-02Update clippyManish Goregaokar-5/+19
2018-09-01tidy: features.rs: Remove a redundant .containsJosh Triplett-4/+0
The match expression immediately below it checks the same condition.
2018-09-01tidy: features.rs: Use splitn rather than a complex sliceJosh Triplett-1/+1
2018-09-01tidy: features.rs: collect_lib_features: SimplifyJosh Triplett-8/+5
Use `if let` to simplify a match, and use `contains_key` instead of `get`.
2018-09-01tidy: Use an inclusive range rather than a +1 boundJosh Triplett-1/+1
This improves readability and eliminates a clippy warning.
2018-09-01tidy: Eliminate an unnecessary .into_iter()Josh Triplett-1/+1
2018-09-01tidy: deps: Hoist a complex multi-line if condition into a letJosh Triplett-2/+3
This makes the code more readable, and eliminates a clippy warning.
2018-09-01tidy: unstable_book.rs: Clean up directory iterationJosh Triplett-4/+3
Drop unnecessary .into_iter() (also fixing a clippy warning), and use path functions to handle file extensions.
2018-09-01tidy: Avoid "let ref mut = ..."Josh Triplett-6/+6
This also eliminates a clippy warning.
2018-09-01tidy: Use "const" instead of "static, and remove implied `'static` lifetimesJosh Triplett-6/+6
Dropping the redundant lifetimes also eliminates a clippy warning.
2018-09-01tidy: extdeps.rs: Avoid an unnecessary collect()Josh Triplett-2/+1
2018-09-01tidy: extdeps.rs: Clean up loop iteration to use "for"Josh Triplett-2/+1
Also eliminates a clippy lint.
2018-09-01tidy: cargo.rs: Clean up loop to use "for" instead of "while let"Josh Triplett-2/+1
Eliminates a clippy warning. Also drop the unnecessary `.peekable()`.
2018-09-01tidy: Clean up argument handlingJosh Triplett-5/+2
Use `.nth(n)` rather than `.skip(n).next()` (also fixes a clippy warning), and use `.into()` and a type signature rather than `PathBuf::from`.
2018-09-01tidy: Use is_empty() instead of len testsJosh Triplett-2/+2
Fixes a clippy warning, and improves readability.
2018-09-01tidy: Use chars for single-character patternsJosh Triplett-12/+12
Fixes the clippy "single_char_pattern" lint, and (marginally) improves performance.
2018-09-01Auto merge of #53822 - dvc94ch:riscv, r=japaricbors-0/+1
[RISCV] Use lld as the default linker; Enable C extension; Add riscv32imc-unknown-none-elf target The riscv32imc-unknown-none-elf target is intended for soft cores. The riscv32imc target is supported by the following popular soft cores: picorv32: https://github.com/cliffordwolf/picorv32 vexriscv: https://github.com/SpinalHDL/VexRiscv pulp riscy: https://github.com/pulp-platform/riscv pulp zero-riscy: https://github.com/pulp-platform/zero-riscy
2018-09-01Auto merge of #53762 - flip1995:tool_lints, r=Manishearthbors-5/+5
Backwards compatibility for tool/clippy lints cc #44690 cc https://github.com/rust-lang-nursery/rust-clippy/pull/2977#issuecomment-409706557 This is the next step towards `tool_lints`. This makes Clippy lints still work without scoping, but will warn and suggest the new scoped name. This warning will only appear if the code is checked with Clippy itself. There is still an issue with using the old lint name in inner attributes. For inner attributes the warning gets emitted twice. I'm currently not really sure why this happens, but will try to fix this ASAP. r? @Manishearth
2018-09-01Auto merge of #53611 - alexcrichton:update-llvm, r=nikomatsakisbors-0/+0
Update LLVM submodule This commit updates the LLVM submodule to the current trunk of LLVM itself. This brings a few notable improvements for the wasm target: * Support for wasm atomic instructions is greatly improved * Renamed memory wasm intrinsics are fully supported * LLD has fixed a quadratic execution bug with large numbers of relocations in wasm files. The compiler-rt submodule has been updated in tandem as well.
2018-08-31Update LLVM submoduleAlex Crichton-0/+0
This commit updates the LLVM submodule to the current trunk of LLVM itself. This brings a few notable improvements for the wasm target: * Support for wasm atomic instructions is greatly improved * Renamed memory wasm intrinsics are fully supported * LLD has fixed a quadratic execution bug with large numbers of relocations in wasm files. The compiler-rt submodule has been updated in tandem as well.
2018-08-31Add deprecated_name argument to the register lint group functionsflip1995-5/+5
2018-08-30[RISCV] Add riscv32imc-unknown-none-elf target.David Craven-0/+1
2018-08-30build-manifest: package docs only for tier 1 platformsPietro Albini-1/+12
2018-08-29build-manifest: include extensions marked as unavailablePietro Albini-5/+1
2018-08-29build-manifest: add instructions to test the tool locallyPietro Albini-1/+55
2018-08-29Add more features to the workspace so that all tools pick up on itOliver Schneider-0/+3
2018-08-29Update clippy submoduleOliver Schneider-19/+5
2018-08-28Auto merge of #53679 - japaric:cortex-r, r=alexcrichtonbors-0/+3
add more Cortex-R targets This expands on PR #53663 to complete the set of Cortex-R targets and builds rust-std components for them. r? @alexcrichton each extra rust-std component (there's 4 of them) takes about 3 minutes to build on my local machine. In terms of stability (LLVM codegen bugs) these new targets should be as stable as the Cortex-M ones (e.g. `thumbv7m-none-eabi`). If the extra build time is too much we can leave the rust-std components out for now closes #53663 cc @paoloteti
2018-08-27Auto merge of #53624 - Zoxc:ice-fix, r=oli-obkbors-14/+14
Move with_globals setup from run_compiler to run An alternative to https://github.com/rust-lang/rust/pull/53526 Note this breaks some miri stuff and clippy since they call `run_compiler` directly, and they now need to also call `with_globals ` cc @rust-lang/dev-tools r? @oli-obk
2018-08-27Update clippyJohn Kåre Alsaker-14/+14
2018-08-26Auto merge of #53715 - pietroalbini:missing-components-manifest, r=alexcrichtonbors-66/+46
Include missing tools in the manifest and mark them as unavailable This PR changes the `build-manifest` tool to always include the missing components in the manifest, marking them as `available = false`. This blocks rustup from updating to a different nightly if the component is installed. The code builds and _should_ be correct, but I don't know a way to test the changes locally. r? @alexcrichton cc @kennytm https://github.com/rust-lang-nursery/rustup.rs/issues/1486