diff options
| author | Joshua Nelson <jnelson@cloudflare.com> | 2022-09-18 16:35:48 -0500 |
|---|---|---|
| committer | Joshua Nelson <jnelson@cloudflare.com> | 2022-09-25 12:08:36 -0500 |
| commit | 00cde6d4b94bba23ad06b352bc589805574f62b2 (patch) | |
| tree | fec6f0991ee69c34b16f08f1a9f8755282624bae /compiler/rustc_middle | |
| parent | ccc8d000f2281efc17f9329214116aedada088a5 (diff) | |
| download | rust-00cde6d4b94bba23ad06b352bc589805574f62b2.tar.gz rust-00cde6d4b94bba23ad06b352bc589805574f62b2.zip | |
Move the `codegen_unit` debug assert from `rustc_query_system` to `query_impl`
This allows removing a function from the `DepKind` trait.
Diffstat (limited to 'compiler/rustc_middle')
| -rw-r--r-- | compiler/rustc_middle/src/dep_graph/mod.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/compiler/rustc_middle/src/dep_graph/mod.rs b/compiler/rustc_middle/src/dep_graph/mod.rs index 6226fdd923a..2e62bebc852 100644 --- a/compiler/rustc_middle/src/dep_graph/mod.rs +++ b/compiler/rustc_middle/src/dep_graph/mod.rs @@ -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)?; |
