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
|
@ -31,7 +31,7 @@ pub fn walk_types<'tcx, V: SpannedTypeVisitor<'tcx>>(
|
|||
// If the type of the item uses `_`, we're gonna error out anyway, but
|
||||
// typeck (which type_of invokes below), will call back into opaque_types_defined_by
|
||||
// causing a cycle. So we just bail out in this case.
|
||||
if hir_sig.output.get_infer_ret_ty().is_some() {
|
||||
if hir_sig.output.is_suggestable_infer_ty().is_some() {
|
||||
return V::Result::output();
|
||||
}
|
||||
let ty_sig = tcx.fn_sig(item).instantiate_identity();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue