Skip to content

Commit 64df2ee

Browse files
committed
impl_header -> impl_subject
1 parent 0cd03c9 commit 64df2ee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_middle/src/hir/mod.rs

+1-1
Original file line numberDiff line numberDiff 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)))

compiler/rustc_trait_selection/src/traits/coherence.rs

+1-1
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)