about summary refs log tree commit diff
path: root/src/tools/rust-analyzer
AgeCommit message (Collapse)AuthorLines
2025-04-17Merge pull request #19614 from lnicola/macos-14-arm64Laurențiu Nicola-1/+1
internal: Build MacOS AArch64 releases on that platform
2025-04-17Merge pull request #19612 from ChayimFriedman2/parent-genericsLukas Wirth-5/+32
fix: Fix a bug with predicate lowering of associated items
2025-04-17Build MacOS AArch64 releases on that platformLaurențiu Nicola-1/+1
2025-04-17Rollup merge of #138632 - clubby789:stabilize-cfg-boolean-lit, ↵Matthias Krüger-29/+0
r=davidtwco,Urgau,traviscross Stabilize `cfg_boolean_literals` Closes #131204 `@rustbot` labels +T-lang +I-lang-nominated This will end up conflicting with the test in #138293 so whichever doesn't land first will need updating -- # Stabilization Report ## General design ### What is the RFC for this feature and what changes have occurred to the user-facing design since the RFC was finalized? [RFC 3695](https://github.com/rust-lang/rfcs/pull/3695), none. ### What behavior are we committing to that has been controversial? Summarize the major arguments pro/con. None ### Are there extensions to this feature that remain unstable? How do we know that we are not accidentally committing to those? None ## Has a call-for-testing period been conducted? If so, what feedback was received? Yes; only positive feedback was received. ## Implementation quality ### Summarize the major parts of the implementation and provide links into the code (or to PRs) Implemented in [#131034](https://github.com/rust-lang/rust/pull/131034). ### Summarize existing test coverage of this feature - [Basic usage, including `#[cfg()]`, `cfg!()` and `#[cfg_attr()]`](https://github.com/rust-lang/rust/blob/6d71251cf9e40326461f90f8ff9a7024706aea87/tests/ui/cfg/true-false.rs) - [`--cfg=true/false` on the command line being accessible via `r#true/r#false`](https://github.com/rust-lang/rust/blob/6d71251cf9e40326461f90f8ff9a7024706aea87/tests/ui/cfg/raw-true-false.rs) - [Interaction with the unstable `#[doc(cfg(..))]` feature](https://github.com/rust-lang/rust/tree/6d71251/tests/rustdoc-ui/cfg-boolean-literal.rs) - [Denying `--check-cfg=cfg(true/false)`](https://github.com/rust-lang/rust/tree/6d71251/tests/ui/check-cfg/invalid-arguments.rs) - Ensuring `--cfg false` on the command line doesn't change the meaning of `cfg(false)`: `tests/ui/cfg/cmdline-false.rs` - Ensuring both `cfg(true)` and `cfg(false)` on the same item result in it being disabled: `tests/ui/cfg/both-true-false.rs` ### What outstanding bugs in the issue tracker involve this feature? Are they stabilization-blocking? The above mentioned issue; it should not block as it interacts with another unstable feature. ### What FIXMEs are still in the code for that feature and why is it ok to leave them there? None ### Summarize contributors to the feature by name for recognition and assuredness that people involved in the feature agree with stabilization - `@clubby789` (RFC) - `@Urgau` (Implementation in rustc) ### Which tools need to be adjusted to support this feature. Has this work been done? `rustdoc`'s unstable`#[doc(cfg(..)]` has been updated to respect it. `cargo` has been updated with a forward compatibility lint to enable supporting it in cargo once stabilized. ## Type system and execution rules ### What updates are needed to the reference/specification? (link to PRs when they exist) A few lines to be added to the reference for configuration predicates, specified in the RFC.
2025-04-17Fix a bug with predicate lowering of associated itemsChayim Refael Friedman-5/+32
The essence of the bug is that bounds on `impl Trait` got lowered with incorrect bound vars, as if we were lowering the parent.
2025-04-16Use PGO on macOS x64 and arm64 buildsAlexander Zaitsev-0/+2
- realted to https://github.com/rust-lang/rust-analyzer/issues/9412#issuecomment-2810772246
2025-04-16Merge pull request #19605 from ChayimFriedman2/fix-sigChayim Refael Friedman-1/+2
minor: Fix signature of libc memory usage function on Linux
2025-04-16Fix signature of libc memory usage function on LinuxChayim Refael Friedman-1/+2
A soundness issue!
2025-04-16add semicolon to useWtz_LASR-1/+1
2025-04-16Merge pull request #19589 from roife/fix-issue-19138Lukas Wirth-0/+66
fix: highlighting for tail expr in labelled blocks
2025-04-16feat: highlight tail expr when cursor is on labelroifewu-0/+37
2025-04-16Merge pull request #19591 from snprajwal/fix-make-macroLukas Wirth-14/+21
fix: use `ast::TokenTree` in `make::expr_macro`
2025-04-16Merge pull request #19590 from roife/fix-issue-19540Lukas Wirth-0/+18
feat: add `pub(crate) mod` option for unlinked files
2025-04-16Merge pull request #19597 from Kobzol/arm-ciLukas Wirth-2/+3
Build aarch64 builds on CI with PGO
2025-04-16fix: use `ast::TokenTree` in `make::expr_macro`Prajwal S N-14/+21
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-04-16Merge pull request #19596 from roife/sig-help-infoLukas Wirth-13/+154
feat: enhance signature help to display generic parameters for callables and default values for generic args
2025-04-16Merge pull request #19588 from Hmikihiro/ext_func_moduleLukas Wirth-14/+71
fix: `Extract into` function include inline variable in fmt macro
2025-04-16Merge pull request #19587 from MatrixFrog/patch-1Lukas Wirth-1/+0
Remove incorrect doc comment
2025-04-16Pin rustc used for the `proc-macro-src` CI jobJakub Beránek-5/+13
2025-04-15Perform PGO for aarch64 buildsJakub Beránek-2/+3
2025-04-16feat: enhance signature help to display generic parameters for callables and ↵roifewu-13/+154
default values for generic args
2025-04-15Use PGO on Linux x64 buildsJakub Beránek-0/+1
2025-04-15Merge pull request #19585 from Kobzol/pgo-windowsLaurențiu Nicola-11/+53
Allow training PGO on a custom crate and enable it Windows on CI
2025-04-15Use `manylinux` Docker container instead of zigbuild for x64 LinuxJakub Beránek-1/+9
This gets us glibc 2.28 without using `cargo zigbuild`, which is not compatible with PGO.
2025-04-15Use `-q` to silence RA outputJakub Beránek-3/+1
2025-04-15Run PGO for Windows on CIJakub Beránek-0/+2
2025-04-15Allow passing a specific crate for PGO trainingJakub Beránek-10/+52
2025-04-15Fix `llvm-profdata` extension on non Linux OSesJakub Beránek-1/+1
2025-04-15feat: Add `pub(crate) mod` option for unlinked filesroifewu-0/+18
2025-04-15feat: highlight tail expression in labeled blockroifewu-0/+29
2025-04-15fix: `Extract into function include inline variable in fmt macroHayashi Mikihiro-14/+71
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-04-14Remove incorrect doc commentTyler Breisacher-1/+0
2025-04-14Merge pull request #19583 from Kobzol/revert-19582-ci-pgoLukas Wirth-2/+0
Do not perform PGO on Linux CI
2025-04-14Do not enable PGO in combination with zigbuildJakub Beránek-2/+0
2025-04-14Merge pull request #19568 from snprajwal/destructure-struct-editorLukas Wirth-99/+76
refactor: editor for `destructure_struct_binding`
2025-04-14Disable some r-a tests in bootstrap.Mara Bos-0/+2
2025-04-14Merge pull request #19572 from snprajwal/expand-rest-patternLukas Wirth-53/+66
refactor: migrate `expand_rest_pattern` to editor
2025-04-14Merge pull request #19582 from Kobzol/ci-pgoLukas Wirth-9/+104
Distribute x64 and aarch64 Linux builds with PGO optimizations
2025-04-14Merge pull request #19569 from snprajwal/fixmesLukas Wirth-75/+79
fix(ast): return correct types for `make::expr_*` methods
2025-04-14Merge pull request #19578 from clouds56-contrib/drive-letterLukas Wirth-12/+35
add normalizeDriveLetter
2025-04-14Merge pull request #19521 from snprajwal/ciLukas Wirth-4/+16
ci: cancel parallel jobs if test fails
2025-04-14Merge pull request #19579 from ChayimFriedman2/cyclic-closureLukas Wirth-7/+65
fix: Prevent panics when there is a cyclic dependency between closures
2025-04-14Use PGO for x64 and aarch64 Linux builds on CIJakub Beránek-3/+6
2025-04-14Add `xdist dist --pgo` command to build Rust Analyzer with PGO optimizationsJakub Beránek-6/+98
2025-04-14Prevent panics when there is a cyclic dependency between closuresChayim Refael Friedman-7/+65
We didn't include them in the sorted closures list, therefore didn't analyze them, then failed to find them.
2025-04-14fix formatClouds Flowing-2/+8
2025-04-14add normalizeDriveLetterClouds Flowing-12/+29
2025-04-14Ignore errors from rustfmt which may trigger error notificationyukang-1/+5
2025-04-13internal: Render sigantures with view hir commandLukas Wirth-44/+146
2025-04-12ci: cancel parallel jobs if test failsPrajwal S N-4/+16
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>