/// A span representing this MIR, for error reporting.
pub span: Span,
+ /// Unevaluated consts to evaluate them regardless of being optimized out
+ pub uneval_consts: Vec<Constant<'tcx>>,
+
/// The user may be writing e.g. &[(SOME_CELL, 42)][i].1 and this would get promoted, because
/// we'd statically know that no thing with interior mutability will ever be available to the
/// user without some serious unsafe code. Now this means that our promoted is actually
spread_arg: None,
var_debug_info,
span,
+ uneval_consts: Vec::new(),
ignore_interior_mut_in_const_validation: false,
control_flow_destroyed,
predecessor_cache: PredecessorCache::new(),
arg_count: 0,
spread_arg: None,
span: DUMMY_SP,
+ uneval_consts: Vec::new(),
control_flow_destroyed: Vec::new(),
generator_kind: None,
var_debug_info: Vec::new(),