Skip to content

Feature request: refactor support for adding a new argument #6499

@jyn514

Description

@jyn514

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'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-assistsC-featureCategory: feature requestE-hardE-has-instructionsIssue has some instructions and pointers to code to get startedS-actionableSomeone could pick this issue up and work on it right nowfunA technically challenging issue with high impact

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions