Skip to content

[pull] master from rust-lang:master#97

Merged
pull[bot] merged 68 commits intolinyihai:masterfrom
rust-lang:master
May 5, 2025
Merged

[pull] master from rust-lang:master#97
pull[bot] merged 68 commits intolinyihai:masterfrom
rust-lang:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull bot commented May 5, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.1)

Can you help keep this open source service alive? 💖 Please sponsor : )

alibektas and others added 30 commits March 19, 2025 01:45
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.
As it is a valid lifetime without escaping.

It does need to be escaped as a label, but we have no way to distinguish that.
Add expression fill mode variant for filling with underscore expressions
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
Also ensures that attributes on the use item are applied to the new use
item when unmerging.

Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
Co-authored-by: Tarek <tareknaser360@gmail.com>
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
refactor: `merge_imports` and `unmerge_imports` to editor
refactor: migrate `let_else_to_match` to editor
refactor: De-arc lang item queries
…etails-to-panic

base-db: add more details to panic
fix: Escape raw names in labels properly
refactor: Clean up cache priming cancellation handling
refactor: Cleanup cfg check handling in expression store lowering
refactor: Remove unnecessary extension trait
lnicola and others added 28 commits May 1, 2025 10:21
refactor: Simplify macro call id construction
fix: Correct assoc ty bound var starting index
fix: Implement mut to const ptr cast for method resolution
Disable fixpoint for variance computation temporarily
Remove global `next_disambiguator` state and handle it with a `DisambiguatorState` type

This removes `Definitions.next_disambiguator` as it doesn't guarantee deterministic def paths when `create_def` is called in parallel. Instead a new `DisambiguatorState` type is passed as a mutable reference to `create_def` to help create unique def paths. `create_def` calls with distinct  `DisambiguatorState` instances must ensure that that the def paths are unique without its help.

Anon associated types did rely on this global state for uniqueness and are changed to use (method they're defined in + their position in the method return type) as the `DefPathData` to ensure uniqueness. This also means that the method they're defined in appears in error messages, which is nicer.

`DefPathData::NestedStatic` is added to use for nested data inside statics instead of reusing `DefPathData::AnonConst` to avoid conflicts with those.

cc `@oli-obk`
Subtree update of `rust-analyzer`

r? `@ghost`
@pull pull bot added the ⤵️ pull label May 5, 2025
@pull pull bot merged commit 0f73f0f into linyihai:master May 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.