replace usages of fn_sig query with bound_fn_sig

This commit is contained in:
Kyle Matsuda
2023-01-18 15:43:20 -07:00
parent d7948c843d
commit e982971ff2
66 changed files with 147 additions and 113 deletions

View File

@@ -1315,7 +1315,10 @@ pub fn is_doc_notable_trait(tcx: TyCtxt<'_>, def_id: DefId) -> bool {
/// Determines whether an item is an intrinsic by Abi.
pub fn is_intrinsic(tcx: TyCtxt<'_>, def_id: DefId) -> bool {
matches!(tcx.fn_sig(def_id).abi(), Abi::RustIntrinsic | Abi::PlatformIntrinsic)
matches!(
tcx.bound_fn_sig(def_id).skip_binder().abi(),
Abi::RustIntrinsic | Abi::PlatformIntrinsic
)
}
pub fn provide(providers: &mut ty::query::Providers) {