Skip to content

Expose IndexedVal trait in rustc_public #116

Description

@zjp-CN

IndexedVal is declared in rustc_public_bridge crate, while can be also seen on rustc_public types like VariantIdx.

It's necessary to convert between the wrapper type and index/usize using that trait. But currently the only way is to import it from rustc_public_bridge:

extern crate rustc_public_bridge;
use rustc_public_bridge::IndexedVal;

It would be great if the trait can be directly accessible from rustc_public:

use rustc_public::ty::IndexedVal;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions