about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2018-08-02Update Cargo submoduleAlex Crichton-33/+99
Bring in some fixes for `cargo fix` notably
2018-08-01[RISCV] Enable CI.David Craven-0/+1
2018-08-01Auto merge of #52937 - pietroalbini:rollup, r=pietroalbinibors-9/+30
Rollup of 30 pull requests Successful merges: - #52340 (Document From trait implementations for OsStr, OsString, CString, and CStr) - #52628 (Cleanup some rustdoc code) - #52732 (Remove unstable and deprecated APIs) - #52745 (Update clippy to latest master) - #52771 (Clarify thread::park semantics) - #52778 (Improve readability of serialize.rs) - #52810 ([NLL] Don't make "fake" match variables mutable) - #52821 (pretty print for std::collections::vecdeque) - #52822 (Fix From<LocalWaker>) - #52824 (Fix -Wpessimizing-move warnings in rustllvm/PassWrapper) - #52825 (Make sure #47772 does not regress) - #52831 (remove references to AUTHORS.txt file) - #52842 (update comment) - #52846 (Add timeout to use of `curl` in bootstrap.py.) - #52851 (Make the tool_lints actually usable) - #52853 (Improve bootstrap help on stages) - #52859 (Use Vec::extend in SmallVec::extend when applicable) - #52861 (Add targets for HermitCore (https://hermitcore.org) to the Rust compiler and port libstd to it.) - #52867 (releases.md: fix 2 typos) - #52870 (Implement Unpin for FutureObj and LocalFutureObj) - #52876 (run-pass/const-endianness: negate before to_le()) - #52878 (Fix wrong issue number in the test name) - #52883 (Include lifetime in mutability suggestion in NLL messages) - #52888 (Use suggestions for shell format arguments) - #52904 (NLL: sort diagnostics by span) - #52905 (Fix a typo in unsize.rs) - #52907 (NLL: On "cannot move out of type" error, print original before rewrite) - #52914 (Only run the sparc-abi test on sparc) - #52918 (Backport 1.27.2 release notes) - #52929 (Update compatibility note for 1.28.0 to be correct) Failed merges: r? @ghost
2018-08-01Rollup merge of #52861 - ColinFinck:master, r=alexcrichtonPietro Albini-0/+2
Add targets for HermitCore (https://hermitcore.org) to the Rust compiler and port libstd to it. As a start, the port uses the simplest possible configuration (no jemalloc, abort on panic) and makes use of existing Unix-specific code wherever possible. It adds targets for x86_64 (current main HermitCore platform) and aarch64 (HermitCore platform under development). Together with the patches to "liblibc" (https://github.com/rust-lang/libc/pull/1048) and llvm (https://github.com/rust-lang/llvm/pull/122), this enables HermitCore applications to be written in Rust.
2018-08-01Rollup merge of #52745 - commandline:master, r=oli-obkPietro Albini-5/+19
Update clippy to latest master r? @oli-obk There is a regression in the version in current nightly that falsely lints `println!` and `writeln!` that use named arguments, thinking all rhs values for the argument expressions are literals even when they are not. This update includes the fix for that.
2018-07-31Remove global derive_id and reset_ids functionsMark Rousskov-4/+9
Previously these functions relied on TLS but we can instead thread the relevant state through explicitly.
2018-07-31Further extract error code switchMark Rousskov-2/+2
Removes dependency on UnstableFeatures from markdown rendering
2018-07-30rustc: Disallow machine applicability in foreign macrosAlex Crichton-2/+17
Recent changes to lints disallowed lints from being emitted against code located in foreign macros, except for future-incompatible lints. For a future incompatible lint, however, the automatic suggestions may not be applicable! This commit updates this code path to force all applicability suggestions made to foreign macros to never be `MachineApplicable`. This should avoid rustfix actually attempting fixing these suggestions, causing non-compiling code to be produced. Closes rust-lang/cargo#5799
2018-07-30Add targets for HermitCore (https://hermitcore.org) to the Rust compiler and ↵Colin Finck-0/+2
port libstd to it. As a start, the port uses the simplest possible configuration (no jemalloc, abort on panic) and makes use of existing Unix-specific code wherever possible. It adds targets for x86_64 (current main HermitCore platform) and aarch64 (HermitCore platform under development). Together with the patches to "liblibc" and "llvm", this enables HermitCore applications to be written in Rust.
2018-07-29Update miri submoduleOliver Schneider-0/+6
2018-07-29Sanity-check all constantsOliver Schneider-20/+0
2018-07-29Update RLS and rustfmt.kennytm-5/+19
2018-07-29Exempt cloudabi from license check.kennytm-0/+1
2018-07-28Update the Cargo submodule and rustfixAlex Crichton-3/+8
Should hopefully bring in a few more `cargo fix`-related fixes.
2018-07-28Rollup merge of #52763 - petrhosek:fuchsia-triple, r=alexcrichtonkennytm-2/+2
Omit the vendor component in Fuchsia triple Previously, using unknown as the vendor value would lead to the same result, but with the multiarch runtimes support in Clang, the target is now used to locate the runtime libraries and so the format is important. The denormalized format with omitted vendor component is the format we use with Clang and should be using for Rust as well.
2018-07-27Auto merge of #52336 - ishitatsuyuki:dyn-rollup, r=Mark-Simulacrumbors-29/+29
Rollup of bare_trait_objects PRs All deny attributes were moved into bootstrap so they can be disabled with a line of config. Warnings for external tools are allowed and it's up to the tool's maintainer to keep it warnings free. r? @Mark-Simulacrum cc @ljedrz @kennytm
2018-07-26Omit the vendor component in Fuchsia triplePetr Hosek-2/+2
Previously, using unknown as the vendor value would lead to the same result, but with the multiarch runtimes support in Clang, the target is now used to locate the runtime libraries and so the format is important. The denormalized format with omitted vendor component is the format we use with Clang and should be using for Rust as well.
2018-07-26Update clippy to latest masterThomas Gideon-5/+19
2018-07-26compiletest: Add support for ignoring certain tests under `--compare-mode=...`Felix S. Klock II-2/+7
2018-07-25Add missing dynTatsuyuki Ishi-4/+4
2018-07-25Add missing dynTatsuyuki Ishi-25/+25
2018-07-24Auto merge of #52181 - QuietMisdreavus:panicked-tester, r=GuillaumeGomezbors-5/+7
rustdoc: set panic output before starting compiler thread pool When the compiler was updated to run on a thread pool, rustdoc's processing of compiler/doctest stderr/stdout was moved into each compiler thread. However, this caused output of the test to be lost if the test failed at *runtime* instead of compile time. This change sets up the `set_panic` call and output bomb before starting the compiler thread pool, so that the `Drop` call that writes back to the test's stdout happens after the test runs, not just after it compiles. Fixes https://github.com/rust-lang/rust/issues/51162
2018-07-24Auto merge of #52646 - ljedrz:single_char_pattern, r=michaelwoeristerbors-3/+3
Change single char str patterns to chars A `char` is faster.
2018-07-23Auto merge of #52175 - fpoli:testsuite-callsite-span, r=petrochenkovbors-6/+32
Match errors using the callsite of macro expansions Fix for issue #51848
2018-07-23Change single char str patterns to charsljedrz-3/+3
2018-07-23Match errors using the callsite of macro expansionsFederico Poli-6/+32
2018-07-23Update the clippy submoduleOliver Schneider-5/+5
2018-07-21Don't invent new magic keywordsOliver Schneider-5/+5
2018-07-20Clippy opts out of in_external_macroOliver Schneider-6/+5
2018-07-20Update clippyManish Goregaokar-5/+6
2018-07-20compiletest: don't overwrite failure-status if it was previously setQuietMisdreavus-5/+7
2018-07-19Auto merge of #52197 - euclio:exit-code, r=oli-obkbors-9/+11
overhaul exit codes for rustc and rustdoc This commit changes the exit status of rustc to 1 in the presence of compilation errors. In the event of an unexpected panic (ICE) the standard panic error exit status of 101 remains. A run-make test is added to ensure that the exit code does not regress, and compiletest is updated to check for an exit status of 1 or 101, depending on the mode and suite. This is a breaking change for custom drivers. Note that while changes were made to the rustdoc binary, there is no intended behavior change. rustdoc errors (i.e., failed lints) will still report 101. While this could *also* hide potential ICEs, I will leave that work to a future PR. Fixes #51971.
2018-07-19Auto merge of #52515 - Manishearth:clippyup, r=kennytmbors-8/+5
Update clippy Silences the warnings for now, will fix those over time.
2018-07-18Update clippyManish Goregaokar-8/+5
2018-07-18Update Cargo submoduleAlex Crichton-0/+0
2018-07-18rustc: distinguish compilation failure from ICEAndy Russell-9/+11
This commit changes the exit status of rustc to 1 in the presence of compilation errors. In the event of an unexpected panic (ICE) the standard panic error exit status of 101 remains. A run-make test is added to ensure that the exit code does not regress, and compiletest is updated to check for an exit status of 1 or 101, depending on the mode and suite. This is a breaking change for custom drivers. Fixes #51971.
2018-07-17update miriRalf Jung-14/+14
2018-07-17update miri (Windows tests fixed)Ralf Jung-14/+14
2018-07-17update miriRalf Jung-5/+19
2018-07-16Update clippyManish Goregaokar-5/+8
Fixes test failures caused by https://github.com/rust-lang/rust/pull/52081
2018-07-16Update the clippy submoduleOliver Schneider-5/+5
2018-07-16Revert "Adapt codegen-unit tests to new CGU naming scheme."Michael Woerister-28/+5
This reverts commit 94b32adb71a75a3f5b53a39c52c62c2ce1a7cc56.
2018-07-15tidy: add a new test for external dependenciesSébastien Marie-0/+52
ensure all packages in Cargo.lock will be vendored, and fail if the source packages isn't whitelisted.
2018-07-15Update clippy and rlsOliver Schneider-19/+5
2018-07-13Auto merge of #52266 - michaelwoerister:incr-thinlto-preliminaries, ↵bors-5/+28
r=alexcrichton Preliminary work for incremental ThinLTO. Since implementing incremental ThinLTO is a bit more involved than I initially thought, I'm splitting out some of the things that already work. This PR (1) adds a way accessing some ThinLTO information in `rustc` and (2) does some cleanup around CGU/object file naming (which makes things quite a bit nicer). This is probably best reviewed one commit at a time.
2018-07-14Rollup merge of #52280 - japaric:llvm-tools-preview, r=kennytmkennytm-1/+1
llvm-tools-preview: fix build-manifest r? @alexcrichton
2018-07-12Auto merge of #52256 - tinco:issue_52255, r=sanxiynbors-4/+3
make pretty source comparison check be fatal (fixes #52255) This is not ready for merging because it reveals (at least) two regressions in the pretty suite. Should I attempt to fix those in this PR also?
2018-07-12Adapt codegen-unit tests to new CGU naming scheme.Michael Woerister-5/+28
2018-07-11llvm-tools-preview: fix build-manifestJorge Aparicio-1/+1
2018-07-11make pretty source comparison check be fatal (fixes #52255)Tinco Andringa-4/+3