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;
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:
It would be great if the trait can be directly accessible from rustc_public: