diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-10-30 16:07:26 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-10-31 12:46:30 +1100 |
| commit | 846e20c3b6b861275bb02558f6bbde47e3be272d (patch) | |
| tree | 22d3656cca817878f6a55910f609182f421acef9 /compiler/rustc_mir_transform | |
| parent | 911edbfe42c557774488d46fbb0440994d555084 (diff) | |
| download | rust-846e20c3b6b861275bb02558f6bbde47e3be272d.tar.gz rust-846e20c3b6b861275bb02558f6bbde47e3be272d.zip | |
Reduce some visibilities.
Diffstat (limited to 'compiler/rustc_mir_transform')
| -rw-r--r-- | compiler/rustc_mir_transform/src/dataflow_const_prop.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_mir_transform/src/dataflow_const_prop.rs b/compiler/rustc_mir_transform/src/dataflow_const_prop.rs index b8e35587b87..dd85d06540d 100644 --- a/compiler/rustc_mir_transform/src/dataflow_const_prop.rs +++ b/compiler/rustc_mir_transform/src/dataflow_const_prop.rs @@ -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> { |
