about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2024-05-28Fix "local crate" detectionPaul Gey-11/+9
`PackageId` is an opaque identifier whose internal format is subject to change, so looking up the names of local crates by ID is more robust than parsing the ID. Resolves #3643.
2024-05-28rewrite incr-prev-body-beyond-eof in rmakeOneirical-1/+0
2024-05-28Update cargoWeihang Lo-0/+0
2024-05-28add `FlycheckStatus` to global stateDavid Mládek-7/+34
2024-05-28rewrite resolve-rename in rmakeOneirical-1/+6
2024-05-28Add Miri smoke pass test for ptr_metadata intrinsicScott McMurray-1/+7
2024-05-28Add Miri tests for `PtrMetadata` UBScott McMurray-0/+142
2024-05-28move ./miri environment variables to CONTRIBUTINGRalf Jung-16/+22
2024-05-28Rollup merge of #125573 - ↵Matthias Krüger-1/+11
GuillaumeGomez:migrate-allow-warnings-cmdline-stability, r=jieyouxu Migrate `run-make/allow-warnings-cmdline-stability` to `rmake.rs` Part of https://github.com/rust-lang/rust/issues/121876. r? ``@jieyouxu``
2024-05-28Rewrite simple-rlib to rmakeOneirical-1/+0
2024-05-28Create const block DefIds in typeck instead of ast loweringOli Scherer-9/+33
2024-05-28Make more of the test suite run on Mac CatalystMads Marquart-5/+11
This adds the `only-apple`/`ignore-apple` compiletest directive, and uses that basically everywhere instead of `only-macos`/`ignore-macos`. Some of the updates in `run-make` are a bit redundant, as they use `ignore-cross-compile` and won't run on iOS - but using Apple in these is still more correct, so I've made that change anyhow.
2024-05-28Migrate `run-make/allow-warnings-cmdline-stability` to `rmake.rs`Guillaume Gomez-1/+0
2024-05-28Add `assert_not_contains` to `run-make-support` libraryGuillaume Gomez-0/+11
2024-05-28fix diagnostics clearing when flychecks run per-workspaceDavid Mládek-6/+6
2024-05-28Merge from rustcThe Miri Cronjob Bot-10/+94
2024-05-28Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-05-28Fix run-make-support doc errorsChris Denton-3/+3
error: redundant explicit link target because label contains path that resolves to same destination
2024-05-27rewrite mixing-deps in rmakeOneirical-1/+0
2024-05-27rewrite lto-smoke to rmakeOneirical-1/+0
2024-05-27miri: avoid making a full copy of all new allocationsRalf Jung-37/+19
2024-05-27Rollup merge of #125616 - RalfJung:mir-validate-downcast-projection, ↵Matthias Krüger-1/+1
r=compiler-errors MIR validation: ensure that downcast projection is followed by field projection Cc https://github.com/rust-lang/rust/issues/120369
2024-05-27Rollup merge of #125542 - ↵Matthias Krüger-2/+78
GuillaumeGomez:migrate-rustdoc-verify-output-files, r=jieyouxu Migrate rustdoc verify output files Part of https://github.com/rust-lang/rust/issues/121876. r? ```@jieyouxu```
2024-05-27Rollup merge of #125339 - tbu-:pr_tidy_ui_tests_u32, r=clubby789Matthias Krüger-4/+4
The number of tests does not depend on the architecture's pointer width Use `u32` instead of `usize` for counting them.
2024-05-27Auto merge of #17258 - maxwase:code-assist-async-sugar, r=Veykrilbors-0/+644
Add `toggle_async_sugar` assist code action Implement code action for sugaring and de-sugaring asynchronous functions. This code action does not import `Future` trait when de-sugaring and does not touch function boby, I guess this can be implemented later if needed. This action also does not take into consideration other bounds because IMO it's usually "let me try to use sugared version here". Feel free to request changes, that's my first code action implementation 😄 Closes #17010 Relates to #16195
2024-05-27Auto merge of #17253 - ThouCheese:master, r=Veykrilbors-0/+702
Implement assist to switch between doc and normal comments Hey first PR to rust-analyzer to get my feet wet with the code base. It's an assist to switch a normal comment to a doc comment and back, something I've found myself doing by hand a couple of times. I shamelessly stole `relevant_line_comments` from `convert_comment_block`, because I didn't see any inter-assist imports happening in the files I peeked at so I thought this would be preferable.
2024-05-27Auto merge of #17291 - kilpkonn:master, r=Veykrilbors-5/+19
Fix `data_constructor` ignoring generics for struct Previously didn't work for structs with generics due to `field.ty()` having placeholders in type. _Enums were handeled correctly already._ Also renamed `type_constructor -> data_constructor` as this is more correct name for it
2024-05-27also add type aliases for the pointer typesRalf Jung-148/+105
2024-05-27avoid repeating the Provenance parameter everywhereRalf Jung-709/+585
2024-05-27fmtRalf Jung-54/+16
2024-05-27Merge from rustcRalf Jung-1885/+2505
2024-05-27Preparing for merge from rustcRalf Jung-1/+1
2024-05-27MIR validation: ensure that downcast projection is followed by field projectionRalf Jung-1/+1
2024-05-27Auto merge of #125611 - GuillaumeGomez:rollup-dfavpgg, r=GuillaumeGomezbors-3/+11
Rollup of 7 pull requests Successful merges: - #124870 (Update Result docs to the new guarantees) - #125148 (codegen: tweak/extend shift comments) - #125522 (Add "better" edition handling on lint-docs tool) - #125530 (cleanup dependence of `ExtCtxt` in transcribe when macro expansion) - #125535 (clean-up: remove deprecated field `dist.missing-tools`) - #125597 (Uplift `EarlyBinder` into `rustc_type_ir`) - #125607 (Migrate `run-make/compile-stdin` to `rmake.rs`) r? `@ghost` `@rustbot` modify labels: rollup
2024-05-27Migrate `run-make/rustdoc-verify-output-files` to `rmake.rs`Guillaume Gomez-1/+0
2024-05-27Add `Rustdoc::output_format`Guillaume Gomez-0/+7
2024-05-27Add file path in case it cannot be read in `Diff::actual_file`Guillaume Gomez-1/+4
2024-05-27Add `copy_dir_all` and `recursive_diff` functions to `run-make-support`Guillaume Gomez-0/+67
2024-05-27Rollup merge of #125607 - GuillaumeGomez:migrate-compile-stdin, r=jieyouxuGuillaume Gomez-1/+0
Migrate `run-make/compile-stdin` to `rmake.rs` Part of https://github.com/rust-lang/rust/issues/121876. r? `@jieyouxu`
2024-05-27Rollup merge of #125522 - spastorino:fix-lint-docs-edition-handling, ↵Guillaume Gomez-2/+11
r=Urgau,michaelwoerister Add "better" edition handling on lint-docs tool r? `@Urgau`
2024-05-27Auto merge of #125602 - RalfJung:interpret-mir-lifetime, r=oli-obkbors-505/+458
interpret: get rid of 'mir lifetime I realized our MIR bodies are actually at lifetime `'tcx`, so we don't need to carry around this other lifetime everywhere. r? `@oli-obk`
2024-05-27Migrate `run-make/compile-stdin` to `rmake.rs`Guillaume Gomez-1/+0
2024-05-27Auto merge of #125410 - fmease:adj-lint-diag-api, r=nnethercotebors-12/+18
[perf] Delay the construction of early lint diag structs Attacks some of the perf regressions from https://github.com/rust-lang/rust/pull/124417#issuecomment-2123700666. See individual commits for details. The first three commits are not strictly necessary. However, the 2nd one (06bc4fc67145e3a7be9b5a2cf2b5968cef36e587, *Remove `LintDiagnostic::msg`*) makes the main change way nicer to implement. It's also pretty sweet on its own if I may say so myself.
2024-05-27Auto merge of #125468 - BoxyUwU:remove_defid_from_regionparam, r=compiler-errorsbors-10/+9
Remove `DefId` from `EarlyParamRegion` Currently we represent usages of `Region` parameters via the `ReEarlyParam` or `ReLateParam` variants. The `ReEarlyParam` is effectively equivalent to `TyKind::Param` and `ConstKind::Param` (i.e. it stores a `Symbol` and a `u32` index) however it also stores a `DefId` for the definition of the lifetime parameter. This was used in roughly two places: - Borrowck diagnostics instead of threading the appropriate `body_id` down to relevant locations. Interestingly there were already some places that had to pass down a `DefId` manually. - Some opaque type checking logic was using the `DefId` field to track captured lifetimes I've split this PR up into a commit for generate rote changes to diagnostics code to pass around a `DefId` manually everywhere, and another commit for the opaque type related changes which likely require more careful review as they might change the semantics of lints/errors. Instead of manually passing the `DefId` around everywhere I previously tried to bundle it in with `TypeErrCtxt` but ran into issues with some call sites of `infcx.err_ctxt` being unable to provide a `DefId`, particularly places involved with trait solving and normalization. It might be worth investigating adding some new wrapper type to pass this around everywhere but I think this might be acceptable for now. This pr also has the effect of reducing the size of `EarlyParamRegion` from 16 bytes -> 8 bytes. I wouldn't expect this to have any direct performance improvement however, other variants of `RegionKind` over `8` bytes are all because they contain a `BoundRegionKind` which is, as far as I know, mostly there for diagnostics. If we're ever able to remove this it would shrink the `RegionKind` type from `24` bytes to `12` (and with clever bit packing we might be able to get it to `8` bytes). I am curious what the performance impact would be of removing interning of `Region`'s if we ever manage to shrink `RegionKind` that much. Sidenote: by removing the `DefId` the `Debug` output for `Region` has gotten significantly nicer. As an example see this opaque type debug print before vs after this PR: `Opaque(DefId(0:13 ~ impl_trait_captures[aeb9]::foo::{opaque#0}), [DefId(0:9 ~ impl_trait_captures[aeb9]::foo::'a)_'a/#0, T, DefId(0:9 ~ impl_trait_captures[aeb9]::foo::'a)_'a/#0])` `Opaque(DefId(0:13 ~ impl_trait_captures[aeb9]::foo::{opaque#0}), ['a/#0, T, 'a/#0])` r? `@compiler-errors` (I would like someone who understands the opaque type setup to atleast review the type system commit, but the rest is likely reviewable by anyone)
2024-05-27interpret: get rid of 'mir lifetime everywhereRalf Jung-493/+440
2024-05-27interpret: the MIR is actually at lifetime 'tcxRalf Jung-23/+29
2024-05-27Auto merge of #125580 - RalfJung:miri-sync, r=RalfJungbors-1192/+1138
Miri subtree update r? `@ghost`
2024-05-26Auto merge of #125576 - lnicola:sync-from-ra, r=lnicolabors-1321/+1974
Subtree update of `rust-analyzer` r? `@ghost`
2024-05-26Auto merge of #3634 - RalfJung:macro_use, r=RalfJungbors-11/+13
avoid using macro_use This is the Miri version of https://github.com/rust-lang/rust/pull/124914
2024-05-26avoid using macro_useRalf Jung-11/+13