Dummy tweaks (attempt 2) by nnethercote · Pull Request #121829 · rust-lang/rust (original) (raw)

DummyAstNode and DummyResult are quite different if you look closely.

So the purpose is much the same, but the details vary greatly. This is why I removed the interdependency. You could probably frankenstein them into a single thing (trait? type?) that can be used in both cases, by adding extra parameters, but I think that would end up being less clear.