Skip to content

renaming library/std items gets InvalidParams: Cannot rename non-local definition #17633

Closed
@workingjubilee

Description

@workingjubilee

Not all types inside libstd have set-in-stone names that cannot be changed: some are in fact quite arbitrary and deeply internal. It seems that because r-a precomputes CrateOrigin::Lang for std, rename-refactors will never work in libstd. This is because of #15232 I presume.

The "problem" is just that this is a very funny answer when the crate that you have a file open from is uhhh, rust/library/std and the file is library/std/src/sys/pal/unix/stack_overflow.rs and such.

I will go back to multicursor editing, I suppose.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-project-modelproject model and workspace related issuesC-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions