message: Fix "Fresh" display with doctest units.
diff: @@ -410,8 +410,6 @@ impl<'a> JobQueue<'a> {
  ) -> CargoResult<()> {
  if (self.compiled.contains(key.pkg) && !key.mode.is_doc())
  || (self.documented.contains(key.pkg) && key.mode.is_doc())
  - // Skip doctest, it is a dummy entry that is always fresh.
  - || key.mode == CompileMode::Doctest
  {
  return Ok(());
  }
  @@ -421,8 +419,11 @@ impl<'a> JobQueue<'a> {
  // being a compiled package
  Dirty => {
  if key.mode.is_doc() {
  + // Skip Doctest
  + if !key.mode.is_any_test() {
  self.documented.insert(key.pkg);
  config.shell().status("Documenting", key.pkg)?;
  + }
  } else {
  self.compiled.insert(key.pkg);
  if key.mode.is_check() {
  @@ -432,11 +433,15 @@ impl<'a> JobQueue<'a> {
  }
  }
  }
  - Fresh if self.counts[key.pkg] == 0 => {
  + Fresh => {
  + // If doctest is last, only print "Fresh" if nothing has been printed.
  + if self.counts[key.pkg] == 0
  + && !(key.mode == CompileMode::Doctest && self.compiled.contains(key.pkg))
  + {
  self.compiled.insert(key.pkg);
  config.shell().verbose(|c| c.status("Fresh", key.pkg))?;
  }
  - Fresh => {}
  + }
  }
  Ok(())
  }
  