Update compiler/rustc_infer/src/infer/error_reporting/suggest.rs

Co-authored-by: David Wood <agile.lion3441@fuligin.ink>
This commit is contained in:
IQuant 2023-03-09 19:47:30 +03:00
parent 1f09bc77c1
commit e813b6d6e1

View File

@ -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(