about summary refs log tree commit diff
path: root/src/tools/tidy
AgeCommit message (Collapse)AuthorLines
2019-10-30Remove references to now unused `E0526`Dylan MacKenzie-1/+0
It remains as a comment in `error_codes.rs` for consistency with other unused errors.
2019-10-22Merge branch 'master' into rusty-hermitStefan Lankes-1/+26
2019-10-21Remove `src/llvm-emscripten` submoduleAlex Crichton-1/+0
With #65251 landed there's no need to build two LLVM backends and ship them with rustc, every target we have now uses the same LLVM backend! This removes the `src/llvm-emscripten` submodule and additionally removes all support from rustbuild for building the emscripten LLVM backend. Multiple codegen backend support is left in place for now, and this is intended to be an easy 10-15 minute win on CI times by avoiding having to build LLVM twice.
2019-10-21remove hermit-abi from the wrong list, add to the whitelistStefan Lankes-1/+1
2019-10-21add hermit-abi to the whitelistStefan Lankes-0/+1
2019-10-20Check all files in `src/test` for `borrowck_graphviz_postflow`Dylan MacKenzie-0/+26
This attribute causes DOT files to be generated in the top-level directory. It is intended to be used only temporarily and should never appear on master. This will prevent #65071 from occurring again.
2019-10-08Rollup merge of #65135 - GuillaumeGomez:add-error-code-check, r=Mark-SimulacrumMazdak Farrokhzad-0/+139
Add check for missing tests for error codes Fixes #64811. r? @Mark-Simulacrum
2019-10-07add crossbeam-queue to the whitelistJosh Stone-0/+1
2019-10-07Add new test to heck if all error codes have testsGuillaume Gomez-0/+139
2019-10-02Filter out RLS output directories on tidy runsSantiago Pastorino-0/+3
2019-09-28Rollup merge of #64763 - GuillaumeGomez:long-err-explanation-E0734, r=estebankMazdak Farrokhzad-1/+1
Add E0734 and its long explanation Part of https://github.com/rust-lang/rust/issues/61137
2019-09-27Don't check error_codes files for lintsGuillaume Gomez-1/+1
2019-09-23Add `#![deny(warnings)]` to internal toolsAlex Crichton-0/+2
2019-09-22Clarify the "since" tidy checkMazdak Farrokhzad-1/+1
2019-09-07Rollup merge of #64139 - Mark-Simulacrum:strip-legacy-proc-macro, r=petrochenkovMazdak Farrokhzad-6/+20
Migrate internal diagnostic registration to macro_rules Review is best done commit-by-commit. Fixes #64132.
2019-09-06Rollup merge of #63676 - newpavlov:wasi, r=alexcrichtonMazdak Farrokhzad-0/+2
Use wasi crate for Core API Blocked by: CraneStation/rust-wasi#5 Blocks: rust-lang/libc#1461 cc @sunfishcode @alexcrichton
2019-09-05Restrict error code length to 80 columnsMark Rousskov-6/+20
The global restriction is 100, but since error codes are printed out via --explain we want to restrict them to just 80 columns.
2019-09-05Avoid feature name 'checked_duration_since' in a Tidy testVitaly _Vi Shukela-2/+2
2019-08-30Auto merge of #63402 - estebank:strip-margin, r=oli-obkbors-0/+1
Strip code to the left and right in diagnostics for long lines Fix #62999.
2019-08-29whitelist wasi crateArtyom Pavlov-0/+1
2019-08-29add wasi license to the licenses whitelistnewpavlov-0/+1
2019-08-24Fix tidy feature gate error reportingPascal Hertleif-7/+15
Feature gate definitions were split into multiple files in #63824 but tidy kept reporting the hard-coded path. Now, it shows the full path to the correct file.
2019-08-24Auto merge of #63637 - alexcrichton:remove-libtest-step, r=Mark-Simulacrumbors-0/+3
bootstrap: Merge the libtest build step with libstd Since its inception rustbuild has always worked in three stages: one for libstd, one for libtest, and one for rustc. These three stages were architected around crates.io dependencies, where rustc wants to depend on crates.io crates but said crates don't explicitly depend on libstd, requiring a sysroot assembly step in the middle. This same logic was applied for libtest where libtest wants to depend on crates.io crates (`getopts`) but `getopts` didn't say that it depended on std, so it needed `std` built ahead of time. Lots of time has passed since the inception of rustbuild, however, and we've since gotten to the point where even `std` itself is depending on crates.io crates (albeit with some wonky configuration). This commit applies the same logic to the two dependencies that the `test` crate pulls in from crates.io, `getopts` and `unicode-width`. Over the many years since rustbuild's inception `unicode-width` was the only dependency picked up by the `test` crate, so the extra configuration necessary to get crates building in this crate graph is unlikely to be too much of a burden on developers. After this patch it means that there are now only two build phasese of rustbuild, one for libstd and one for rustc. The libtest/libproc_macro build phase is all lumped into one now with `std`. This was originally motivated by rust-lang/cargo#7216 where Cargo was having to deal with synthesizing dependency edges but this commit makes them explicit in this repository.
2019-08-23bootstrap: Merge the libtest build step with libstdAlex Crichton-0/+3
Since its inception rustbuild has always worked in three stages: one for libstd, one for libtest, and one for rustc. These three stages were architected around crates.io dependencies, where rustc wants to depend on crates.io crates but said crates don't explicitly depend on libstd, requiring a sysroot assembly step in the middle. This same logic was applied for libtest where libtest wants to depend on crates.io crates (`getopts`) but `getopts` didn't say that it depended on std, so it needed `std` built ahead of time. Lots of time has passed since the inception of rustbuild, however, and we've since gotten to the point where even `std` itself is depending on crates.io crates (albeit with some wonky configuration). This commit applies the same logic to the two dependencies that the `test` crate pulls in from crates.io, `getopts` and `unicode-width`. Over the many years since rustbuild's inception `unicode-width` was the only dependency picked up by the `test` crate, so the extra configuration necessary to get crates building in this crate graph is unlikely to be too much of a burden on developers. After this patch it means that there are now only two build phasese of rustbuild, one for libstd and one for rustc. The libtest/libproc_macro build phase is all lumped into one now with `std`. This was originally motivated by rust-lang/cargo#7216 where Cargo was having to deal with synthesizing dependency edges but this commit makes them explicit in this repository.
2019-08-23Fix `tidy` fallout due to `feature_gate.rs` refactoring.Mazdak Farrokhzad-1/+8
2019-08-21Introduce `term-size` dependency and consider term width when trimmingEsteban Küber-0/+1
2019-08-02Auto merge of #63207 - petrochenkov:outest2, r=Mark-Simulacrumbors-90/+63
Unconfigure compiler unit test files during normal build I haven't touched libstd though, it had a lot of tests and I'm not sure the people maintaining it want this. Closes https://github.com/rust-lang/rust/issues/61097 r? @Mark-Simulacrum
2019-08-02liballoc: Unconfigure tests during normal buildVadim Petrochenkov-26/+10
Remove additional libcore-like restrictions from liballoc, turns out the testing works ok if the tests are a part of liballoc itself.
2019-08-02libsyntax: Unconfigure tests during normal buildVadim Petrochenkov-1/+0
2019-08-02librustdoc: Unconfigure tests during normal buildVadim Petrochenkov-1/+0
2019-08-02librustc_data_structures: Unconfigure tests during normal buildVadim Petrochenkov-1/+0
2019-08-02librustc: Unconfigure tests during normal buildVadim Petrochenkov-1/+0
2019-08-02librustc_incremental: Unconfigure tests during normal buildVadim Petrochenkov-1/+0
2019-08-02libsyntax_pos: Unconfigure tests during normal buildVadim Petrochenkov-1/+0
2019-08-02librustc_target: Unconfigure tests during normal buildVadim Petrochenkov-1/+0
2019-08-02librustc_lexer: Unconfigure tests during normal buildVadim Petrochenkov-1/+0
2019-08-02libpanic_unwind: Unconfigure tests during normal buildVadim Petrochenkov-1/+0
2019-08-02libserialize: Unconfigure tests during normal buildVadim Petrochenkov-1/+0
2019-08-02libterm: Unconfigure tests during normal buildVadim Petrochenkov-1/+0
2019-08-02libtest: Unconfigure tests during normal buildVadim Petrochenkov-1/+0
2019-08-02compiletest: Unconfigure tests during normal buildVadim Petrochenkov-1/+0
2019-08-02tidy: Unconfigure tests during normal buildVadim Petrochenkov-51/+53
2019-08-01Remove spin dependencygnzlbg-1/+0
2019-08-01Update Cargo.lockgnzlbg-0/+4
2019-08-01Remove mach dependencygnzlbg-1/+2
2019-07-30Add very simple edition check to tidy; and add missing edition = 2018s.CrLF0710-0/+47
2019-07-28Auto merge of #63090 - Centril:rollup-xnjwm2h, r=Centrilbors-18/+18
Rollup of 8 pull requests Successful merges: - #61856 (Lint attributes on function arguments) - #62360 (Document that ManuallyDrop::drop should not called more than once) - #62392 (Update minifier-rs version) - #62871 (Explicit error message for async recursion.) - #62995 (Avoid ICE when suggestion span is at Eof) - #63053 (SystemTime docs: recommend Instant for elapsed time) - #63081 (tidy: Cleanup the directory whitelist) - #63088 (Remove anonymous_parameters from unrelated test) Failed merges: r? @ghost
2019-07-28Rollup merge of #63081 - petrochenkov:cleantidy, r=Mark-SimulacrumMazdak Farrokhzad-16/+4
tidy: Cleanup the directory whitelist Some entries were outdated - pre-"llvm-project", pre-"crates.io", pre-"Cargo.toml outside of src". Some entries were unnecessary - `owning_ref` could be fixed and directories outside of `src` are not visited by tidy at all. r? @Mark-Simulacrum
2019-07-28Rollup merge of #62995 - estebank:issue-62973, r=varkorMazdak Farrokhzad-2/+14
Avoid ICE when suggestion span is at Eof Fix #62973.
2019-07-28Remove lint annotations in specific crates that are already enforced by ↵Vadim Petrochenkov-2/+0
rustbuild Remove some random unnecessary lint `allow`s