Skip to content

Add std::ptr::RawMutPtr to prelude #18196

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
qrlpx opened this issue Oct 20, 2014 · 0 comments · Fixed by #18393
Closed

Add std::ptr::RawMutPtr to prelude #18196

qrlpx opened this issue Oct 20, 2014 · 0 comments · Fixed by #18393

Comments

@qrlpx
Copy link

qrlpx commented Oct 20, 2014

std::ptr::RawPtr is already there.

lnicola pushed a commit to lnicola/rust that referenced this issue Oct 8, 2024
…kril

internal: Add `SyntaxFactory` to ease generating nodes with syntax mappings

Part of [#​15710](rust-lang/rust-analyzer#15710)

Instead of requiring passing a `&mut SyntaxEditor` to every make constructor to generate mappings, we instead wrap that logic in `SyntaxFactory`, and afterwards add all the mappings to the `SyntaxEditor`.

Includes an example of using `SyntaxEditor` & `SyntaxFactory` in the `extract_variable` assist.
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 a pull request may close this issue.

1 participant