@@ -460,12 +460,23 @@ pub struct Hashes {
460460/// For comments about each field see `OwnerInfo` struct.
461461#[ derive( Clone , Copy , Debug , StableHash ) ]
462462pub struct ProjectedOwnerInfo < ' tcx > {
463- pub nodes : & ' tcx OwnerNodes < ' tcx > ,
464- pub parenting : & ' tcx LocalDefIdMap < ItemLocalId > ,
465- pub trait_map : & ' tcx ItemLocalMap < & ' tcx [ TraitCandidate < ' tcx > ] > ,
463+ nodes : & ' tcx OwnerNodes < ' tcx > ,
464+ parenting : & ' tcx LocalDefIdMap < ItemLocalId > ,
465+ trait_map : & ' tcx ItemLocalMap < & ' tcx [ TraitCandidate < ' tcx > ] > ,
466466
467467 #[ stable_hash( ignore) ]
468- pub delayed_lints : & ' tcx Steal < DelayedLints > ,
468+ delayed_lints : & ' tcx Steal < DelayedLints > ,
469+ }
470+
471+ impl < ' tcx > ProjectedOwnerInfo < ' tcx > {
472+ pub fn new (
473+ nodes : & ' tcx OwnerNodes < ' tcx > ,
474+ parenting : & ' tcx LocalDefIdMap < ItemLocalId > ,
475+ trait_map : & ' tcx ItemLocalMap < & ' tcx [ TraitCandidate < ' tcx > ] > ,
476+ delayed_lints : & ' tcx Steal < DelayedLints > ,
477+ ) -> ProjectedOwnerInfo < ' tcx > {
478+ ProjectedOwnerInfo { nodes, parenting, trait_map, delayed_lints }
479+ }
469480}
470481
471482#[ derive( Clone , Copy , Debug , StableHash ) ]
0 commit comments