See https://github.com/rust-lang/rust/pull/26783, which does something similar-ish for lints