@@ -1524,15 +1524,13 @@ macro_rules! direct_interners {
1524
1524
// Functions with a `mk_` prefix are intended for use outside this file and
1525
1525
// crate. Functions with an `intern_` prefix are intended for use within this
1526
1526
// file only, and have a corresponding `mk_` function.
1527
- //
1528
- // TODO(waffle): pub mk_* -> intern_*
1529
1527
direct_interners ! {
1530
1528
region: intern_region( RegionKind <' tcx>) : Region -> Region <' tcx>,
1531
1529
const_: intern_const( ConstData <' tcx>) : Const -> Const <' tcx>,
1532
- const_allocation: pub mk_const_alloc ( Allocation ) : ConstAllocation -> ConstAllocation <' tcx>,
1533
- layout: pub mk_layout ( LayoutS ) : Layout -> Layout <' tcx>,
1534
- adt_def: pub mk_adt_def_from_data ( AdtDefData ) : AdtDef -> AdtDef <' tcx>,
1535
- external_constraints: pub mk_external_constraints ( ExternalConstraintsData <' tcx>) :
1530
+ const_allocation: intern_const_alloc ( Allocation ) : ConstAllocation -> ConstAllocation <' tcx>,
1531
+ layout: intern_layout ( LayoutS ) : Layout -> Layout <' tcx>,
1532
+ adt_def: intern_adt_def_from_data ( AdtDefData ) : AdtDef -> AdtDef <' tcx>,
1533
+ external_constraints: intern_external_constraints ( ExternalConstraintsData <' tcx>) :
1536
1534
ExternalConstraints -> ExternalConstraints <' tcx>,
1537
1535
}
1538
1536
@@ -1555,16 +1553,15 @@ macro_rules! slice_interners {
1555
1553
// These functions intern slices. They all have a corresponding
1556
1554
// `mk_foo_from_iter` function that interns an iterator. The slice version
1557
1555
// should be used when possible, because it's faster.
1558
- // TODO: deprecate/make into private `intern_*`/etc all `mk_*` methods here
1559
1556
slice_interners ! (
1560
- const_lists: pub mk_const_list ( Const <' tcx>) ,
1561
- substs: pub mk_substs ( GenericArg <' tcx>) ,
1562
- canonical_var_infos: pub mk_canonical_var_infos ( CanonicalVarInfo <' tcx>) ,
1557
+ const_lists: intern_const_list ( Const <' tcx>) ,
1558
+ substs: intern_substs ( GenericArg <' tcx>) ,
1559
+ canonical_var_infos: intern_canonical_var_infos ( CanonicalVarInfo <' tcx>) ,
1563
1560
poly_existential_predicates: intern_poly_existential_predicates( PolyExistentialPredicate <' tcx>) ,
1564
1561
predicates: intern_predicates( Predicate <' tcx>) ,
1565
- projs: pub mk_projs ( ProjectionKind ) ,
1566
- place_elems: pub mk_place_elems ( PlaceElem <' tcx>) ,
1567
- bound_variable_kinds: pub mk_bound_variable_kinds ( ty:: BoundVariableKind ) ,
1562
+ projs: intern_projs ( ProjectionKind ) ,
1563
+ place_elems: intern_place_elems ( PlaceElem <' tcx>) ,
1564
+ bound_variable_kinds: intern_bound_variable_kinds ( ty:: BoundVariableKind ) ,
1568
1565
) ;
1569
1566
1570
1567
impl < ' tcx > TyCtxt < ' tcx > {
0 commit comments