mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-29 03:37:26 +03:00
a1a3bef6f0
This commit adds a lint to prevent the use of rustc_type_ir in random compiler crates, except for type system internals traits, which are explicitly allowed. Moreover, this fixes diagnostic_items() to include the CRATE_OWNER_ID, otherwise rustc_diagnostic_item attribute is ignored on the crate root.