summary refs log tree commit diff
path: root/src/tools/tidy
AgeCommit message (Collapse)AuthorLines
2019-05-09remove unneeded `extern crate`s from build toolsAndy Russell-3/+2
2019-05-07Auto merge of #60531 - Centril:sort-features, r=oli-obkbors-4/+4
Enforce sorting of accepted and removed features Fixes https://github.com/rust-lang/rust/issues/60361 with mechanism introduced in https://github.com/rust-lang/rust/pull/60373. r? @oli-obk
2019-05-04Rename 'no tracking issue START' to fit better with tidy.Mazdak Farrokhzad-4/+4
2019-05-03tidy: Extract `let mut part` out of `parts` block in `version.rs`Alexey Shmalko-7/+5
2019-05-03Migrate tidy to rust 2018 editionAlexey Shmalko-10/+3
2019-05-02Make tidy::version::Version copyAlexey Shmalko-4/+4
2019-05-02Make in_feature_group a simple bool flagAlexey Shmalko-7/+6
2019-05-02Rework Version::parse to avoid extra allocationsAlexey Shmalko-10/+20
2019-05-02Make tidy::version::Version a [u32; 3]Alexey Shmalko-12/+28
2019-05-02Address review commentsAlexey Shmalko-28/+29
2019-05-02Ensure language features in group are sorted by sinceAlexey Shmalko-0/+17
2019-05-02Assign group and parse since for FeatureAlexey Shmalko-11/+117
2019-05-02Make find_attr_val a little bit more preciseAlexey Shmalko-4/+17
`find_attr_val(&line, "since")` returns `Some(", issue = ")` when `line` is set to the following line: ``` [unstable(feature = "checked_duration_since", issue = "58402")] ``` Make `find_attr_val` use regex that is a little bit more precise (requires `=` after key name). It still does not handle all cases (e.g., extra leading chars in key name, or escaped quotes in value), but is good enough for now.
2019-04-30Cleanup 'active' declare_features! with uniform style + sorting.Mazdak Farrokhzad-10/+16
2019-04-27tidy: Fix false positives from long URLsVadim Petrochenkov-6/+11
2019-04-25Fix false position on style.rs itselfvarkor-8/+11
2019-04-25Advise the user on how to suppress the file length tidy errorvarkor-1/+7
2019-04-25Add a tidy test for line countvarkor-3/+15
2019-04-23Check for other unused tidy check directivesvarkor-28/+70
2019-04-23Tidy warn on ignored line length when lines are not too longvarkor-3/+9
2019-04-23Look specifically for comments containing tidy ignore directivesvarkor-5/+10
2019-04-23Auto merge of #60172 - varkor:tidy-double-trailing-newline, r=kennytmbors-1/+1
Disallow double trailing newlines in tidy This wasn't done previously in https://github.com/rust-lang/rust/pull/47064#issuecomment-354533010 as it affected too many files, but I think it's best to fix it now so that the number of files with double trailing newlines doesn't keep increasing. r? kennytm
2019-04-22Add a tidy check for leading trailing newlinesvarkor-0/+7
2019-04-22Disallow double trailing newlines in tidyvarkor-1/+1
2019-04-18Remove unnecessary conditionYuki OKUSHI-1/+1
2019-04-17Rename filenameYuki OKUSHI-1/+1
2019-04-14Rollup merge of #59747 - gruberb:copy-book-toml-unstable-book, r=ehussMazdak Farrokhzad-4/+4
Copy book.toml unstable book generator Solves https://github.com/rust-lang/rust/issues/59554 and adds a book title to the unstable book. I assume that [copy_recursive](https://github.com/rust-lang/rust/blob/acd8dd6a50d505057a7d7ad8d0d7a4c2bd274200/src/tools/unstable-book-gen/src/main.rs#L105) will take files regardless of their type (`.md` or `.toml`). Although I had a hard time time testing it. A second pair of eyes is definitely needed.
2019-04-12Use measureme in self-profilerWesley Wiser-0/+1
Related to #58372 Related to #58967
2019-04-07Change root path for unstable-bookBastian Gruber-4/+4
2019-03-28Auto merge of #59336 - gnzlbg:hint_black_box, r=alexcrichtonbors-0/+4
Moves test::black_box to core::hint and fix black_box on wasm32 and asm.js This changes removes a cyclic dependency between the "test" and "libtest" crates, where "libtest" depends on "test" for "black_box", but "test" depends on "libtest" for everything else. I've chosen the "hint" module because there seems to be enough consensus in the discussion of RFC2360 that this module is where such an intrinsic would belong, but this PR does not implement that RFC! If that RFC ever gets merged, the API, docs, etc. of this API will need to change. This PR just move the implementation of the already existing API. For backwards compatibility reasons I've chosen to also keep the "test" feature gate for these instead of adding a new feature gate. If we change the feature gate, we'll potentially all benchmarks, and while that's something that we could do, it seems unnecessary to do that now - if RFC2360 gets merged, we'll need to do that anyways. Backwards compatibility is also why we continue to re-export "black_box" from the "test" crate. This PR also fixes black_box on the wasm32 target, which now supports inline assembly, and uses volatile loads on the asm.js target. r? @Amanieu (cc @rust-lang/libs)
2019-03-26Add exception for libcore/hint.rs to pal lint of tidy scriptgnzlbg-0/+4
2019-03-26Rollup merge of #59315 - Zoxc:move-query, r=oli-obkMazdak Farrokhzad-0/+1
Add no_hash to query macro and move some queries over r? @oli-obk
2019-03-25SGX target: fix std unit testsJethro Beekman-0/+1
2019-03-20Allow itertoolsJohn Kåre Alsaker-0/+1
2019-03-05Create a derive macro for HashStableJohn Kåre Alsaker-0/+1
2019-03-02Rollup merge of #58842 - mati865:53005, r=alexcrichtonkennytm-1/+1
Forbid duplicating Cargo as a dependency Fixes https://github.com/rust-lang/rust/issues/53005
2019-03-01Forbid duplicating Cargo as a dependencyMateusz Mikuła-1/+1
2019-03-01tidy: deny(rust_2018_idioms)Mazdak Farrokhzad-8/+9
2019-02-27Fix tidy check for language and library featuresDan Robertson-10/+12
2019-02-18Add constant_time_eq to license exception list of tidy toolflip1995-0/+1
2019-02-12Auto merge of #58341 - alexreg:cosmetic-2-doc-comments, r=steveklabnikbors-3/+3
Cosmetic improvements to doc comments This has been factored out from https://github.com/rust-lang/rust/pull/58036 to only include changes to documentation comments (throughout the rustc codebase). r? @steveklabnik Once you're happy with this, maybe we could get it through with r=1, so it doesn't constantly get invalidated? (I'm not sure this will be an issue, but just in case...) Anyway, thanks for your advice so far!
2019-02-11Allow platform specific testsOliver Scherer-0/+1
2019-02-10tools: doc commentsAlexander Regueiro-3/+3
2019-02-04Transition tidy and unstable-book-gento 2018 editionHirokazu Hata-1/+2
2019-01-30Add exception for new dependency in license checkerJames Munns-0/+1
2019-01-29Update stdsimdgnzlbg-0/+2
2019-01-26Bump bootstrap compiler to 1.33 betaMark Rousskov-1/+1
2019-01-25Rebase to the llvm-project monorepoJosh Stone-0/+1
The new git submodule src/llvm-project is a monorepo replacing src/llvm and src/tools/{clang,lld,lldb}. This also serves as a rebase for these projects to the new 8.x branch from trunk. The src/llvm-emscripten fork is unchanged for now.
2019-01-13Added check for copyright notices.Alexander Regueiro-2/+10
2019-01-13Cosmetic improvementsAlexander Regueiro-114/+122