From e813b6d6e1ef76a94a68f98316d76517d7ce0719 Mon Sep 17 00:00:00 2001 From: IQuant Date: Thu, 9 Mar 2023 19:47:30 +0300 Subject: [PATCH] Update compiler/rustc_infer/src/infer/error_reporting/suggest.rs Co-authored-by: David Wood --- compiler/rustc_infer/src/infer/error_reporting/suggest.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_infer/src/infer/error_reporting/suggest.rs b/compiler/rustc_infer/src/infer/error_reporting/suggest.rs index fecfc53c86a2..a13c96518341 100644 --- a/compiler/rustc_infer/src/infer/error_reporting/suggest.rs +++ b/compiler/rustc_infer/src/infer/error_reporting/suggest.rs @@ -463,7 +463,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> { None } - // FIXME: Remove once rustc_hir_typeck is migrated to Diagnostics + // FIXME: Remove once `rustc_hir_typeck` is migrated to diagnostic structs pub fn should_suggest_as_ref(&self, expected: Ty<'tcx>, found: Ty<'tcx>) -> Option<&str> { match self.should_suggest_as_ref_kind(expected, found) { Some(SuggestAsRefKind::Option) => Some(