Skip to main content

Module locals

Module locals 

Source
Expand description

Locals are in a private module as updating LocalRef::Operand has to be careful wrt to subtyping. To deal with this we only allow updates by using FunctionCx::overwrite_local which handles it automatically.

Re-exportsยง

use std::ops::Index; ๐Ÿ”’
use std::ops::IndexMut; ๐Ÿ”’
use rustc_index::IndexVec; ๐Ÿ”’
use rustc_middle::mir; ๐Ÿ”’
use rustc_middle::ty::print::with_no_trimmed_paths; ๐Ÿ”’
use rustc_middle::ty::print::with_no_trimmed_paths; ๐Ÿ”’
use tracing::debug; ๐Ÿ”’
use tracing::warn; ๐Ÿ”’
use crate::mir::FunctionCx; ๐Ÿ”’
use crate::mir::LocalRef; ๐Ÿ”’
use crate::traits::BuilderMethods; ๐Ÿ”’

Structsยง

Locals ๐Ÿ”’