about summary refs log tree commit diff
path: root/src/tools/tidy
AgeCommit message (Collapse)AuthorLines
2022-12-31Update error messageJ Haigh-1/+1
Co-authored-by: Joshua Nelson <github@jyn.dev>
2022-12-31Update error messageJ Haigh-1/+1
Co-authored-by: Joshua Nelson <github@jyn.dev>
2022-12-31formattingDebugSteven-6/+6
2022-12-31spawn x command and compare semversDebugSteven-10/+30
2022-12-31remove leading comma from macro expansionDebugSteven-23/+5
2022-12-31warn when there's a newer version of the x tool availableDebugSteven-1/+39
2022-12-31Add tidy check for dbggimbles-0/+17
2022-12-31refactor: merge `E0465` into `E0464`Ezra Shaw-2/+2
2022-12-31Revert "Auto merge of #105058 - ↵Joshua Nelson-76/+0
Nilstrieb:no-merge-commits-for-you-only-bors-is-allowed-to-do-that, r=jyn514" This reverts commit 4839886f0abe208ab8f2bb73a3076a59fe2ab60c, reversing changes made to ce85c98575e3016cf2007d90a85be321e592aa96.
2022-12-30Make tidy errors redNilstrieb-9/+23
This makes it easier to see them (and makes people go owo).
2022-12-30Add `build_helper` crate to share code between tidy and bootstrapNilstrieb-59/+4
2022-12-30Tidy up tidy error codes checkNilstrieb-26/+11
2022-12-30Add tidy check to deny merge commitsNilstrieb-0/+131
This will prevent users with the pre-push hook from pushing a merge commit. Exceptions are added for subtree updates. These exceptions are a little hacky and may be non-exhaustive but can be extended in the future.
2022-12-29docs/test: add UI test and long-form error docs for `E0519`Ezra Shaw-2/+2
2022-12-24Rollup merge of #105970 - Ezrashaw:add-docs+test-e0462, r=GuillaumeGomezMatthias Krüger-2/+2
docs/test: add UI test and long-form error docs for E0462 Another UI test/ docs combo. r? ``@GuillaumeGomez``
2022-12-23Move testsCaio-1/+1
2022-12-23docs/test: add UI test and long-form error docs for E0462Ezra Shaw-2/+2
2022-12-20docs/test: add UI test and long-form error docs for `E0377`Ezra Shaw-2/+2
2022-12-17poll tidy threads for completion before waitingThe 8472-6/+16
2022-12-17optimize line-by-line style checks in tidyThe 8472-24/+35
2022-12-14Add tidy exceptionsbjorn3-0/+6
2022-12-11Move testsCaio-1/+1
2022-12-10Rollup merge of #105109 - rcvalle:rust-kcfi, r=bjorn3Matthias Krüger-0/+2
Add LLVM KCFI support to the Rust compiler This PR adds LLVM Kernel Control Flow Integrity (KCFI) support to the Rust compiler. It initially provides forward-edge control flow protection for operating systems kernels for Rust-compiled code only by aggregating function pointers in groups identified by their return and parameter types. (See llvm/llvm-project@cff5bef.) Forward-edge control flow protection for C or C++ and Rust -compiled code "mixed binaries" (i.e., for when C or C++ and Rust -compiled code share the same virtual address space) will be provided in later work as part of this project by identifying C char and integer type uses at the time types are encoded (see Type metadata in the design document in the tracking issue #89653). LLVM KCFI can be enabled with -Zsanitizer=kcfi. Thank you again, `@bjorn3,` `@eddyb,` `@nagisa,` and `@ojeda,` for all the help!
2022-12-08Add LLVM KCFI support to the Rust compilerRamon de C Valle-0/+2
This commit adds LLVM Kernel Control Flow Integrity (KCFI) support to the Rust compiler. It initially provides forward-edge control flow protection for operating systems kernels for Rust-compiled code only by aggregating function pointers in groups identified by their return and parameter types. (See llvm/llvm-project@cff5bef.) Forward-edge control flow protection for C or C++ and Rust -compiled code "mixed binaries" (i.e., for when C or C++ and Rust -compiled code share the same virtual address space) will be provided in later work as part of this project by identifying C char and integer type uses at the time types are encoded (see Type metadata in the design document in the tracking issue #89653). LLVM KCFI can be enabled with -Zsanitizer=kcfi. Co-authored-by: bjorn3 <17426603+bjorn3@users.noreply.github.com>
2022-12-05Auto merge of #104824 - klensy:bump-some, r=Mark-Simulacrumbors-1/+2
deps: update cpufeatures, swap difference to dissimilar Updating cpufeatures v0.2.1 -> v0.2.5: https://github.com/RustCrypto/utils/blob/master/cpufeatures/CHANGELOG.md#025-2022-09-04, was yanked bc of miscompile (https://github.com/RustCrypto/utils/pull/800, https://github.com/rust-lang/rust/issues/101346) Removing difference v2.0.0 Adding dissimilar v1.0.4 Updating expect-test v1.0.1 -> v1.4.0 difference unmaintened https://rustsec.org/advisories/RUSTSEC-2020-0095.html, so replaced with https://github.com/dtolnay/dissimilar (as dependency of `expect-test`)
2022-12-03Auto merge of #97485 - bjorn3:new_archive_writer, r=wesleywiserbors-12/+13
Rewrite LLVM's archive writer in Rust This allows it to be used by other codegen backends. Fixes https://github.com/bjorn3/rustc_codegen_cranelift/issues/1155
2022-11-29update cpufeatures, swap difference to dissimilarklensy-1/+2
2022-11-28Permit deps (scarry)Maybe Waffle-0/+2
2022-11-26Rewrite LLVM's archive writer in Rustbjorn3-12/+13
This allows it to be used by other codegen backends
2022-11-20Move testsCaio-1/+1
2022-11-18Import icu locale fallback dataCharles Lew-0/+1
2022-11-18Add `rustc_baked_icu_data` crate.Charles Lew-0/+12
2022-11-16Auto merge of #104456 - RalfJung:miri, r=RalfJungbors-0/+1
update Miri Not a huge sync, but there was a conflict and [josh](https://github.com/josh-project/josh/) seems to prefer those to be merged back ASAP.
2022-11-16allow fastrand dependencyRalf Jung-0/+1
2022-11-15Update PROBLEMATIC_CONSTS in style.rsStewart Russell-1/+1
added 3735932941, since 3735927486 was already present.
2022-11-12TidyCaio-1/+1
2022-11-05TidyCaio-2/+2
2022-11-05Rollup merge of #103956 - JakobDegen:tidy-bless, r=jyn514Matthias Krüger-7/+11
Make mir opt unused file check blessable Makes it slightly nicer to work with. Can't write automated test but tested locally via ``` $ touch src/test/mir-opt/random $ x test tidy // shows failure $ x test tidy --bless // file gone ``` r? `@jyn514`
2022-11-04Rollup merge of #103958 - chenyukang:yukang/fix-103951-count-limit, r=jyn514Matthias Krüger-26/+34
Test tidy should not count untracked paths towards entries limit Fixes #103951 r? `@jyn514`
2022-11-04test tidy should not count untracked paths towards entries limityukang-26/+34
2022-11-03Make mir opt unused file check blessableJakob Degen-7/+11
2022-11-03Move some tests from `src/test/ui` to more reasonable placesDeadbeef-1/+1
2022-11-02Ban dashes in miropt test file namesJakob Degen-3/+37
2022-11-02Rollup merge of #103275 - Manishearth:tinystrup, r=pnkfelixDylan DPC-0/+2
Update tinystr Tinystr has changed a ton since the old version and is much less unsafe, updated some of the dependencies that use it.
2022-10-31Detect unused files in `src/test/mir-opt` and error on them in tidy.Jakob Degen-0/+40
2022-10-23Update list of allowed cranelift dependenciesbjorn3-0/+2
2022-10-20Move some tests for more reasonable placesCaio-1/+1
2022-10-19allowlist displaydocManish Goregaokar-0/+1
2022-10-19Update licenseManish Goregaokar-0/+1
2022-10-14Also run alphabetical check in src and librarynils-6/+6