nit: Make get_infer_ret_ty name more consistent with is_suggestable_infer_ty
This commit is contained in:
parent
4363f9b6f6
commit
c5d4996404
5 changed files with 5 additions and 5 deletions
|
@ -3387,7 +3387,7 @@ impl<'hir> FnRetTy<'hir> {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn get_infer_ret_ty(&self) -> Option<&'hir Ty<'hir>> {
|
||||
pub fn is_suggestable_infer_ty(&self) -> Option<&'hir Ty<'hir>> {
|
||||
if let Self::Return(ty) = self {
|
||||
if ty.is_suggestable_infer_ty() {
|
||||
return Some(*ty);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue