Make fewer crates depend on rustc_ast_ir

This commit is contained in:
Michael Goulet 2025-02-19 06:54:15 +00:00
parent f44efbf9e1
commit b78c626a95
25 changed files with 30 additions and 46 deletions

View file

@ -1,3 +1,10 @@
//! Common utilities shared by both `rustc_ast` and `rustc_type_ir`.
//!
//! Don't depend on this crate directly; both of those crates should re-export
//! the functionality. Additionally, if you're in scope of `rustc_middle`, then
//! prefer imports via that too, to avoid needing to directly depend on (e.g.)
//! `rustc_type_ir` for a single import.
// tidy-alphabetical-start
#![cfg_attr(feature = "nightly", allow(internal_features))]
#![cfg_attr(feature = "nightly", feature(never_type))]