There are a few exercises that could benefit from the rust analyzer giving feedback to user code, off the top of my head:
- sieve: warn when division or modulo are used
- accumulate: warn when any kind of map operation is used
This would also make a future syllabus nicer to go through, since the analyzer could catch common mistakes that don’t bother clippy. I remember the Elixir track was really good for this when I went through it.
For instance, if a lesson is supposed to teach iterators, we could warn on usage of loops.
Rust’s syn crate would probably be a good candidate to help us do this, but I have 0 experience working with rust syntax trees so I’m all ears for other options.