File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
rustc_trait_selection/src/traits Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ impl<'tcx> TyCtxt<'tcx> {
5555 self . parent_module_from_def_id ( id. owner )
5656 }
5757
58- pub fn impl_header ( self , def_id : DefId ) -> ImplSubject < ' tcx > {
58+ pub fn impl_subject ( self , def_id : DefId ) -> ImplSubject < ' tcx > {
5959 self . impl_trait_ref ( def_id)
6060 . map ( ImplSubject :: Trait )
6161 . unwrap_or_else ( || ImplSubject :: Inherent ( self . type_of ( def_id) ) )
Original file line number Diff line number Diff line change @@ -307,7 +307,7 @@ fn negative_impl<'cx, 'tcx>(
307307 // create a parameter environment corresponding to a (placeholder) instantiation of impl1
308308 let impl1_env = tcx. param_env ( impl1_def_id) ;
309309
310- match tcx. impl_header ( impl1_def_id) {
310+ match tcx. impl_subject ( impl1_def_id) {
311311 ImplSubject :: Trait ( impl1_trait_ref) => {
312312 // Normalize the trait reference. The WF rules ought to ensure
313313 // that this always succeeds.
You can’t perform that action at this time.
0 commit comments