mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
Update compiler/rustc_infer/src/infer/error_reporting/suggest.rs
Co-authored-by: David Wood <agile.lion3441@fuligin.ink>
This commit is contained in:
parent
1f09bc77c1
commit
e813b6d6e1
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user