Skip to content

Commit

Permalink
Auto merge of #8526 - tmiasko:remove-all-modes, r=ehuss
Browse files Browse the repository at this point in the history
Remove unused CompileMode::all_modes
  • Loading branch information
bors committed Jul 23, 2020
2 parents 04c0875 + a11f206 commit 68b63d2
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/cargo/core/compiler/build_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,21 +214,4 @@ impl CompileMode {
pub fn is_run_custom_build(self) -> bool {
self == CompileMode::RunCustomBuild
}

/// List of all modes (currently used by `cargo clean -p` for computing
/// all possible outputs).
pub fn all_modes() -> &'static [CompileMode] {
static ALL: [CompileMode; 9] = [
CompileMode::Test,
CompileMode::Build,
CompileMode::Check { test: true },
CompileMode::Check { test: false },
CompileMode::Bench,
CompileMode::Doc { deps: true },
CompileMode::Doc { deps: false },
CompileMode::Doctest,
CompileMode::RunCustomBuild,
];
&ALL
}
}

0 comments on commit 68b63d2

Please sign in to comment.