File tree 2 files changed +2
-2
lines changed
rustc_trait_selection/src/traits
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> {
55
55
self . parent_module_from_def_id ( id. owner )
56
56
}
57
57
58
- pub fn impl_header ( self , def_id : DefId ) -> ImplSubject < ' tcx > {
58
+ pub fn impl_subject ( self , def_id : DefId ) -> ImplSubject < ' tcx > {
59
59
self . impl_trait_ref ( def_id)
60
60
. map ( ImplSubject :: Trait )
61
61
. 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>(
307
307
// create a parameter environment corresponding to a (placeholder) instantiation of impl1
308
308
let impl1_env = tcx. param_env ( impl1_def_id) ;
309
309
310
- match tcx. impl_header ( impl1_def_id) {
310
+ match tcx. impl_subject ( impl1_def_id) {
311
311
ImplSubject :: Trait ( impl1_trait_ref) => {
312
312
// Normalize the trait reference. The WF rules ought to ensure
313
313
// that this always succeeds.
You can’t perform that action at this time.
0 commit comments