-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
A-inlay-hintsinlay/inline hintsinlay/inline hintsC-featureCategory: feature requestCategory: feature request
Description
rust-analyzer version: 0add6e9 2021-12-20 stable
rustc version: rustc 1.60.0-nightly (ee5d8d3 2022-01-17)
When creating macros that accept blocks, if you declare a let, it doesn't show you the type. Doesn't work with function call parameter names either.
fn main() {
macro_rules! foo {
(bar $b:block) => {
$b
}
}
fn baz(val: i32) {
println!("baz {}", val);
}
foo!(bar {
let x = 123;
baz(x);
println!("Hello, world!");
});
let x = 123;
baz(x);
println!("Hello, world!");
}rakbladsvalsen, namse, MolotovCherry, SushantChandla and peter-lyons-kehlnamse and SushantChandla
Metadata
Metadata
Assignees
Labels
A-inlay-hintsinlay/inline hintsinlay/inline hintsC-featureCategory: feature requestCategory: feature request
