-
Spawned off of PR #84364, based on discussion from lang team meeting ([minutes](https://github.com/rust-lang/lang-team/blob/master/minutes/2021-05-11.md#add-expr202x-macro-pattern-rust84364), [youtube…
-
Hi Raph! Great work!
At my work we use a custom language which does not support captures in lambdas. Instead we have simple definitions of semantic macros.
Reading the counter.rs source therefor…
majg0 updated
4 years ago
-
### Problem
[link to starter lab](https://github.com/Unboxed-Software/anchor-custom-macro/tree/starter) in the `rust-macros.md` file for the [rust macros lesson](https://github.com/solana-foundation/…
-
There's a :LOT of boilerplate in the primitive classes... can we find a way to generate this from a concise description?
-
I refactored some code I had that was creating a `HashSet` from a const slice to use `lazy_static` instead. I renamed the `const` and used its original name for the `static`, and then copy/pasted the …
luser updated
3 years ago
-
Hello,
Whenever I am jumping to definition outside of current workspace, rust-analyzer seems to start a new instance on the jumped file's location, while leaving the current instance hanging until …
-
New resolve is enabled by default since `v147`
---
New name resolution algorithm (aka name resolution 2.0) is an effort to rewrite part of the name resolution code in order to better support com…
-
### Code
```Rust
#[derive(Debug)]
struct Foo(u8, u8);
fn main() {
let f = Foo(1, 2);
println!("{f:?#}");
}
```
### Current output
```Shell
error: invalid format string: expected `'}'`, fo…
-
I recently wrote https://github.com/drahnr/expander to aid in debugging proc-macros during the development cycle - it essentially replaces the generated `TokenStream` with a `include!(env!(OUT_DIR) "/…
-
VSCode + rust-analyzer does far worse at things like jump to definition on the generated_X files. For example, in generated_layout.rs you can't go to definition on the struct for the enum formats here…