about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/xtask
AgeCommit message (Collapse)AuthorLines
2025-06-13`cargo upgrade`Lukas Wirth-3/+3
2025-05-31fix: Fix manual not containing diagnostics documentationLukas Wirth-2/+2
2025-05-20Merge from rust-lang/rustLaurențiu Nicola-0/+1
2025-05-16Bump zip to 3.0Laurențiu Nicola-1/+1
2025-05-06Rollup merge of #140035 - fee1-dead-contrib:push-oszwkkvmpkks, ↵Stuart Cook-0/+1
r=jieyouxu,wesleywiser Implement RFC 3503: frontmatters Tracking issue: #136889 Supercedes #137193. This implements [RFC 3503](https://github.com/rust-lang/rfcs/blob/master/text/3503-frontmatter.md). This might break rust-analyzer. Will look into how to fix that. Suggestions welcome for how to improve diagnostics.
2025-05-05Implement RFC 3503: frontmattersDeadbeef-0/+1
Supercedes #137193
2025-04-29Update salsaLukas Wirth-1/+1
2025-04-29Merge pull request #19685 from fbernier/pgo-installLukas Wirth-132/+175
Add PGO support to install
2025-04-28Add expression fill mode variant for filling with underscore expressionsLukas Wirth-3/+3
2025-04-25Add PGO support to installFrançois Bernier-132/+175
Enable PGO optimizations when installing rust-analyzer with the --pgo flag. This mirrors functionality already available in dist command, allowing developers to create optimized local builds. Example: cargo xtask install --server --pgo clap-rs/clap PGO code has been extracted to a dedicated module for reuse.
2025-04-18Support specific revisions for pgoLaurențiu Nicola-6/+14
2025-04-15Use `-q` to silence RA outputJakub Beránek-3/+1
2025-04-15Allow passing a specific crate for PGO trainingJakub Beránek-8/+50
2025-04-15Fix `llvm-profdata` extension on non Linux OSesJakub Beránek-1/+1
2025-04-14Add `xdist dist --pgo` command to build Rust Analyzer with PGO optimizationsJakub Beránek-6/+98
2025-04-09Merge pull request #19462 from Veykril/push-ypvprvvwkyllLukas Wirth-2/+11
refactor: Lower type-refs before type inference
2025-04-09refactor: Lower type-refs before type inferenceLukas Wirth-2/+11
This refactors how we deal with items in hir-def lowering. - It now lowers all of them through an "ExpressionStore" (kind of a misnomer as this point) as their so called *Signatures. - We now uniformly lower type AST into TypeRefs before type inference. - Likewise, this moves macro expansion out of type inference, resulting in a single place where we do non-defmap macro expansion. - Finally, this PR removes a lot of information from ItemTree, making the DefMap a lot less likely to be recomputed and have it only depend on actual early name resolution related information (not 100% true, we still have ADT fields in there but thats a follow up removal).
2025-04-07Merge pull request #19511 from snprajwal/fixmesLukas Wirth-32/+28
chore: clean up some FIXMEs
2025-04-04prefer default over newBenjaminBrienen-5/+7
2025-04-04chore: clean up some FIXMEsPrajwal S N-32/+28
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-03-25ci: Require miri stepLukas Wirth-1/+1
2025-03-23Use zip/deflate-flate2 to avoid BSL-1.0 depLaurențiu Nicola-1/+1
2025-03-23chore: Bump dependenciesLukas Wirth-10/+10
2025-03-21refactor: Reduce codegen burden for `SyntaxNode` and `SyntaxToken`Lukas Wirth-7/+84
2025-03-21refactor: Reduce codegen burden for `SyntaxKind`Lukas Wirth-5/+46
2025-03-17fix(codegen): do not generate docs with `--check`Prajwal S N-7/+18
Running `cargo codegen --check` should not generate any mdbook files, since they are ignored in the repo and used only while releasing a new copy of the documentation. Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-03-15cargo xtask tidyBenjaminBrienen-1/+1
2025-03-15cargo fmtBenjaminBrienen-37/+39
2025-03-15edition = "2024"BenjaminBrienen-1/+1
2025-03-15chore: Drop legacy salsaLukas Wirth-2/+1
2025-03-10internal: port rust-analyzer to new SalsaDavid Barsky-3/+2
2025-03-10internal: vendor `query-group-macro`David Barsky-0/+1
2025-02-26Use cargo zigbuild for releasesLaurențiu Nicola-10/+24
2025-02-23Fix codegen of parser inline tests runnerniller-g-57/+55
When running `cargo codegen` the `crates/parser/test_data/generated/runner.rs` file is only updated when some file in `crates/parser/test_data/inline` changes. However this is not sufficient in all cases
2025-02-23Fix parser inline tests codegen panicsniller-g-13/+10
When running `cargo codegen` the cwd="rust-analyzer" however when running `cargo test` the cwd="rust-analyzer/xtask" which makes the codegen panic
2025-02-19missed the L for the line numberJosh Rotenberg-1/+1
2025-02-19Merge pull request #19180 from joshrotenberg/fix-source-file-urlLukas Wirth-1/+7
doc: use fully qualified url for source path
2025-02-18use fully qualified url for source pathJosh Rotenberg-1/+7
2025-02-18Fix dead linkBenjamin Brienen-1/+1
2025-02-17move dev docs to manualJosh Rotenberg-2/+3
fix formatting
2025-02-11manual: Fix URLs to rustdoc pagesWilfred Hughes-1/+1
Now that the manual lives at /manual/, we need to use absolute URLs to link to rustdoc content.
2025-02-05Bump proc-macro2 in xtaskLukas Wirth-2/+4
2025-02-01Stop running some release workflows on forks and update old URLsLaurențiu Nicola-7/+7
2025-01-24manual: Convert to mdbookWilfred Hughes-48/+18
Split manual.adoc into markdown files, one for each chapter. For the parts of the manual that are generated from source code doc comments, update the comments to use markdown syntax and update the code generators to write to `generated.md` files. For the weekly release, stop copying the .adoc files to the `rust-analyzer/rust-analyzer.github.io` at release time. Instead, we'll sync the manual hourly from this repository. See https://github.com/rust-analyzer/rust-analyzer.github.io/pull/226 for the sync. This PR should be merged first, and that PR needs to be merged before the next weekly release. This change is based on #15795, but rebased and updated. I've also manually checked each page for markdown syntax issues and fixed any I encountered. Co-authored-by: Lukas Wirth <lukastw97@gmail.com> Co-authored-by: Josh Rotenberg <joshrotenberg@gmail.com>
2025-01-06minor: New clippy lintsLukas Wirth-1/+1
2024-12-30Add a function to convert a SyntaxKind to its text, where possibleChayim Refael Friedman-0/+16
This will also help for the make's quote macro.
2024-12-30Generate a method for static retrieval of the SyntaxKind of a node, where ↵Chayim Refael Friedman-0/+7
possible This will help for the quote macro for `ast::make`.
2024-12-29Enforce a current directory being set for spawned commandsLukas Wirth-1/+6
2024-12-20internal: Split serde derive feature into `serde_derive` usageLukas Wirth-1/+2
Ideally we'd not have any dependency pull in the derive feature for faster build times, once that is the case this change would have an actual effect. See https://github.com/matklad/macro-dep-test/blob/master/README.md for context.
2024-12-11Properly handle different defaults for severity of lintsChayim Refael Friedman-77/+304
Previously all lints were assumed to be `#[warn]`, and we had a hand-coded list of `#[allow]` exceptions. Now the severity is autogenerated from rustdoc output. Also support lints that change status between editions, and the `warnings` lint group.