pub(super) fn adopt_legacy_generated_tree( output_dir: &Path, actual_paths: &BTreeSet<PathBuf>, ) -> Result<BTreeSet<PathBuf>>