about summary refs log tree commit diff
path: root/src/tools/tidy
AgeCommit message (Collapse)AuthorLines
2024-07-29rewrite raw-dylib-stdcall-ordinal to rmakeOneirical-1/+0
2024-07-29rewrite raw-dylib-link-ordinal to rmakeOneirical-1/+0
2024-07-29rewrite raw-dylib-import-name-type to rmakeOneirical-1/+0
2024-07-29rewrite share-generics-dylib to rmakeOneirical-1/+0
2024-07-29Reformat `use` declarations.Nicholas Nethercote-33/+59
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
2024-07-28Rollup merge of #128215 - ehuss:update-reference, r=KobzolMatthias Krüger-1/+1
Update the reference This updates the reference to use the new mdbook-spec preprocessor, which is a Cargo library inside the reference submodule. Note that this PR contains a bunch of bootstrap cleanup commits to assist with making sure the submodules are working correctly. All of the cleanup PRs should have a description in their commit. I'd be happy to move those to a separate PR if that makes review easier. The main changes for the reference are: - Move the `doc::Reference` bootstrap step out of the generic macro into a custom step. - This step needs to build rustdoc because the new mdbook-spec plugin uses rustdoc for generating links. - PATH is updated so that the rustdoc binary can be found. - rustbook now includes the mdbook-spec plugin as a dependency. - rustbook enables the mdbook-spec preprocessor. I did a bunch of testing with the various commands and setups, such as: - `submodules=true` and `submodules=false` - having all submodules deinitialized - not in a git repository However, there are probably thousands of different permutations of different commands, settings, and environments, so there is a chance I'm missing something.
2024-07-28Auto merge of #128079 - Oneirical:testiges-of-civilization, r=jieyouxubors-4/+0
Migrate `static-dylib-by-default`, `sanitizer-dylib-link`, `sanitizer-cdylib-link` and `sanitizer-staticlib-link` `run-make` tests to rmake Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). Please try: try-job: x86_64-msvc try-job: armhf-gnu try-job: test-various try-job: i686-msvc try-job: x86_64-mingw try-job: x86_64-gnu-llvm-18
2024-07-26Rewrite and rename issue-35164 to rmakeOneirical-1/+0
2024-07-26rewrite and rename issue-47551 to rmakeOneirical-1/+0
2024-07-26rewrite no-builtins-attribute to rmakeOneirical-1/+0
2024-07-26rewrite native-link-modifier-whole-archive to rmakeOneirical-1/+0
2024-07-26rewrite rlib-format-packed-bundled-libs-2 to rmakeOneirical-1/+0
2024-07-26rewrite sanitizer-staticlib-link to rmakeOneirical-1/+0
2024-07-26rewrite export-executable-symbols to rmakeOneirical-1/+0
2024-07-26rewrite foreign-rust-exceptions to rmakeOneirical-1/+0
2024-07-26rewrite c-unwind-abi-catch-lib-panic to rmakeOneirical-1/+0
2024-07-26Rollup merge of #128099 - lolbinarycat:extern-flag-disambiguates-rmake, r=KobzolTrevor Gross-1/+0
migrate tests/run-make/extern-flag-disambiguates to rmake
2024-07-26Rollup merge of #127989 - Oneirical:testricted-area, r=jieyouxuTrevor Gross-3/+0
Migrate `interdependent-c-libraries`, `compiler-rt-works-on-mingw` and `incr-foreign-head-span` `run-make` tests to rmake Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). try-job: aarch64-apple try-job: armhf-gnu try-job: test-various try-job: x86_64-mingw try-job: x86_64-msvc try-job: x86_64-gnu-llvm-18
2024-07-26Rollup merge of #127523 - Oneirical:treasure-test, r=jieyouxuTrevor Gross-2/+0
Migrate `dump-ice-to-disk` and `panic-abort-eh_frame` `run-make` tests to rmake Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). Please try: try-job: x86_64-msvc try-job: i686-mingw
2024-07-25Integrate mdbook-spec for the reference.Eric Huss-1/+1
This updates the reference which is now using a new mdbook plugin. This requires a little extra work than a normal book because the plugin uses `rustdoc` to generate links to the standard library. It also ensures that the submodule is available for *any* command that uses rustbook, since it is now part of the rustbook workspace.
2024-07-25Auto merge of #127042 - GrigorenkoPV:derivative, r=compiler-errorsbors-1/+1
Switch from `derivative` to `derive-where` This is a part of the effort to get rid of `syn 1.*` in compiler's dependencies: #109302 Derivative has not been maintained in nearly 3 years[^1]. It also depends on `syn 1.*`. This PR replaces `derivative` with `derive-where`[^2], a not dead alternative, which uses `syn 2.*`. A couple of `Debug` formats have changed around the skipped fields[^3], but I doubt this is an issue. [^1]: https://github.com/mcarton/rust-derivative/issues/117 [^2]: https://lib.rs/crates/derive-where [^3]: See the changes in `tests/ui`
2024-07-25clean up rmake testbinarycat-1/+0
2024-07-25rewrite panic-abort-eh_frame to rmakeOneirical-1/+0
2024-07-25rewrite dump-ice-to-disk to rmakeOneirical-1/+0
2024-07-25rewrite incr-foreign-head-span to rmakeOneirical-1/+0
2024-07-25rewrite compiler-rt-works-on-mingw to rmakeOneirical-1/+0
2024-07-25rewrite interdependent-c-libraries to rmakeOneirical-1/+0
2024-07-25Auto merge of #128102 - Oneirical:real-testate, r=Kobzolbors-3/+0
Migrate `extern-diff-internal-name`, `extern-multiple-copies` and `extern-multiple-copies2` `run-make` tests to rmake Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). Please try: try-job: test-various
2024-07-25Rollup merge of #127872 - Oneirical:antestral-traditions, r=jieyouxuMatthias Krüger-3/+0
Migrate `pointer-auth-link-with-c`, `c-dynamic-rlib` and `c-dynamic-dylib` `run-make` tests to rmake Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). Please try: try-job: x86_64-msvc try-job: i686-mingw try-job: aarch64-apple
2024-07-25Rollup merge of #127054 - compiler-errors:bound-ordering, r=fmeaseMatthias Krüger-1/+1
Reorder trait bound modifiers *after* `for<...>` binder in trait bounds This PR suggests changing the grammar of trait bounds from: ``` [CONSTNESS] [ASYNCNESS] [?] [BINDER] [TRAIT_PATH] const async ? for<'a> Sized ``` to ``` ([BINDER] [CONSTNESS] [ASYNCNESS] | [?]) [TRAIT_PATH] ``` i.e., either ``` ? Sized ``` or ``` for<'a> const async Sized ``` (but not both) ### Why? I think it's strange that the binder applies "more tightly" than the `?` trait polarity. This becomes even weirder when considering that we (or at least, I) want to have `async` trait bounds expressed like: ``` where T: for<'a> async Fn(&'a ()) -> i32, ``` and not: ``` where T: async for<'a> Fn(&'a ()) -> i32, ``` ### Fallout No crates on crater use this syntax, presumably because it's literally useless. This will require modifying the reference grammar, though. ### Alternatives If this is not desirable, then we can alternatively keep parsing `for<'a>` after the `?` but deprecate it with either an FCW (or an immediate hard error), and begin parsing `for<'a>` *before* the `?`.
2024-07-24Rollup merge of #127457 - donno2048:master, r=albertlarsan68Matthias Krüger-31/+35
Make tidy fast without compromising case alternation Fixes tidy speed issue but still catches case-alternation, enabled for other `style.rs` files, and also detects test files better. r? `@albertlarsan68` `@Nilstrieb`
2024-07-23Fix tidy check if book submodule is not checked outEric Huss-33/+29
2024-07-23make tidy fast without compromising case alternationdonno2048-31/+35
2024-07-23rewrite extern-multiple-copies2 to rmakeOneirical-1/+0
2024-07-23Rollup merge of #127990 - Oneirical:ii-the-high-priestest, r=jieyouxuMatthias Krüger-3/+0
Migrate `lto-linkage-used-attr`, `no-duplicate-libs` and `pgo-gen-no-imp-symbols` `run-make` tests to rmake Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). try-job: x86_64-msvc try-job: aarch64-apple try-job: armhf-gnu try-job: test-various try-job: x86_64-gnu-llvm-18
2024-07-23Rollup merge of #126898 - GuillaumeGomez:migrate-run-make-link-framework, ↵Matthias Krüger-1/+0
r=Kobzol Migrate `run-make/link-framework` to `rmake.rs` Part of https://github.com/rust-lang/rust/issues/121876. r? ``@Kobzol`` try-job: x86_64-apple-1
2024-07-23Rollup merge of #125886 - GuillaumeGomez:migrate-run-make-issue-15460, ↵Matthias Krüger-1/+0
r=jieyouxu Migrate run make issue 15460 Part of https://github.com/rust-lang/rust/issues/121876. r? `@jieyouxu` try-job: x86_64-msvc try-job: aarch64-apple try-job: x86_64-gnu-llvm-18
2024-07-23rewrite extern-multiple-copies to rmakeOneirical-1/+0
2024-07-23rewrite extern-diff-internal-name to rmakeOneirical-1/+0
2024-07-23rewrite c-dynamic-dylib to rmakeOneirical-1/+0
2024-07-23rewrite sanitizer-dylib-link to rmakeOneirical-2/+0
2024-07-23rewrite static-dylib-by-default to rmakeOneirical-1/+0
2024-07-23Migrate `run-make/issue-15460` to `rmake.rs`Guillaume Gomez-1/+0
2024-07-23Auto merge of #127778 - Oneirical:artificial-intestlligence, r=jieyouxubors-3/+0
Migrate `staticlib-blank-lib`, `rlib-format-packed-bundled-libs-3` and `issue-97463-abi-param-passing` `run-make` tests to rmake Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). Please try: try-job: aarch64-gnu try-job: armhf-gnu try-job: test-various try-job: x86_64-mingw try-job: x86_64-msvc try-job: x86_64-gnu-llvm-18
2024-07-22Migrate `run-make/link-framework` to `rmake.rs`Guillaume Gomez-1/+0
2024-07-22Auto merge of #127786 - ehuss:rustbook-workspace, r=Mark-Simulacrumbors-0/+8
Move rustbook to its own workspace. This moves rustbook (the wrapper around mdbook) to its own Cargo workspace. This is done for two reasons: - Some users want to avoid having to check out documentation submodules if they are not working on documentation. These submodules are required for submodules that have Cargo dependencies in the tree (such as mdbook preprocessors). - The [pinned `memchr`](https://github.com/rust-lang/rust/blob/eb72697e41b00e5d8723f14c64a969d59d9b9474/compiler/rustc_ast/Cargo.toml#L10) is causing problems with updating. That pin is only necessary for the standard library, but unfortunately it is affecting all other crates. This will have some drawbacks: - A slight increase in the vendor directory size. My measurement shows about a 14M increase (0.7%), but somehow the compressed filesize is smaller. - The dependencies for rustbook now need to be managed separately. I have updated the cron job to try to mitigate this. - There will be a slight dist build time penalty. I'm not sure what it will be, since it heavily depends on the machine, but I suspect in the 30-45s range. - Adds more complexity to things like bootstrap and tidy. There are a few other alternatives considered: - Publish preprocessors on crates.io. This adds the burden of publishing every change, and ensuring those publishes happen and the sources don't get out of sync, and somehow syncing those updates back to rust-lang/rust during the automatic updates. This is also more work. - Move the submodules to subtrees. These have the added burden of doing updates in a way that is more difficult than submodules. I believe it also causes problems with GitHub's `#NNNN` tagging and closing issues. This is also more work. The only thing I haven't tested here is the cron job. However, there's a pretty decent chance this won't pass CI, or that I missed something.
2024-07-22rewrite pgo-gen-no-imp-symbols to rmakeOneirical-1/+0
2024-07-22rewrite and rename issue-97463-abi-param-passing to rmakeOneirical-1/+0
2024-07-22rewrite c-dynamic-rlib to rmakeOneirical-1/+0
2024-07-22rewrite pointer-auth-link-with-c to rmakeOneirical-1/+0