As discussed here https://github.com/rust-lang/rust/pull/74119, that example may be a better fit included in rustc-dev-guide.