We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
PromoteTemps
1 parent e26692d commit 51e1c39Copy full SHA for 51e1c39
compiler/rustc_mir_transform/src/promote_consts.rs
@@ -36,6 +36,7 @@ use tracing::{debug, instrument};
36
/// newly created `Constant`.
37
#[derive(Default)]
38
pub(super) struct PromoteTemps<'tcx> {
39
+ // Must use `Cell` because `run_pass` takes `&self`, not `&mut self`.
40
pub promoted_fragments: Cell<IndexVec<Promoted, Body<'tcx>>>,
41
}
42
0 commit comments