summary refs log tree commit diff
path: root/src/tools/tidy
AgeCommit message (Collapse)AuthorLines
2018-12-03Update cargoEric Huss-0/+1
2018-11-26libcore: Add va_list lang item and intrinsicsDan Robertson-0/+7
- Add the llvm intrinsics used to manipulate a va_list. - Add the va_list lang item in order to allow implementing VaList in libcore.
2018-11-22Move Cargo.{toml,lock} to the repository root directory.Eduard-Mihai Burtescu-7/+7
2018-11-17Update Cargo submoduleAlex Crichton-0/+2
Brings in some fixes and stabilizations!
2018-11-11std: Delete the `alloc_system` crateAlex Crichton-2/+0
This commit deletes the `alloc_system` crate from the standard distribution. This unstable crate is no longer needed in the modern stable global allocator world, but rather its functionality is folded directly into the standard library. The standard library was already the only stable location to access this crate, and as a result this should not affect any stable code.
2018-11-02Use `jemalloc-sys` on Linux and OSX compilersAlex Crichton-1/+1
This commit adds opt-in support to the compiler to link to `jemalloc` in the compiler. When activated the compiler will depend on `jemalloc-sys`, instruct jemalloc to unprefix its symbols, and then link to it. The feature is activated by default on Linux/OSX compilers for x86_64/i686 platforms, and it's not enabled anywhere else for now. We may be able to opt-in other platforms in the future! Also note that the opt-in only happens on CI, it's otherwise unconditionally turned off by default. Closes #36963
2018-11-02Remove all jemalloc-related contentAlex Crichton-4/+0
This commit removes all jemalloc related submodules, configuration, etc, from the bootstrap, from the standard library, and from the compiler. This will be followed up with a change to use jemalloc specifically as part of rustc on blessed platforms.
2018-10-23fix typos in various placesMatthias Krüger-1/+1
2018-10-19ignore target foldersDouglas Campos-0/+1
when you try to edit a crate inside the compiler tree using rls, it generates it's assets under target/rls, then tidy is trying to validate line lenghts for C headers, etc
2018-09-21Update CargoAlex Crichton-0/+1
This commit brings in a few Cargo updates * Updates Cargo with experimental HTTP/2 support - a post on the forums will be made about testing this when available. * Bumps Cargo's own version number
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