Skip to content

Commit

Permalink
Reduce some visibilities.
Browse files Browse the repository at this point in the history
  • Loading branch information
nnethercote committed Oct 31, 2024
1 parent 911edbf commit 846e20c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compiler/rustc_mir_transform/src/dataflow_const_prop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -753,16 +753,16 @@ impl<'tcx> DebugWithContext<ConstAnalysis<'_, 'tcx>> for State<FlatSet<Scalar>>
}
}

pub(crate) struct Patch<'tcx> {
struct Patch<'tcx> {
tcx: TyCtxt<'tcx>,

/// For a given MIR location, this stores the values of the operands used by that location. In
/// particular, this is before the effect, such that the operands of `_1 = _1 + _2` are
/// properly captured. (This may become UB soon, but it is currently emitted even by safe code.)
pub(crate) before_effect: FxHashMap<(Location, Place<'tcx>), Const<'tcx>>,
before_effect: FxHashMap<(Location, Place<'tcx>), Const<'tcx>>,

/// Stores the assigned values for assignments where the Rvalue is constant.
pub(crate) assignments: FxHashMap<Location, Const<'tcx>>,
assignments: FxHashMap<Location, Const<'tcx>>,
}

impl<'tcx> Patch<'tcx> {
Expand Down

0 comments on commit 846e20c

Please sign in to comment.