diff --git a/src/librustc_middle/query/mod.rs b/src/librustc_middle/query/mod.rs index 0c607a99dfd..68fe36d4454 100644 --- a/src/librustc_middle/query/mod.rs +++ b/src/librustc_middle/query/mod.rs @@ -807,7 +807,9 @@ rustc_queries! { query check_item_well_formed(key: LocalDefId) -> () { desc { |tcx| "processing `{}`", tcx.def_path_str(key.to_def_id()) } } - query check_trait_item_well_formed(_: DefId) -> () {} + query check_trait_item_well_formed(key: LocalDefId) -> () { + desc { |tcx| "processing `{}`", tcx.def_path_str(key.to_def_id()) } + } query check_impl_item_well_formed(_: DefId) -> () {} } diff --git a/src/librustc_typeck/check/mod.rs b/src/librustc_typeck/check/mod.rs index f4001fd238e..ccce1f1d34e 100644 --- a/src/librustc_typeck/check/mod.rs +++ b/src/librustc_typeck/check/mod.rs @@ -758,8 +758,8 @@ fn check_item_well_formed(tcx: TyCtxt<'_>, def_id: LocalDefId) { wfcheck::check_item_well_formed(tcx, def_id); } -fn check_trait_item_well_formed(tcx: TyCtxt<'_>, def_id: DefId) { - wfcheck::check_trait_item(tcx, def_id.expect_local()); +fn check_trait_item_well_formed(tcx: TyCtxt<'_>, def_id: LocalDefId) { + wfcheck::check_trait_item(tcx, def_id); } fn check_impl_item_well_formed(tcx: TyCtxt<'_>, def_id: DefId) {