Skip to content

librustc: Allow moves out of self - #4147

Closed
pcwalton wants to merge 1 commit into
rust-lang:incomingfrom
pcwalton:move-self
Closed

librustc: Allow moves out of self#4147
pcwalton wants to merge 1 commit into
rust-lang:incomingfrom
pcwalton:move-self

Conversation

@pcwalton

Copy link
Copy Markdown
Contributor

@nikomatsakis

Copy link
Copy Markdown
Contributor

r+ --- but it would be nice to have some tests with non-implicitly-copyable receivers (which should be implicitly moved, I guess)

@pcwalton pcwalton closed this Dec 13, 2012
RalfJung pushed a commit to RalfJung/rust that referenced this pull request Jan 26, 2025
U007D pushed a commit to U007D/rust-mos that referenced this pull request Aug 21, 2026
4167: Filter out code actions if unsupported by the client and advertise our capabilities r=matklad a=kjeremy

This PR does three things:
1. If the client does not support `CodeActionKind` this will filter the results and only send `Command[]` back.
2. Correctly advertises to the client that the server supports `CodeActionKind`. This may cause clients to not request code actions if they are checking for the provider to be `true` (or implement LSP < 3.8) in the caps but I will fix that in a followup PR.
3. Marks most CodeActions as <strike>"refactor" so that they show up in the menu in vscode.</strike>`""`.

Part of rust-lang#144
rust-lang#4147 
rust-lang#2833  

Co-authored-by: kjeremy <kjeremy@gmail.com>
U007D pushed a commit to U007D/rust-mos that referenced this pull request Aug 21, 2026
5116: Categorize assists r=matklad a=kjeremy

Categorize assists so that editors can use them. Follows the LSP spec pretty close (and some things may need adjustments) but this populates the Refactor menu in vscode and pushes quickfixes through again.

This is a prerequisite to filtering out assists that the client doesn't care about.

Fixes rust-lang#4147

Co-authored-by: Jeremy Kolb <kjeremy@gmail.com>
Co-authored-by: kjeremy <kjeremy@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants