Skip to content

Offer replace_arith on references to ints - #23109

Merged
A4-Tacks merged 3 commits into
rust-lang:masterfrom
ronnodas:replace-arith-ref
Aug 12, 2026
Merged

Offer replace_arith on references to ints#23109
A4-Tacks merged 3 commits into
rust-lang:masterfrom
ronnodas:replace-arith-ref

Conversation

@ronnodas

Copy link
Copy Markdown
Contributor

Currently the `Replace arithmetic" assist is only offered when both operands are integers types, but it should be also applicable when they are references to such.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 10, 2026

@A4-Tacks A4-Tacks left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This intersects with #22225, I think this should be merged after #22225 is merged

View changes since this review

Comment thread crates/ide-assists/src/handlers/replace_arith_op.rs Outdated
@rustbot

This comment has been minimized.

@rustbot

rustbot commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@A4-Tacks
A4-Tacks added this pull request to the merge queue Aug 12, 2026
Merged via the queue into rust-lang:master with commit 97066c3 Aug 12, 2026
18 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 12, 2026
@ronnodas
ronnodas deleted the replace-arith-ref branch August 12, 2026 01:31
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.

3 participants