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

@@ -61,7 +61,7 @@ impl<K: DepKind> DepNode<K> {
/// that the DepNode corresponding to the given DepKind actually
/// does not require any parameters.
pub fn new_no_params(kind: K) -> DepNode<K> {
debug_assert!(!kind.has_params());
debug_assert_eq!(kind.fingerprint_style(), FingerprintStyle::Unit);
DepNode { kind, hash: Fingerprint::ZERO.into() }
}