Module rustc_mir_transform::check_consts [−][src]
Expand description
Check the bodies of consts, statics and const fns for illegal operations.
This module will eventually replace the parts of qualify_consts.rs that check whether a local
has interior mutability or needs to be dropped, as well as the visitor that emits errors when
it finds operations that are invalid in a certain context.
Modules
The Visitor responsible for actually checking a mir::Body for invalid operations.
Structural const qualification.
Structs
Information about the item currently being const-checked, as well as a reference to the global context.
Traits
A “qualif”(-ication) is a way to look for something “bad” in the MIR that would disqualify some code for promotion or prevent it from evaluating at compile time.