Crate stable_mir

source ·
Expand description

The WIP stable interface to rustc internals.

For more information see https://github.com/rust-lang/project-stable-mir

Note

This API is still completely unstable and subject to change.

This crate shall contain all type definitions and APIs that we expect third-party tools to invoke to interact with the compiler.

The goal is to eventually be published on crates.io.

Re-exports

Modules

  • When things go wrong, we need some error handling. There are a few different types of errors in StableMIR:

Structs

  • A unique identification number for each provenance
  • Holds information about a crate.
  • Holds information about an item in the crate.
  • A unique identification number for each item accessible for the current compilation unit.
  • A type that provides internal information but that can still be used for debug purpose.

Statics

Traits

Functions

Type Aliases