summary refs log tree commit diff
path: root/src/tools/tidy
AgeCommit message (Collapse)AuthorLines
2017-09-24TODO --> FIXMEP.Y. Laligand-1/+1
2017-09-24The Magenta kernel is now called Zircon.P.Y. Laligand-0/+3
2017-09-17Get the miri test suite to run inside the rustc dev environmentOliver Schneider-0/+1
2017-09-17Rollup merge of #44533 - nrc:rustfmt-submod, r=alexcrichtonTim Neumann-0/+1
Add Rustfmt r? @alexcrichton
2017-09-13Build and test RustfmtNick Cameron-0/+1
2017-09-12Disable the new Hasher tests on Emscripten.kennytm-0/+1
2017-09-02Auto merge of #43886 - oli-obk:clippy, r=nrcbors-0/+1
Add clippy as a submodule ~~This builds clippy as part of `./x.py build` (locally and in CI).~~ This allows building clippy with `./x.py build src/tools/clippy` ~~Needs https://github.com/nrc/dev-tools-team/issues/18#issuecomment-322456461 to be resolved before it can be merged.~~ Contributers can simply open a PR to clippy and point the submodule at the `pull/$pr_number/head` branch. This does **not** build clippy or test the clippy test suite at all as per https://github.com/nrc/dev-tools-team/issues/18#issuecomment-321411418 r? @nrc cc @Manishearth @llogiq @mcarton @alexcrichton
2017-08-31Bring back stage0 allocator logic on MSVCAlex Crichton-0/+1
I think there may still be bugs preventing its removal..
2017-08-31Update bootstrap compilerAlex Crichton-2/+0
This commit updates the bootstrap compiler and clears out a number of #[cfg(stage0)] annotations and related business
2017-08-30Add license exceptionsGuillaume Gomez-0/+6
2017-08-15Add clippy as a submoduleOliver Schneider-0/+1
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-10Fix cross-crate global allocators on windowsAidan Hobson Sayers-0/+1
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-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-21Update Cargo to ffab51954ec32d55631c37a8730bb24915fc090bSimon Sapin-0/+1
https://github.com/rust-lang/cargo/pull/4123 added the [patch] section of the manifest
2017-07-20Tell `tidy` about `compiler_builtins_lib` featureJoe Ranweiler-0/+12
After the work in #42899, it no longer auto-discovers it.
2017-07-20Auto merge of #43247 - est31:master, r=alexcrichtonbors-16/+41
Tidy: allow common lang+lib features This allows changes to the Rust language that have both library and language components share one feature gate. The feature gates need to be "about the same change", so that both library and language components must either be both unstable, or both stable, and share the tracking issue. Removes the ugly "proc_macro" exception added by #40939. Closes #43089
2017-07-17Remove exception from license check for strings.rsNick Cameron-1/+0
2017-07-15Tidy: allow common lang+lib featuresest31-16/+41
This allows changes to the Rust language that have both library and language components share one feature gate. The feature gates need to be "about the same change", so that both library and language components must either be both unstable, or both stable, and share the tracking issue. Removes the ugly "proc_macro" exception. Closes #43089
2017-07-06Auto merge of #42899 - alexcrichton:compiler-builtins, r=nikomatsakisbors-0/+1
Switch to rust-lang-nursery/compiler-builtins This commit migrates the in-tree `libcompiler_builtins` to the upstream version at https://github.com/rust-lang-nursery/compiler-builtins. The upstream version has a number of intrinsics written in Rust and serves as an in-progress rewrite of compiler-rt into Rust. Additionally it also contains all the existing intrinsics defined in `libcompiler_builtins` for 128-bit integers. It's been the intention since the beginning to make this transition but previously it just lacked the manpower to get done. As this PR likely shows it wasn't a trivial integration! Some highlight changes are: * The PR rust-lang-nursery/compiler-builtins#166 contains a number of fixes across platforms and also some refactorings to make the intrinsics easier to read. The additional testing added there also fixed a number of integration issues when pulling the repository into this tree. * LTO with the compiler-builtins crate was fixed to link in the entire crate after the LTO process as these intrinsics are excluded from LTO. * Treatment of hidden symbols was updated as previously the `#![compiler_builtins]` crate would mark all symbol *imports* as hidden whereas it was only intended to mark *exports* as hidden.
2017-07-05Switch to rust-lang-nursery/compiler-builtinsAlex Crichton-0/+1
This commit migrates the in-tree `libcompiler_builtins` to the upstream version at https://github.com/rust-lang-nursery/compiler-builtins. The upstream version has a number of intrinsics written in Rust and serves as an in-progress rewrite of compiler-rt into Rust. Additionally it also contains all the existing intrinsics defined in `libcompiler_builtins` for 128-bit integers. It's been the intention since the beginning to make this transition but previously it just lacked the manpower to get done. As this PR likely shows it wasn't a trivial integration! Some highlight changes are: * The PR rust-lang-nursery/compiler-builtins#166 contains a number of fixes across platforms and also some refactorings to make the intrinsics easier to read. The additional testing added there also fixed a number of integration issues when pulling the repository into this tree. * LTO with the compiler-builtins crate was fixed to link in the entire crate after the LTO process as these intrinsics are excluded from LTO. * Treatment of hidden symbols was updated as previously the `#![compiler_builtins]` crate would mark all symbol *imports* as hidden whereas it was only intended to mark *exports* as hidden.
2017-06-26Fix a semantic merge conflictAlex Crichton-1/+1
2017-06-26Implement `quote!` and other `proc_macro` API.Jeffrey Seyfried-9/+1
2017-06-23Added a tidy check to disallow "```ignore" and "```rust,ignore".kennytm-0/+15
2017-06-20Remove the in-tree `flate` crateAlex Crichton-3/+0
A long time coming this commit removes the `flate` crate in favor of the `flate2` crate on crates.io. The functionality in `flate2` originally flowered out of `flate` itself and is additionally the namesake for the crate. This will leave a gap in the naming (there's not `flate` crate), which will likely cause a particle collapse of some form somewhere.
2017-06-18Sort entries of SUMMARY.md alphabeticallyest31-5/+5
2017-06-16Introduce tidy lint to check for inconsistent tracking issuesest31-29/+66
This commit * Refactors the collect_lib_features function to work in a non-checking mode (no bad pointer needed, and list of lang features). * Introduces checking whether unstable/stable tags for a given feature have inconsistent tracking issues. * Fixes such inconsistencies throughout the codebase.
2017-06-14Don't require that stubs exist for features in the unstable bookest31-17/+16
Also, remove stubs.
2017-06-14Autogenerate stubs and the summary of the unstable bookest31-40/+72
2017-06-14Librarify tidyest31-72/+96
Convert tidy into a library so that the data it creates can be used by external tools.
2017-06-07Make rustdoc.js use license comments.Clar Charr-1/+3
2017-06-02ci: Further tone down the test verbosity.kennytm-2/+7
When `--quiet` is passed to rustbuild, suppress rustdoc test output unless failure. Added a `--quiet` flag to `tidy`, which suppresses the features table. The actual `--quiet` flag is enabled in #42354. Since details of failed tests will still be printed, and the name of slow tests taking >60 to runtime will also be printed, the debugging difficulty caused by information loss should be minimal; but it is very worthwhile to keep the log under 10000 lines on Travis CI so that common errors can be spotted without reading the raw log.
2017-05-23Remove some needless // gate-test- commentsest31-13/+16
Also, add detection to treat such comments as tidy errors. We also remove the found_lib_feature code because it was just repeating the found_feature code. Originally it was intended to allow for gate-test lines for lib features, but apparently nobody missed it.
2017-05-17Reset submodule management to what master doesAlex Crichton-1/+1
Basically just translate what's done on master in Rust to Python here.
2017-05-18Whitelist strings crate for licenseTatsuyuki Ishi-0/+1
As we can't wait for the maintainer.
2017-05-14Update to the oxidized rust-installerJosh Stone-1/+1
2017-05-12Rollup merge of #41935 - iKevinY:detect-empty-files, r=Mark-SimulacrumMark Simulacrum-0/+5
Add tidy check to detect empty files Addresses #18439.
2017-05-12Add tidy check to detect empty filesKevin Yap-0/+5
Addresses #18439.
2017-05-11Annotate the license exceptionsBrian Anderson-5/+8
2017-05-02Remove jquery dependencyGuillaume Gomez-1/+1
2017-04-29Update stage0 bootstrap compilerAlex Crichton-0/+2
We've got a freshly minted beta compiler, let's update to use that on nightly! This has a few other changes associated with it as well * A bump to the rustc version number (to 1.19.0) * Movement of the `cargo` and `rls` submodules to their "proper" location in `src/tools/{cargo,rls}`. Now that Cargo workspaces support the `exclude` option this can work. * Updates of the `cargo` and `rls` submodules to their master branches. * Tweak to the `src/stage0.txt` format to be more amenable for Cargo version numbers. On the beta channel Cargo will bootstrap from a different version than rustc (e.g. the version numbers are different), so we need different configuration for this. * Addition of `dev` as a readable key in the `src/stage0.txt` format. If present then stage0 compilers are downloaded from `dev-static.rust-lang.org` instead of `static.rust-lang.org`. This is added to accomodate our updated release process with Travis and AppVeyor.
2017-04-18Add top level sections to the Unstable Book.Corey Farwell-69/+71
Prior to this commit, the contents of the Unstable Book were assumed to be unstable features. This commit moves features into 'language features' or 'library features' subsections. It also moves the 'linker_flavor' compiler flag into a new 'Compiler Flags' subsection. Even though it was helpful, I removed the tidy check that cross-references the SUMMARY.md links with the Unstable Book directory contents just because it would be difficult to maintain. Relevant PR: https://github.com/rust-lang/rust/issues/41142.
2017-04-17Remove hoedown from tidy checkGuillaume Gomez-0/+1
2017-04-12COPYRIGHT: remove hoedown licenseNODA, Kai-2/+0
Hoedown was removed in b96fef8411f Also cleanup src/tools/tidy/src/main.rs Signed-off-by: NODA, Kai <nodakai@gmail.com>
2017-04-09Auto merge of #40653 - frewsxcv:tidy-handling, r=alexcrichtonbors-39/+39
A couple minor improvements for tidy error handling. None
2017-04-09Print tidy errors to stderr, prefix with 'tidy error: ', handle 'bad' state.Corey Farwell-37/+34
2017-04-03Move libXtest into libX/testsStjepan Glavina-1/+1
This change moves: 1. `libcoretest` into `libcore/tests` 2. `libcollectionstest` into `libcollections/tests` This is a follow-up to #39561.
2017-04-02Auto merge of #40919 - GuillaumeGomez:fix-new-rustdoc, r=frewsxcv,steveklabnikbors-1/+2
Add support for image, rules and footnotes Part of #40912. r? @rust-lang/docs PS: the footnotes are waiting for https://github.com/google/pulldown-cmark/pull/21 to be merged to be fully working.