summary refs log tree commit diff
path: root/src/tools/tidy
AgeCommit message (Collapse)AuthorLines
2018-03-14Remove syntax and syntax_pos thread localsJohn Kåre Alsaker-0/+1
2018-03-13Rollup merge of #48880 - petrochenkov:badstderr, r=kennytmkennytm-0/+28
tidy: Add a check for stray `.stderr` and `.stdout` files in UI test directories
2018-03-11Update Cargo submoduleAlex Crichton-0/+2
Required moving all fulldeps tests depending on `rand` to different locations as now there's multiple `rand` crates that can't be implicitly linked against.
2018-03-09tidy: Add a check for stray `.stderr` and `.stdout` files in UI test directoriesVadim Petrochenkov-0/+28
2018-03-06Update env_logger to 0.5.4Alex Crichton-0/+17
It looks like this cuts down on the number of dependencies in env_logger and notably cuts out a difference between a shared dependency of rls/cargo. My goal here is to ensure that when we compile the RLS/Cargo on CI we only compile Cargo once, and this is one step towards that!
2018-03-05Add ena to whitelistWho? Me?!-0/+1
2018-03-05Uncomment whitelistWho? Me?!-34/+34
2018-03-05Do check the deps of path depsMark Mansi-32/+44
2018-03-05enable whitelistMark Mansi-23/+23
2018-03-05Don't check in-tree depsMark Mansi-39/+12
2018-03-05different versions may have different depsMark Mansi-66/+84
2018-03-05Add a few missing depsMark Mansi-0/+3
2018-03-05Remove spurious whitespaceMark Mansi-54/+54
2018-03-05uncomment whitelistMark Mansi-55/+55
2018-03-05Fix alexcrichton's commentsMark Mansi-95/+77
2018-03-05Only check the whitelist for some cratesMark Mansi-340/+147
2018-03-05Get the path to cargo from rustbuildMark Mansi-7/+9
2018-03-05Trying to get paths right...Mark Mansi-1/+310
2018-03-05MAKE IT FAILgit statusgit statusMark Mansi-20/+53
2018-03-05CommentsMark Mansi-1/+2
2018-03-05Start adding a whitelist for rustc dependenciesMark Mansi-9/+77
2018-03-05Run rustfmt on tidy/src/deps.rsMark Mansi-14/+15
2018-03-03rust: Import LLD for linking wasm objectsAlex Crichton-1/+1
This commit imports the LLD project from LLVM to serve as the default linker for the `wasm32-unknown-unknown` target. The `binaryen` submoule is consequently removed along with "binaryen linker" support in rustc. Moving to LLD brings with it a number of benefits for wasm code: * LLD is itself an actual linker, so there's no need to compile all wasm code with LTO any more. As a result builds should be *much* speedier as LTO is no longer forcibly enabled for all builds of the wasm target. * LLD is quickly becoming an "official solution" for linking wasm code together. This, I believe at least, is intended to be the main supported linker for native code and wasm moving forward. Picking up support early on should help ensure that we can help LLD identify bugs and otherwise prove that it works great for all our use cases! * Improvements to the wasm toolchain are currently primarily focused around LLVM and LLD (from what I can tell at least), so it's in general much better to be on this bandwagon for bugfixes and new features. * Historical "hacks" like `wasm-gc` will soon no longer be necessary, LLD will [natively implement][gc] `--gc-sections` (better than `wasm-gc`!) which means a postprocessor is no longer needed to show off Rust's "small wasm binary size". LLD is added in a pretty standard way to rustc right now. A new rustbuild target was defined for building LLD, and this is executed when a compiler's sysroot is being assembled. LLD is compiled against the LLVM that we've got in tree, which means we're currently on the `release_60` branch, but this may get upgraded in the near future! LLD is placed into rustc's sysroot in a `bin` directory. This is similar to where `gcc.exe` can be found on Windows. This directory is automatically added to `PATH` whenever rustc executes the linker, allowing us to define a `WasmLd` linker which implements the interface that `wasm-ld`, LLD's frontend, expects. Like Emscripten the LLD target is currently only enabled for Tier 1 platforms, notably OSX/Windows/Linux, and will need to be installed manually for compiling to wasm on other platforms. LLD is by default turned off in rustbuild, and requires a `config.toml` option to be enabled to turn it on. Finally the unstable `#![wasm_import_memory]` attribute was also removed as LLD has a native option for controlling this. [gc]: https://reviews.llvm.org/D42511
2018-03-02std: Add `arch` and `simd` modulesAlex Crichton-0/+1
This commit imports the `stdsimd` crate into the standard library, creating an `arch` and `simd` module inside of both libcore and libstd. Both of these modules are **unstable** and will continue to be so until RFC 2335 is stabilized. As a brief recap, the modules are organized as so: * `arch` contains all current architectures with intrinsics, for example `std::arch::x86`, `std::arch::x86_64`, `std::arch::arm`, etc. These modules contain all of the intrinsics defined for the platform, like `_mm_set1_epi8`. * In the standard library, the `arch` module also exports a `is_target_feature_detected` macro which performs runtime detection to determine whether a target feature is available at runtime. * The `simd` module contains experimental versions of strongly-typed lane-aware SIMD primitives, to be fully fleshed out in a future RFC. The main purpose of this commit is to start pulling in all these intrinsics and such into the standard library on nightly and allow testing and such. This'll help allow users to easily kick the tires and see if intrinsics work as well as allow us to test out all the infrastructure for moving the intrinsics into the standard library.
2018-02-14Exclude clippy lints from tidy license checkMark Simulacrum-0/+1
2018-02-04add exceptions for new depssteveklabnik-0/+2
2018-01-28rustc: Split Emscripten to a separate codegen backendAlex Crichton-0/+1
This commit introduces a separately compiled backend for Emscripten, avoiding compiling the `JSBackend` target in the main LLVM codegen backend. This builds on the foundation provided by #47671 to create a new codegen backend dedicated solely to Emscripten, removing the `JSBackend` of the main codegen backend in the process. A new field was added to each target for this commit which specifies the backend to use for translation, the default being `llvm` which is the main backend that we use. The Emscripten targets specify an `emscripten` backend instead of the main `llvm` one. There's a whole bunch of consequences of this change, but I'll try to enumerate them here: * A *second* LLVM submodule was added in this commit. The main LLVM submodule will soon start to drift from the Emscripten submodule, but currently they're both at the same revision. * Logic was added to rustbuild to *not* build the Emscripten backend by default. This is gated behind a `--enable-emscripten` flag to the configure script. By default users should neither check out the emscripten submodule nor compile it. * The `init_repo.sh` script was updated to fetch the Emscripten submodule from GitHub the same way we do the main LLVM submodule (a tarball fetch). * The Emscripten backend, turned off by default, is still turned on for a number of targets on CI. We'll only be shipping an Emscripten backend with Tier 1 platforms, though. All cross-compiled platforms will not be receiving an Emscripten backend yet. This commit means that when you download the `rustc` package in Rustup for Tier 1 platforms you'll be receiving two trans backends, one for Emscripten and one that's the general LLVM backend. If you never compile for Emscripten you'll never use the Emscripten backend, so we may update this one day to only download the Emscripten backend when you add the Emscripten target. For now though it's just an extra 10MB gzip'd. Closes #46819
2018-01-18add target/ to ignored tidy dirsManish Goregaokar-0/+1
2018-01-15Rollup merge of #47414 - est31:master, r=alexcrichtonkennytm-2/+2
Enforce dashes in the unstable book file names Also rename the existing underscore using files to use dashes. Fixes #47394.
2018-01-13Enforce dashes in the unstable book file namesest31-2/+2
Also rename the existing underscore using files to use dashes. Fixes #47394.
2018-01-11Extend tidy to allow conditionalizing tests for multiple targets.Ed Schouten-2/+2
2018-01-03Rollup merge of #47117 - tinaun:no_more_dups, r=frewsxcvkennytm-1/+3
[unstable book] remove duplicate entries if a unstable feature is a language feature, it shouldn't also have a library feature stub generated
2018-01-01prevent generating duplicate stubstinaun-1/+1
2017-12-30Add a tidy check to ensure all files have 1 or 2 trailing newlines.kennytm-0/+11
2017-12-19Implement non-mod.rs mod statementsTaylor Cramer-1/+2
2017-12-17Add sync module to rustc_data_structuresJohn Kåre Alsaker-0/+1
2017-12-12Move large chunks of miri from rustc::mir::interpret to rustc_mir::interpretOliver Schneider-0/+1
2017-12-11Merge remote-tracking branch 'origin/master' into miriOliver Schneider-4/+6
2017-12-07Tidy: allow feature-gate tests to be ui testsest31-4/+6
ui tests are the future, especially since the recent improvement where we have gained checking and requiring of //~ERROR comments. The tidy feature-gate test check is intended to be 50% an actual insurance that there is a check, and 50% to be a teacher that such checks are required. With this commit applied, newbies might interpret stuff wrongly and create tests that don't fail but succeed instead. This is not what feature gate tests are for though. Therefore, in a later step, when only ui tests are allowed to be feature gate tests, we will add checking to ensure that a file marked as gate test is actually required to be a compilation failure. Right now implementing such a check is a bit annoying as one needs to only do it when the compile-fail test is in the ui test suite :/.
2017-12-06Update miri to rustc changesOliver Schneider-15/+39
2017-11-20[rustllvm] Use report_fatal_error over llvm_unreachableRobin Kruppe-2/+9
This makes it more robust when assertions are disabled, crashing instead of causing UB. Also introduces a tidy check to enforce this rule, which in turn necessitated making tidy run on src/rustllvm. Fixes #44020
2017-11-19std: Add a new wasm32-unknown-unknown targetAlex Crichton-0/+2
This commit adds a new target to the compiler: wasm32-unknown-unknown. This target is a reimagining of what it looks like to generate WebAssembly code from Rust. Instead of using Emscripten which can bring with it a weighty runtime this instead is a target which uses only the LLVM backend for WebAssembly and a "custom linker" for now which will hopefully one day be direct calls to lld. Notable features of this target include: * There is zero runtime footprint. The target assumes nothing exists other than the wasm32 instruction set. * There is zero toolchain footprint beyond adding the target. No custom linker is needed, rustc contains everything. * Very small wasm modules can be generated directly from Rust code using this target. * Most of the standard library is stubbed out to return an error, but anything related to allocation works (aka `HashMap`, `Vec`, etc). * Naturally, any `#[no_std]` crate should be 100% compatible with this new target. This target is currently somewhat janky due to how linking works. The "linking" is currently unconditional whole program LTO (aka LLVM is being used as a linker). Naturally that means compiling programs is pretty slow! Eventually though this target should have a linker. This target is also intended to be quite experimental. I'm hoping that this can act as a catalyst for further experimentation in Rust with WebAssembly. Breaking changes are very likely to land to this target, so it's not recommended to rely on it in any critical capacity yet. We'll let you know when it's "production ready". --- Currently testing-wise this target is looking pretty good but isn't complete. I've got almost the entire `run-pass` test suite working with this target (lots of tests ignored, but many passing as well). The `core` test suite is still getting LLVM bugs fixed to get that working and will take some time. Relatively simple programs all seem to work though! --- It's worth nothing that you may not immediately see the "smallest possible wasm module" for the input you feed to rustc. For various reasons it's very difficult to get rid of the final "bloat" in vanilla rustc (again, a real linker should fix all this). For now what you'll have to do is: cargo install --git https://github.com/alexcrichton/wasm-gc wasm-gc foo.wasm bar.wasm And then `bar.wasm` should be the smallest we can get it! --- In any case for now I'd love feedback on this, particularly on the various integration points if you've got better ideas of how to approach them!
2017-11-06Modify the script to allow for running docker images on Windows 7.kennytm-3/+3
2017-10-31Also support macro generated atomic typesest31-1/+1
This is kind of a hack but it works...
2017-10-31Tidy: track rustc_const_unstable feature gates as wellest31-0/+20
This is important for the unstable book stub generation.
2017-10-27Update license exceptions.kennytm-5/+2
The `zircon` crates have been renamed as `fuchsia-zircon`.
2017-10-13remove duplicate stubstinaun-1/+3
2017-10-10Auto merge of #44822 - frewsxcv:frewsxcv-eprintln, r=Kimundibors-5/+3
Migrate to eprint/eprintln macros where appropriate. None
2017-09-29Adjust imports to librustc::mir::interpretOliver Schneider-0/+1
2017-09-28Migrate to eprint/eprintln macros where appropriate.Corey Farwell-5/+3