Module rustc_smir::stable_mir

source ·
Expand description

Module that implements the public interface to the Stable MIR.

This module 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 move this module to its own crate which shall be published on crates.io.

Note:

There shouldn’t be any direct references to internal compiler constructs in this module. If you need an internal construct, consider using rustc_internal or rustc_smir.

Modules

Structs

  • A unique identification number for each provenance
  • Holds information about a crate.
  • Holds information about an item in the crate. For now, it only stores the item DefId. Use functions inside rustc_internal module to use this item.
  • A unique identification number for each item accessible for the current compilation unit.

Enums

  • An error type used to represent an error that has already been reported by the compiler.

Statics

Traits

Functions

Type Aliases