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
1 changed files with 1 additions and 1 deletions
|
@ -463,7 +463,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
|
||||||
None
|
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> {
|
pub fn should_suggest_as_ref(&self, expected: Ty<'tcx>, found: Ty<'tcx>) -> Option<&str> {
|
||||||
match self.should_suggest_as_ref_kind(expected, found) {
|
match self.should_suggest_as_ref_kind(expected, found) {
|
||||||
Some(SuggestAsRefKind::Option) => Some(
|
Some(SuggestAsRefKind::Option) => Some(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue