Rename fn_trait_kind_from_{from_lang=>def_id} to better convey meaning

This commit is contained in:
Maybe Waffle
2022-11-22 18:12:12 +00:00
parent 0e9eee6811
commit 881862ecb7
11 changed files with 14 additions and 14 deletions

View File

@@ -27,7 +27,7 @@ impl<'tcx> TyCtxt<'tcx> {
})
}
pub fn fn_trait_kind_from_lang_item(self, id: DefId) -> Option<ty::ClosureKind> {
pub fn fn_trait_kind_from_def_id(self, id: DefId) -> Option<ty::ClosureKind> {
let items = self.lang_items();
match Some(id) {
x if x == items.fn_trait() => Some(ty::ClosureKind::Fn),