Skip to content

Commit 68b63d2

Browse files
committed
Auto merge of #8526 - tmiasko:remove-all-modes, r=ehuss
Remove unused CompileMode::all_modes
2 parents 04c0875 + a11f206 commit 68b63d2

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/cargo/core/compiler/build_config.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -214,21 +214,4 @@ impl CompileMode {
214214
pub fn is_run_custom_build(self) -> bool {
215215
self == CompileMode::RunCustomBuild
216216
}
217-
218-
/// List of all modes (currently used by `cargo clean -p` for computing
219-
/// all possible outputs).
220-
pub fn all_modes() -> &'static [CompileMode] {
221-
static ALL: [CompileMode; 9] = [
222-
CompileMode::Test,
223-
CompileMode::Build,
224-
CompileMode::Check { test: true },
225-
CompileMode::Check { test: false },
226-
CompileMode::Bench,
227-
CompileMode::Doc { deps: true },
228-
CompileMode::Doc { deps: false },
229-
CompileMode::Doctest,
230-
CompileMode::RunCustomBuild,
231-
];
232-
&ALL
233-
}
234217
}

0 commit comments

Comments
 (0)