1
Fork 0

Drop has_params.

This commit is contained in:
Camille GILLOT 2021-10-16 21:24:10 +02:00
parent aa404c24dd
commit dc7143367c
4 changed files with 4 additions and 40 deletions

View file

@ -34,19 +34,8 @@ impl rustc_query_system::dep_graph::DepKind for DepKind {
self.is_eval_always
}
#[inline(always)]
fn has_params(&self) -> bool {
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 {
return Ok(());
}
write!(f, "(")?;
write!(f, "{:?}(", node.kind)?;
ty::tls::with_opt(|opt_tcx| {
if let Some(tcx) = opt_tcx {