Skip to content

Remove mutable api - #215

Merged
ChayimFriedman2 merged 5 commits into
rust-analyzer:v0.15.18from
bit-aloo:2026-07-31-remove-mutable-api
Aug 2, 2026
Merged

Remove mutable api#215
ChayimFriedman2 merged 5 commits into
rust-analyzer:v0.15.18from
bit-aloo:2026-07-31-remove-mutable-api

Conversation

@bit-aloo

@bit-aloo bit-aloo commented Jul 31, 2026

Copy link
Copy Markdown
Member

I need to make a small adaptation for rust-analyzer, though it should be pretty minor.

@bit-aloo
bit-aloo force-pushed the 2026-07-31-remove-mutable-api branch from 2b6c979 to 42b61b1 Compare July 31, 2026 06:14
@bit-aloo

bit-aloo commented Aug 2, 2026

Copy link
Copy Markdown
Member Author

cc: @ChayimFriedman2 @Veykril

@ChayimFriedman2 ChayimFriedman2 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One nit.

Comment thread src/cursor.rs Outdated
}
ptr::NonNull::new_unchecked(Box::into_raw(Box::new(res)))
}
ptr::NonNull::from(Box::leak(Box::new(res)))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ptr::NonNull::from(Box::leak(Box::new(res)))
ptr::NonNull::new_unchecked(Box::into_raw(Box::new(res)))

It is not clear whether it's okay to call Box::from_raw(Box::leak(...)).

@bit-aloo bit-aloo Aug 2, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm.. reverted back. Though I wanted to remove that unsafe, but ok.

@bit-aloo
bit-aloo force-pushed the 2026-07-31-remove-mutable-api branch from 42b61b1 to cfe7ef4 Compare August 2, 2026 03:17

@ChayimFriedman2 ChayimFriedman2 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ChayimFriedman2
ChayimFriedman2 merged commit c781c33 into rust-analyzer:v0.15.18 Aug 2, 2026
1 check passed
@bit-aloo
bit-aloo deleted the 2026-07-31-remove-mutable-api branch August 2, 2026 03:20
@ChayimFriedman2

Copy link
Copy Markdown
Contributor

Oh, we don't have merge queue for rowan? CC @Veykril.

@ChayimFriedman2

Copy link
Copy Markdown
Contributor

Oops you filled the PR against the wrong branch. I'll fix this.

@bit-aloo
bit-aloo restored the 2026-07-31-remove-mutable-api branch August 2, 2026 03:27
@ChayimFriedman2

Copy link
Copy Markdown
Contributor

I did a force-push to master, hopefully that's not a problem since rowan is not that forked and history is messed up anyway.

@ChayimFriedman2

Copy link
Copy Markdown
Contributor

Okay published 0.17.0.

@bit-aloo

bit-aloo commented Aug 2, 2026

Copy link
Copy Markdown
Member Author

I did a force-push to master, hopefully that's not a problem since rowan is not that forked and history is messed up anyway.

We removed all of v0.16 history. 😢

@ChayimFriedman2

Copy link
Copy Markdown
Contributor

Restored it under https://github.com/rust-analyzer/rowan/tree/v0.16, which is a copy of the old master branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants