summary refs log tree commit diff
path: root/src/tools/tidy
AgeCommit message (Collapse)AuthorLines
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-04Breaking change upgradesMark Rousskov-1/+3
2018-09-03Add memmap crate to tidy whitelist.Michael Woerister-0/+1
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-08-25Update Cargo submoduleAlex Crichton-1/+5
Also update Cargo's dependencies while we're at it
2018-08-25Auto merge of #53609 - bemeurer:tidy-ctfe, r=RalfJungbors-2/+0
Tidy CFTE/MIRI Fixes #53596
2018-08-24Rollup merge of #53617 - joshtriplett:tidy-no-license-header, r=Mark-Simulacrumkennytm-53/+0
tidy: Stop requiring a license header Previously approved in rust-lang/rust#43498 ; update tidy to match.
2018-08-23Removed librustc/mir/interpret and librustc_mir/interpreter from tidy skip listBernardo Meurer-2/+0
2018-08-23use String::new() instead of String::from(""), "".to_string(), "".to_owned() ↵Matthias Krüger-1/+1
or "".into()
2018-08-22tidy: Stop requiring a license headerJosh Triplett-53/+0
Previously approved in rust-lang/rust#43498 ; update tidy to match.
2018-08-18Use the new Entry::or_default method where possible.Eduard-Mihai Burtescu-4/+4
2018-08-17Rollup merge of #53399 - varkor:ignore-non-md-unstable_book, r=nikomatsakiskennytm-0/+1
Tidy: ignore non-Markdown files when linting for the Unstable Book Previously, any file would be assumed a `.md`, which is annoying when files like `.DS_STORE` slip in and then cause tidy errors.
2018-08-15Tidy: ignore non-Markdown files when linting for the Unstable Bookvarkor-0/+1
2018-08-14Add lldb to the buildTom Tromey-0/+2
This optionally adds lldb (and clang, which it needs) to the build. Because rust uses LLVM 7, and because clang 7 is not yet released, a recent git master version of clang is used. The lldb that is used includes the Rust plugin. lldb is only built when asked for, or when doing a nightly build on macOS. Only macOS is done for now due to difficulties with the Python dependency.
2018-08-14Tidy no longer fails when there are no files or subdirectories in a test ↵David Wood-9/+11
directory.
2018-08-09Deny future duplication of rustc-ap-syntaxAlex Crichton-1/+1
Enable the tidy check to forbid this! Closes #53006
2018-08-08Prevent duplication of rust-ap-syntaxNick Cameron-1/+30
author: alexcrichton
2018-08-05Remove obsolete tests in tidyvarkor-32/+3
These have been replaced by more reliable checks in the compiler itself.
2018-07-29Exempt cloudabi from license check.kennytm-0/+1
2018-07-28Update the Cargo submodule and rustfixAlex Crichton-0/+1
Should hopefully bring in a few more `cargo fix`-related fixes.
2018-07-25Add missing dynTatsuyuki Ishi-3/+3
2018-07-23Change single char str patterns to charsljedrz-3/+3
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-07Mostly fix compiling without LLVM (with metadata_only backend)bjorn3-1/+0
2018-07-06Update RLS, Rustfmt, Cargo, and ClippyNick Cameron-0/+1
2018-06-20Fix tidyBastien Orivel-1/+1
2018-05-30Replace libbacktrace with a submoduleAlex Crichton-0/+1
While we're at it update the `backtrace` crate from crates.io. It turns out that the submodule's configure script has gotten a lot more finnicky as of late so also switch over to using the `cc` crate manually which allows to avoid some hacks around the configure script as well
2018-05-29Whitelist datafrog on tidySantiago Pastorino-0/+1
2018-05-27Ensure every unstable feature has a tracking issue.kennytm-6/+29
2018-05-26Rollup merge of #51047 - spastorino:use_polonius_engine_facts, r=nikomatsakiskennytm-0/+1
Use AllFacts from polonius-engine
2018-05-24Use AllFacts from polonius-engineSantiago Pastorino-0/+1
2018-05-24extend the crate whitelist to include rustc-hash, chalkNiko Matsakis-0/+3
2018-05-17Rename trans to codegen everywhere.Irina Popa-1/+1
2018-05-16tidy: Add a check for empty UI test filesJane Lusby-23/+40
Check for empty `.stderr` and `.stdout` files in UI test directories. Empty files could still pass testing for `compile-pass` tests with no output so they can get into the repo accidentally, but they are not necessary and can be removed.
2018-05-13Add a Rayon thread poolJohn Kåre Alsaker-0/+10
2018-05-12Display the name of the failed file in tidy/libcoretestvarkor-8/+15