about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2024-10-23Merge pull request #18264 from ChayimFriedman2/semi-transparentLukas Wirth-164/+671
fix: Implement mixed site hygiene
2024-10-23fix dyn incompatible hint messageusamoi-1/+1
2024-10-23Merge pull request #18376 from Veykril/veykril/push-ptmnsoqzsmqkLukas Wirth-63/+93
feat: Add text edits to more inlay hints
2024-10-23Don't emit edits for postfix adjustment hintsLukas Wirth-23/+28
2024-10-23nightly feature tracking: get rid of the per-feature bool fieldsRalf Jung-3/+3
2024-10-23Add text edit to implicit 'static hintsLukas Wirth-1/+2
2024-10-23Add text edit to discriminant hintsLukas Wirth-5/+6
2024-10-23Add text edit to binding mode hintsLukas Wirth-36/+38
2024-10-23Add text edit to adjustment hintsLukas Wirth-21/+42
2024-10-22Address review comments on wasm32v1-none targetGraydon Hoare-0/+1
2024-10-22Represent TraitBoundModifiers as distinct parts in HIRMichael Goulet-14/+26
2024-10-22Correctly resolve variables and labels from before macro definition in macro ↵Chayim Refael Friedman-50/+287
expansion E.g.: ```rust let v; macro_rules! m { () => { v }; } ``` This was an existing bug, but it was less severe because unless the variable was shadowed it would be correctly resolved. With hygiene however, without this fix the variable is never resolved.
2024-10-22Implement semitransparent hygieneChayim Refael Friedman-124/+394
Or macro_rules hygiene, or mixed site hygiene. In other words, hygiene for variables and labels but not items. The realization that made me implement this was that while "full" hygiene (aka. def site hygiene) is really hard for us to implement, and will likely involve intrusive changes and performance losses, since every `Name` will have to carry hygiene, mixed site hygiene is very local: it applies only to bodies, and we very well can save it in a side map with minor losses. This fixes one diagnostic in r-a that was about `izip!()` using hygiene (yay!) but it introduces a huge number of others, because of #18262. Up until now this issue wasn't a major problem because it only affected few cases, but with hygiene identifiers referred by macros like that are not resolved at all. The next commit will fix that.
2024-10-22Merge pull request #18254 from ChayimFriedman2/fix-mutLukas Wirth-860/+1171
fix: Nail destructuring assignment once and for all
2024-10-22Add test for tuple struct destructuring assignment where the path comes from ↵Chayim Refael Friedman-0/+34
a macro
2024-10-22s/display-diff-tool/compiletest-diff-tool/Orion Gonzalez-2/+3
2024-10-22update CONFIG_CHANGE_HISTORYOrion Gonzalez-3/+7
2024-10-22implemented custom differOrion Gonzalez-39/+51
2024-10-22add an option for a custom differOrion Gonzalez-0/+3
2024-10-22docs: remove unnecessary prerequisites setup.mdDavid Kurilla-9/+3
2024-10-22Merge binding_mode inlay hints into oneLukas Wirth-11/+29
2024-10-22Merge adjustment inlay hints into oneLukas Wirth-145/+83
2024-10-22Merge closure capture inlay hints into oneLukas Wirth-90/+41
2024-10-22Auto merge of #132035 - matthiaskrgr:rollup-ty1e4q0, r=matthiaskrgrbors-65/+56
Rollup of 8 pull requests Successful merges: - #125205 (Fixup Windows verbatim paths when used with the `include!` macro) - #131049 (Validate args are correct for `UnevaluatedConst`, `ExistentialTraitRef`/`ExistentialProjection`) - #131549 (Add a note for `?` on a `impl Future<Output = Result<..>>` in sync function) - #131731 (add `TestFloatParse` to `tools.rs` for bootstrap) - #131732 (Add doc(plugins), doc(passes), etc. to INVALID_DOC_ATTRIBUTES) - #132006 (don't stage-off to previous compiler when CI rustc is available) - #132022 (Move `cmp_in_dominator_order` out of graph dominator computation) - #132033 (compiletest: Make `line_directive` return a `DirectiveLine`) r? `@ghost` `@rustbot` modify labels: rollup
2024-10-22Rollup merge of #132033 - Zalathar:directive-line, r=jieyouxuMatthias Krüger-65/+56
compiletest: Make `line_directive` return a `DirectiveLine` This reduces the need to juggle raw tuples, and opens up the possibility of moving more parts of directive parsing into `line_directive`. In order to make the main change possible, this PR also (partly) separates the debugger-command parsing from the main directive parser. That cleanup removes support for `[rev]` in debugger commands, which is not used by any tests.
2024-10-22Merge pull request #18372 from Kobzol/ci-merge-queueMarco Ieni-20/+17
Switch CI from bors to merge queues
2024-10-22Auto merge of #18370 - duncpro:goto-def-ranges, r=Veykrilbors-8/+124
feat: resolve range patterns to their structs Closes #18367
2024-10-22Auto merge of #18368 - Veykril:test-lsif_contains_generated_macros, r=lnicolabors-17/+199
tests: Add `lsif_contains_generated_constant` test Closes https://github.com/rust-lang/rust-analyzer/pull/18309
2024-10-22Switch CI from bors to merge queuesJakub Beránek-20/+17
2024-10-22Auto merge of #18349 - dqkqd:issue-18344, r=Veykrilbors-1/+166
feat: render docs from aliased type when type has no docs Trying to close #18344 - [x] ~Find the docs by traversing upwards if the type itself has none but aliasing for another type that might have.~ - [x] Show docs from aliased type. - [x] Showing description that we are displaying documentation for different definition in hover box. ![image](https://github.com/user-attachments/assets/820d6f97-aa2c-4dc4-8a25-75746e32d950)
2024-10-22tests/run-make: port `issue-84395-lto-embed-bitcode` to rmake.rs许杰友 Jieyou Xu (Joe)-1/+0
Co-authored-by: Oneirical <manchot@videotron.ca>
2024-10-22run-make-support: add `llvm-dis` and `llvm-objcopy`许杰友 Jieyou Xu (Joe)-4/+73
2024-10-22run_make_support: allow obtaining raw stdout/stderr许杰友 Jieyou Xu (Joe)-0/+18
And match `stdout/stderr` lossy UTF-8 helpers.
2024-10-22Auto merge of #18371 - Veykril:veykril/push-kwttrusywysp, r=Veykrilbors-25/+184
fix: Fix incorrect parsing of use bounds Fixes https://github.com/rust-lang/rust-analyzer/issues/18357
2024-10-22fix: Fix incorrect parsing of use boundsLukas Wirth-25/+184
Also lower them a bit more
2024-10-22feat: render docs from aliased type when docs are missingKhanh Duong Quoc-1/+166
2024-10-22Merge pull request #3981 from Kobzol/ci-merge-queueMarco Ieni-23/+16
Switch CI to merge queues
2024-10-22Auto merge of #131321 - RalfJung:feature-activation, r=nnethercotebors-5/+1
terminology: #[feature] *enables* a feature (instead of "declaring" or "activating" it) Mostly, we currently call a feature that has a corresponding `#[feature(name)]` attribute in the current crate a "declared" feature. I think that is confusing as it does not align with what "declaring" usually means. Furthermore, we *also* refer to `#[stable]`/`#[unstable]` as *declaring* a feature (e.g. in [these diagnostics](https://github.com/rust-lang/rust/blob/f25e5abea229a6b6aa77b45e21cb784e785c6040/compiler/rustc_passes/messages.ftl#L297-L301)), which aligns better with what "declaring" usually means. To make things worse, the functions `tcx.features().active(...)` and `tcx.features().declared(...)` both exist and they are doing almost the same thing (testing whether a corresponding `#[feature(name)]` exists) except that `active` would ICE if the feature is not an unstable lang feature. On top of this, the callback when a feature is activated/declared is called `set_enabled`, and many comments also talk about "enabling" a feature. So really, our terminology is just a mess. I would suggest we use "declaring a feature" for saying that something is/was guarded by a feature (e.g. `#[stable]`/`#[unstable]`), and "enabling a feature" for `#[feature(name)]`. This PR implements that.
2024-10-22tidyDuncan Proctor-2/+1
2024-10-22Make `line_directive` return a `DirectiveLine`Zalathar-15/+20
This reduces the need to juggle raw tuples, and opens up the possibility of moving more parts of directive parsing into `line_directive`.
2024-10-22Rename some fields of `DirectiveLine`Zalathar-23/+27
2024-10-22Switch CI to merge queuesJakub Beránek-23/+16
2024-10-22tidyDuncan Proctor-5/+5
2024-10-22Stop using `line_directive` in `runtest::debugger`Zalathar-30/+12
This also removes unused support for `[rev]` in debugger commands, and makes breakpoint detection slightly more sensible.
2024-10-22remove duplicate testDuncan Proctor-16/+0
2024-10-22resolve range patterns to the their struct typesDuncan Proctor-8/+141
2024-10-22Fix new nightly lintsLukas Wirth-51/+81
2024-10-22tests: Add `lsif_contains_generated_constant` testJohann Hemmann-17/+199
2024-10-22Cleanup file structure proto handlingLukas Wirth-10/+3
2024-10-22Fix status bar messagen not being marked markdownLukas Wirth-1/+1