mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
Reduce some visibilities.
This commit is contained in:
parent
911edbfe42
commit
846e20c3b6
@ -753,16 +753,16 @@ impl<'tcx> DebugWithContext<ConstAnalysis<'_, 'tcx>> for State<FlatSet<Scalar>>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) struct Patch<'tcx> {
|
struct Patch<'tcx> {
|
||||||
tcx: TyCtxt<'tcx>,
|
tcx: TyCtxt<'tcx>,
|
||||||
|
|
||||||
/// For a given MIR location, this stores the values of the operands used by that location. In
|
/// 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
|
/// 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.)
|
/// 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.
|
/// 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> {
|
impl<'tcx> Patch<'tcx> {
|
||||||
|
Loading…
Reference in New Issue
Block a user