Accept LocalDefId
as key for check_trait_item_well_formed
query
This commit is contained in:
parent
d9e5fa15ff
commit
14119a2a05
@ -807,7 +807,9 @@ rustc_queries! {
|
|||||||
query check_item_well_formed(key: LocalDefId) -> () {
|
query check_item_well_formed(key: LocalDefId) -> () {
|
||||||
desc { |tcx| "processing `{}`", tcx.def_path_str(key.to_def_id()) }
|
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) -> () {}
|
query check_impl_item_well_formed(_: DefId) -> () {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -758,8 +758,8 @@ fn check_item_well_formed(tcx: TyCtxt<'_>, def_id: LocalDefId) {
|
|||||||
wfcheck::check_item_well_formed(tcx, def_id);
|
wfcheck::check_item_well_formed(tcx, def_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn check_trait_item_well_formed(tcx: TyCtxt<'_>, def_id: DefId) {
|
fn check_trait_item_well_formed(tcx: TyCtxt<'_>, def_id: LocalDefId) {
|
||||||
wfcheck::check_trait_item(tcx, def_id.expect_local());
|
wfcheck::check_trait_item(tcx, def_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn check_impl_item_well_formed(tcx: TyCtxt<'_>, def_id: DefId) {
|
fn check_impl_item_well_formed(tcx: TyCtxt<'_>, def_id: DefId) {
|
||||||
|
Loading…
Reference in New Issue
Block a user