about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2024-05-19Auto merge of #125294 - matthiaskrgr:rollup-w42c829, r=matthiaskrgrbors-629/+1321
Rollup of 4 pull requests Successful merges: - #124948 (chore: Remove repeated words (extension of #124924)) - #124992 (Add example to IsTerminal::is_terminal) - #125279 (make `Debug` impl for `Term` simpler) - #125286 (Miri subtree update) r? `@ghost` `@rustbot` modify labels: rollup
2024-05-19Rollup merge of #125286 - RalfJung:miri-sync, r=RalfJungMatthias Krüger-604/+1296
Miri subtree update r? `@ghost`
2024-05-19Rollup merge of #124948 - blyxyas:remove-repeated-words, r=compiler-errorsMatthias Krüger-25/+25
chore: Remove repeated words (extension of #124924) When I saw #124924 I thought "Hey, I'm sure that there are far more than just two typos of this nature in the codebase". So here's some more typo-fixing. Some found with regex, some found with a spellchecker. Every single one manually reviewed by me (along with hundreds of false negatives by the tools)
2024-05-19Auto merge of #125006 - spastorino:generics-is-empty, r=compiler-errorsbors-2/+2
Add and use generics.is_empty() and generics.is_own_empty, rather than using generics' attributes r? `@compiler-errors` Related to #123929
2024-05-19Auto merge of #3319 - bjorn3:some_more_shims, r=RalfJungbors-48/+168
Directly implement native exception raise methods in miri This implements the `_Unwind_RaiseException` function used on pretty much every unix system for starting unwinding. This allows removing the miri special case from libpanic_unwind for unix. Windows still needs `miri_start_unwind` as SEH unwinding isn't supported by miri. Unlike DWARF unwinding, SEH preserves all stack frames until right after the do_catch function has executed. Because of this panic_unwind stack allocates the exception object. Miri can't currently model unwinding without destroying stack frames and as such will report a use-after-free of the exception object.
2024-05-19various small nitsRalf Jung-69/+72
- share implementation with miri_starting_unwind - make test use a custom unwinding class - extend comments - use NeedsUnwind more consistently
2024-05-19Directly implement native exception raise methods in miribjorn3-1/+118
Windows still needs the old custom ABI as SEH unwinding isn't supported by miri. Unlike DWARF unwinding it preserves all stack frames until right after the do_catch function has executed. Because of this panic_unwind stack allocates the exception object. Miri can't currently model unwinding without destroying stack frames and as such will report a use-after-free of the exception object.
2024-05-19use a little arg-parsing helper for miri-scriptRalf Jung-147/+262
2024-05-19Rollup merge of #125275 - ↵Michael Goulet-1/+0
GuillaumeGomez:migrate-rustdoc-scrape-examples-test, r=jieyouxu Migrate `run-make/rustdoc-scrape-examples-test` to new `rmake.rs` Part of https://github.com/rust-lang/rust/issues/121876. r? ``@jieyouxu``
2024-05-19test wasm32-wasip2 instead of the deprecated wasm32-wasi targetRalf Jung-2/+2
2024-05-19Add and use generics.is_empty() and generics.is_own_empty, rather than using ↵Santiago Pastorino-2/+2
generics' attributes
2024-05-19Migrate `run-make/rustdoc-scrape-examples-test` to new `rmake.rs`Guillaume Gomez-1/+0
2024-05-19Auto merge of #125272 - lnicola:sync-from-ra, r=lnicolabors-2897/+5502
Subtree update of `rust-analyzer` r? `@ghost`
2024-05-19properly print error in 'cargo miri setup --print-sysroot'Ralf Jung-58/+36
2024-05-19Auto merge of #125145 - Kobzol:ci-toolstate, r=Mark-Simulacrumbors-2/+1
CI: fix toolstate publishing Toolstate publishing after something broke was not working (discovered [here](https://github.com/rust-lang/rust/pull/124050#issuecomment-2111292015)). The toolstate env. vars should only be needed for the publishing step, so I moved them there. The toolstate script is also being checked in `mingw-check` on PR and auto CI, but it doesn't really seem to do anything, and it shouldn't require the token.
2024-05-19Auto merge of #3616 - RalfJung:android, r=RalfJungbors-37/+79
make basic things work on Android Fixes https://github.com/rust-lang/miri/issues/3608
2024-05-19Auto merge of #3585 - devnexen:aligned_alloc, r=RalfJungbors-44/+171
support aligned_alloc for unixes. Fixes https://github.com/rust-lang/miri/issues/3577
2024-05-19make basic things work on AndroidRalf Jung-37/+79
2024-05-19a bit of refactoring and tweak the aligned-allocation testsRalf Jung-62/+61
2024-05-19Add option-ext to RA license exception listLaurențiu Nicola-0/+1
2024-05-19Merge from rustcRalf Jung-92/+88
2024-05-19Preparing for merge from rustcRalf Jung-1/+1
2024-05-19Bump rustc cratesLaurențiu Nicola-15/+38
2024-05-19Merge from rust-lang/rustLaurențiu Nicola-11/+573710
2024-05-19Preparing for merge from rust-lang/rustLaurențiu Nicola-0/+1
2024-05-18Auto merge of #125257 - jieyouxu:rollup-11evnm9, r=jieyouxubors-1/+1
Rollup of 3 pull requests Successful merges: - #125214 (Only make GAT ambiguous in `match_projection_projections` considering shallow resolvability) - #125236 (Add tests for `-Zunpretty=expanded` ported from stringify's tests) - #125251 (Clarify how String::leak and into_boxed_str differ ) r? `@ghost` `@rustbot` modify labels: rollup
2024-05-18Rollup merge of #125236 - dtolnay:expandtest, r=nnethercote许杰友 Jieyou Xu (Joe)-1/+1
Add tests for `-Zunpretty=expanded` ported from stringify's tests This PR adds a new set of tests for the AST pretty-printer. Previously, pretty-printer edge cases were tested by way of `stringify!` in [tests/ui/macros/stringify.rs](https://github.com/rust-lang/rust/blob/1.78.0/tests/ui/macros/stringify.rs), such as the tests added by https://github.com/rust-lang/rust/commit/419b26931b73209bfafdb9938c09e12b9d650613 and https://github.com/rust-lang/rust/commit/527e2eac17c5d3709e4e30e8b72ae33a6e8990b1. Those tests will no longer provide effective coverage of the AST pretty-printer after #124141. `Nonterminal` and `TokenKind::Interpolated` are being removed, and a consequence is that `stringify!` will perform token stream pretty printing, instead of AST pretty printing, in all of the `stringify!` cases including $:expr and all other interpolations. This PR adds 2 new ui tests with `compile-flags: -Zunpretty=expanded`: - **tests/ui/unpretty/expanded-exhaustive.rs** — this test aims for exhaustive coverage of all the variants of `ExprKind`, `ItemKind`, `PatKind`, `StmtKind`, `TyKind`, and `VisibilityKind`. Some parts could use being fleshed out further, but the current state is roughly on par with what exists in the old stringify-based tests. - **tests/ui/unpretty/expanded-interpolation.rs** — this test covers tricky macro metavariable edge cases that require the AST pretty printer to synthesize parentheses in order for the printed code to be valid Rust syntax. r? `@nnethercote`
2024-05-18Auto merge of #125077 - spastorino:add-new-fnsafety-enum2, r=jackh726bors-82/+77
Rename Unsafe to Safety Alternative to #124455, which is to just have one Safety enum to use everywhere, this opens the posibility of adding `ast::Safety::Safe` that's useful for unsafe extern blocks. This leaves us today with: ```rust enum ast::Safety { Unsafe(Span), Default, // Safe (going to be added for unsafe extern blocks) } enum hir::Safety { Unsafe, Safe, } ``` We would convert from `ast::Safety::Default` into the right Safety level according the context.
2024-05-18Add tests for -Zunpretty=expanded ported from stringify's testsDavid Tolnay-1/+1
2024-05-18Fix typos (taking into account review comments)blyxyas-25/+25
2024-05-18Migrate `run-make/rustdoc-scrape-examples-invalid-expr` to `rmake.rs`Guillaume Gomez-1/+0
2024-05-18support aligned_alloc for unixes support.David Carlier-0/+128
2024-05-17Update cargoWeihang Lo-0/+0
2024-05-18Rollup merge of #125221 - Oneirical:fourth, r=jieyouxu许杰友 Jieyou Xu (Joe)-1/+0
Migrate `run-make/issue-28766` 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).
2024-05-18Rollup merge of #125215 - Oneirical:easy-test-the-second, r=jieyouxu许杰友 Jieyou Xu (Joe)-1/+6
Migrate `run-make/issue64319` to `rmake` and rename Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). ~~I noticed that the Makefile was not listed in `allowed-run-makefiles` in Tidy. Does this mean the test was being ignored?~~ EDIT: No, it was there, just not in its expected alphabetical order. EDIT2: Perhaps it could be interesting to clean this test visually by looping over the `rustc` calls, like in #125227.
2024-05-18Rollup merge of #125213 - Oneirical:easy-test, r=jieyouxu许杰友 Jieyou Xu (Joe)-1/+0
Migrate `run-make/static-unwinding` 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). An easy one after the last one, though the explanatory comment could use some clarification.
2024-05-17Rename Unsafe to SafetySantiago Pastorino-82/+77
2024-05-17Ignore the Helix configuration directorymarc0246-0/+1
2024-05-17rewrite and rename issue-28766Oneirical-1/+0
2024-05-17Auto merge of #3603 - Luv-Ray:issue-3572, r=RalfJungbors-19/+28
Give `FileDescription::{read, write}` access to the `MiriInterpCx ` fixes #3572
2024-05-17Update allowed_run_make_makefiles.txtJulien-1/+0
2024-05-17rewrite issue64319 and renameOneirical-0/+6
2024-05-17Rewrite static-unwinding as rmake.rsOneirical-1/+0
2024-05-17Migrate `run-make/rustdoc-scrape-examples-remap` to `rmake.rs`Guillaume Gomez-1/+0
2024-05-17Correct Neovim 0.10 inlay hints config exampleAdam Szkoda-1/+1
2024-05-17Auto merge of #125178 - GuillaumeGomez:migrate-rustdoc-with-out-dir, r=jieyouxubors-2/+1
Migrate `run-make/rustdoc-with-out-dir-option` to new `rmake.rs` Part of https://github.com/rust-lang/rust/issues/121876. r? `@jieyouxu`
2024-05-17Auto merge of #3526 - Strophox:miri-memory, r=RalfJungbors-6/+119
Adjust Allocation Bytes used by Miri to custom MiriAllocBytes Previously, the `MiriMachine` used `type Bytes = Box<[u8]>` for its allocations. This PR swaps this out for a custom `MiriAllocBytes` type implemented in `alloc_bytes.rs`. This is in anticipation of an extension to Miri's FFI, which will require its allocations to take care of alignment (the methods in `impl AllocBytes for Box<[u8]>` ignore this `_align: Align` argument). Needs https://github.com/rust-lang/rust/pull/124492
2024-05-17Fix `htmldocck` functionGuillaume Gomez-1/+1
2024-05-17Migrate `run-make/rustdoc-with-out-dir-option` to new `rmake.rs`Guillaume Gomez-1/+0
2024-05-16Remove trivial Binder::dummy callsMichael Goulet-1/+1