Drop aux_build rustc helpers

They provide very little value and makes it more confusing than is
helpful.
This commit is contained in:
Jieyou Xu 2025-04-02 15:31:50 +08:00
parent c9cd707845
commit b591eb022d
No known key found for this signature in database
GPG Key ID: 045B995028EA6AFC
2 changed files with 1 additions and 15 deletions

View File

@ -22,12 +22,6 @@ pub fn bare_rustc() -> Rustc {
Rustc::bare()
}
/// Construct a new `rustc` aux-build invocation.
#[track_caller]
pub fn aux_build() -> Rustc {
Rustc::new_aux_build()
}
/// A `rustc` invocation builder.
#[derive(Debug)]
#[must_use]
@ -67,14 +61,6 @@ impl Rustc {
Self { cmd }
}
/// Construct a new `rustc` invocation with `aux_build` preset (setting `--crate-type=lib`).
#[track_caller]
pub fn new_aux_build() -> Self {
let mut cmd = setup_common();
cmd.arg("--crate-type=lib");
Self { cmd }
}
// Argument provider methods
/// Configure the compilation environment.

View File

@ -68,7 +68,7 @@ pub use llvm::{
LlvmFilecheck, LlvmNm, LlvmObjcopy, LlvmObjdump, LlvmProfdata, LlvmReadobj,
};
pub use python::python_command;
pub use rustc::{aux_build, bare_rustc, rustc, rustc_path, Rustc};
pub use rustc::{bare_rustc, rustc, rustc_path, Rustc};
pub use rustdoc::{rustdoc, Rustdoc};
/// [`diff`][mod@diff] is implemented in terms of the [similar] library.