1
Fork 0

Use a field for has_params.

This commit is contained in:
Camille GILLOT 2020-10-27 18:46:43 +01:00
parent d8c87ac080
commit 5027f1c6ea
2 changed files with 17 additions and 25 deletions

View file

@ -31,14 +31,15 @@ impl rustc_query_system::dep_graph::DepKind for DepKind {
self.is_eval_always
}
#[inline(always)]
fn has_params(&self) -> bool {
DepKind::has_params(self)
self.has_params
}
fn debug_node(node: &DepNode, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{:?}", node.kind)?;
if !node.kind.has_params() && !node.kind.is_anon {
if !node.kind.has_params && !node.kind.is_anon {
return Ok(());
}