mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
bd53d1eee3
Add methods to create StableMIR constant I've been experimenting with transforming the StableMIR to instrument the code with potential UB checks. The modified body will only be used by our analysis tool, however, constants in StableMIR must be backed by rustc constants. Thus, I'm adding a few functions to build constants, such as building string and other primitives. One question I have is whether we should create a global allocation instead for strings. r? ``````@oli-obk`````` |
||
---|---|---|
.. | ||
check_abi.rs | ||
check_allocation.rs | ||
check_defs.rs | ||
check_foreign.rs | ||
check_instance.rs | ||
check_item_kind.rs | ||
check_trait_queries.rs | ||
check_transform.rs | ||
check_ty_fold.rs | ||
compilation-result.rs | ||
crate-info.rs | ||
projections.rs | ||
smir_internal.rs | ||
smir_visitor.rs |