Fix a bad hint

This commit is contained in:
Cameron Steffen
2025-10-27 18:04:27 -05:00
parent bef018eae3
commit 95732f42cd

View File

@@ -1196,6 +1196,9 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
let hir::Node::Expr(parent_expr) = self.tcx.parent_hir_node(expr.hir_id) else {
return;
};
if parent_expr.span.desugaring_kind().is_some() {
return;
}
enum CallableKind {
Function,
Method,