1
Fork 0

Make is_private_dep a query.

This commit is contained in:
Camille GILLOT 2021-05-11 22:06:07 +02:00
parent ee94fbb607
commit f0e5e22806
4 changed files with 10 additions and 15 deletions

View file

@ -1412,6 +1412,11 @@ rustc_queries! {
eval_always
desc { "generating a postorder list of CrateNums" }
}
/// Returns whether or not the crate with CrateNum 'cnum'
/// is marked as a private dependency
query is_private_dep(c: CrateNum) -> bool {
desc { "check whether crate {} is a private dependency", c }
}
query allocator_kind(_: ()) -> Option<AllocatorKind> {
desc { "allocator kind for the current crate" }
}