Save source & target types in hir's expr_adjustments

This commit is contained in:
Maybe Waffle 2022-12-20 19:33:27 +00:00
parent 927d56a67d
commit 91a89efcf2
3 changed files with 42 additions and 19 deletions

View file

@ -60,7 +60,7 @@ pub(super) fn hints(
}
for adjustment in adjustments.into_iter().rev() {
// FIXME: Add some nicer tooltips to each of these
let text = match adjustment {
let text = match adjustment.kind {
Adjust::NeverToAny if config.adjustment_hints == AdjustmentHints::Always => {
"<never-to-any>"
}