pub fn invalidate(&self, paths: &HashSet<PathBuf>) -> usize {
    let InvalidationResult { cleared, dirtied } =
      self.core.graph.invalidate_from_roots(move |node| {
        if let Some(fs_subject) = node.fs_subject() {
          paths.contains(fs_subject)
        } else {
          false
        }
      });
    // TODO: The rust log level is not currently set correctly in a pantsd context. To ensure that
    // we see this even at `info` level, we set it to warn. #6004 should address this by making
    // rust logging re-configuration an explicit step in `src/python/pants/init/logging.py`.
    warn!(
      "invalidation: cleared {} and dirtied {} nodes for: {:?}",
      cleared, dirtied, paths
    );
    cleared + dirtied
  }
///
/// Invalidate the invalidation roots represented by the given Paths.
///
Invalidate the invalidation roots represented by the given Paths.
Invalidate the invalidation roots represented by the given Paths .
pub fn invalidate(&self, paths: &HashSet<PathBuf>) -> usize {
    let InvalidationResult { cleared, dirtied } =
      self.core.graph.invalidate_from_roots(move |node| {
        if let Some(fs_subject) = node.fs_subject() {
          paths.contains(fs_subject)
        } else {
          false
        }
      });
    // TODO: The rust log level is not currently set correctly in a pantsd context. To ensure that
    // we see this even at `info` level, we set it to warn. #6004 should address this by making
    // rust logging re-configuration an explicit step in `src/python/pants/init/logging.py`.
    warn!(
      "invalidation: cleared {} and dirtied {} nodes for: {:?}",
      cleared, dirtied, paths
    );
    cleared + dirtied
  }
pub fn invalidate ( & self , paths : & HashSet < PathBuf > ) -> usize { let InvalidationResult { cleared , dirtied } = self . core . graph . invalidate_from_roots ( move | node | { if let Some ( fs_subject ) = node . fs_subject ( ) { paths . contains ( fs_subject ) } else { false } } ) ; // TODO: The rust log level is not currently set correctly in a pantsd context. To ensure that // we see this even at `info` level, we set it to warn. #6004 should address this by making // rust logging re-configuration an explicit step in `src/python/pants/init/logging.py`. warn ! ( " " cleared dirtied paths ) ; cleared + dirtied }
Invalidate the invalidation roots represented by the given Paths.
Invalidate the invalidation roots represented by the given Paths .
&self
paths
&HashSet<PathBuf>
&self
paths
&HashSet<PathBuf>