Expand description

Various data structures used by the Rust compiler. The intention is that code in here should not be specific to rustc, so that it can be easily unit tested and so forth.

Note

This API is completely unstable and subject to change.

Modules

Macros

Structs

  • This is essentially an AtomicPtr but is guaranteed to always be valid
  • This is a marker for a fatal compiler error used with resume_unwind.

Functions

  • Returns a structure that calls f when dropped.
  • Turns a closure that takes an &mut Formatter into something that can be display-formatted.
  • This calls the passed function while ensuring it won’t be inlined into the caller.