mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Drop aux_build
rustc helpers
They provide very little value and makes it more confusing than is helpful.
This commit is contained in:
parent
c9cd707845
commit
b591eb022d
@ -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.
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user