Fix a bad hint
This commit is contained in:
@@ -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 {
|
let hir::Node::Expr(parent_expr) = self.tcx.parent_hir_node(expr.hir_id) else {
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
if parent_expr.span.desugaring_kind().is_some() {
|
||||||
|
return;
|
||||||
|
}
|
||||||
enum CallableKind {
|
enum CallableKind {
|
||||||
Function,
|
Function,
|
||||||
Method,
|
Method,
|
||||||
|
|||||||
Reference in New Issue
Block a user