diff options
| author | Michael Goulet <michael@errs.io> | 2025-01-02 18:19:46 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-01-02 23:39:16 +0000 |
| commit | c5d4996404fe7ed37a94d83d7b632ed6a566d2ac (patch) | |
| tree | 58173c9840d379ea740511cb98affff3c602be6e /compiler/rustc_ty_utils/src | |
| parent | 4363f9b6f6d3656d94adbcabba6348a485ef9a56 (diff) | |
| download | rust-c5d4996404fe7ed37a94d83d7b632ed6a566d2ac.tar.gz rust-c5d4996404fe7ed37a94d83d7b632ed6a566d2ac.zip | |
nit: Make get_infer_ret_ty name more consistent with is_suggestable_infer_ty
Diffstat (limited to 'compiler/rustc_ty_utils/src')
| -rw-r--r-- | compiler/rustc_ty_utils/src/sig_types.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ty_utils/src/sig_types.rs b/compiler/rustc_ty_utils/src/sig_types.rs index 6f1cbb0fee7..64e5a609b2f 100644 --- a/compiler/rustc_ty_utils/src/sig_types.rs +++ b/compiler/rustc_ty_utils/src/sig_types.rs @@ -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(); |
