Move the codegen_unit debug assert from rustc_query_system to query_impl

This allows removing a function from the `DepKind` trait.
This commit is contained in:
Joshua Nelson 2022-09-18 16:35:48 -05:00
parent ccc8d000f2
commit 00cde6d4b9
3 changed files with 18 additions and 24 deletions

View file

@ -27,10 +27,6 @@ impl rustc_query_system::dep_graph::DepKind for DepKind {
const NULL: Self = DepKind::Null;
const RED: Self = DepKind::Red;
fn is_codegen_unit_query(self) -> bool {
self == DepKind::codegen_unit
}
fn debug_node(node: &DepNode, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{:?}(", node.kind)?;