Simplify construction of replacement map.
This commit is contained in:
parent
e465d647b1
commit
42c9514629
11 changed files with 196 additions and 160 deletions
|
@ -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>),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue