-
Notifications
You must be signed in to change notification settings - Fork 2k
Feature request: refactor support for adding a new argument #6499
Copy link
Copy link
Open
Labels
A-assistsC-featureCategory: feature requestCategory: feature requestE-hardE-has-instructionsIssue has some instructions and pointers to code to get startedIssue has some instructions and pointers to code to get startedS-actionableSomeone could pick this issue up and work on it right nowSomeone could pick this issue up and work on it right nowfunA technically challenging issue with high impactA technically challenging issue with high impact
Description
I have a function that looks like this:
pub fn from_hir_id_and_parts(hir_id: hir::HirId, inner: ItemEnum, cx: &DocContext<'_>) -> Item {and I want to turn it into this:
pub fn from_hir_id_and_parts(hir_id: hir::HirId, inner: ItemEnum, name: Symbol, cx: &DocContext<'_>) -> Item {It would be nice to have refactor support that automatically added name as an argument everywhere this function is called. It's ok if the resulting code doesn't compile, it gets me close enough that I get useful compile errors instead of 'wrong number of arguments'.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-assistsC-featureCategory: feature requestCategory: feature requestE-hardE-has-instructionsIssue has some instructions and pointers to code to get startedIssue has some instructions and pointers to code to get startedS-actionableSomeone could pick this issue up and work on it right nowSomeone could pick this issue up and work on it right nowfunA technically challenging issue with high impactA technically challenging issue with high impact
Type
Fields
Give feedbackNo fields configured for issues without a type.