We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8151886 commit 6e6bdc3Copy full SHA for 6e6bdc3
src/tools/rust-analyzer/crates/ide/src/inlay_hints/implicit_drop.rs
@@ -54,7 +54,8 @@ pub(super) fn hints(
54
};
55
let range = match terminator.span {
56
MirSpan::ExprId(e) => match source_map.expr_syntax(e) {
57
- Ok(s) => {
+ // don't show inlay hint for macro
58
+ Ok(s) if !s.file_id.is_macro() => {
59
let root = &s.file_syntax(sema.db);
60
let expr = s.value.to_node(root);
61
let expr = expr.syntax();
@@ -69,7 +70,7 @@ pub(super) fn hints(
69
70
}
71
72
- Err(_) => continue,
73
+ _ => continue,
74
},
75
MirSpan::PatId(p) => match source_map.pat_syntax(p) {
76
Ok(s) => s.value.text_range(),
0 commit comments