diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2023-02-05 11:37:44 +0000 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2023-02-05 11:44:18 +0000 |
| commit | 42c95146294c7773ca03e91e945fd545c6ce1ba2 (patch) | |
| tree | f636d386b8f773ddbcd7ad540c72ea2ea103fc24 /compiler/rustc_mir_dataflow/src | |
| parent | e465d647b1286e9127dab4df091315588b44dba9 (diff) | |
Simplify construction of replacement map.
Diffstat (limited to 'compiler/rustc_mir_dataflow/src')
| -rw-r--r-- | compiler/rustc_mir_dataflow/src/value_analysis.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_dataflow/src/value_analysis.rs b/compiler/rustc_mir_dataflow/src/value_analysis.rs index 6bdbda909d7..90d07c81256 100644 --- a/compiler/rustc_mir_dataflow/src/value_analysis.rs +++ b/compiler/rustc_mir_dataflow/src/value_analysis.rs @@ -790,7 +790,7 @@ impl<V, T> TryFrom<ProjectionElem<V, T>> for TrackElem { } /// Invokes `f` on all direct fields of `ty`. -fn iter_fields<'tcx>( +pub fn iter_fields<'tcx>( ty: Ty<'tcx>, tcx: TyCtxt<'tcx>, mut f: impl FnMut(Option<VariantIdx>, Field, Ty<'tcx>), |
