Skip to content

Request: always import from core when possible #12979

@Lokathor

Description

@Lokathor

Now that we no longer need to use extern crate core to use paths into the core crate, I would like an RA setting to always select the core path for an item whenever possible. For example, if importing Debug, prefer core::fmt::Debug to std::fmt::Debug.

I often want to develop crates that are fundamentally no_std, but use printing during debugging, so I don't actually turn on no_std until the moment of publishing, at which point I have to fix any imports that RA made. If RA could just always prefer core this would help me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-completionautocompletionA-configconfigurationC-featureCategory: feature requestS-actionableSomeone could pick this issue up and work on it right now

    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