struct Args {Show 85 fields
compile_lib_path: Utf8PathBuf,
run_lib_path: Utf8PathBuf,
rustc_path: Utf8PathBuf,
python: String,
src_root: Utf8PathBuf,
src_test_suite_root: Utf8PathBuf,
build_root: Utf8PathBuf,
build_test_suite_root: Utf8PathBuf,
sysroot_base: Utf8PathBuf,
stage: u32,
stage_id: String,
mode: TestMode,
suite: TestSuite,
cc: String,
cxx: String,
cflags: String,
cxxflags: String,
llvm_components: String,
channel: String,
nightly_branch: String,
git_merge_commit_email: String,
minicore_path: Utf8PathBuf,
jobs: u32,
host: String,
target: String,
cargo_path: Option<Utf8PathBuf>,
stage0_rustc_path: Option<Utf8PathBuf>,
query_rustc_path: Option<Utf8PathBuf>,
rustdoc_path: Option<Utf8PathBuf>,
coverage_dump_path: Option<Utf8PathBuf>,
jsondocck_path: Option<Utf8PathBuf>,
jsondoclint_path: Option<Utf8PathBuf>,
run_clang_based_tests_with: Option<Utf8PathBuf>,
llvm_filecheck: Option<Utf8PathBuf>,
llvm_bin_dir: Option<Utf8PathBuf>,
nodejs: Option<Utf8PathBuf>,
npm: Option<Utf8PathBuf>,
remote_test_client: Option<Utf8PathBuf>,
cdb: Option<Utf8PathBuf>,
gdb: Option<Utf8PathBuf>,
lldb: Option<Utf8PathBuf>,
lldb_version: Option<String>,
llvm_version: Option<String>,
android_cross_path: Option<Utf8PathBuf>,
adb_path: Option<Utf8PathBuf>,
adb_test_dir: Option<Utf8PathBuf>,
ar: String,
target_linker: Option<String>,
host_linker: Option<String>,
pass: Option<ForcePassMode>,
run: Option<String>,
runner: Option<String>,
compare_mode: Option<CompareMode>,
edition: Option<Edition>,
default_codegen_backend: Option<CodegenBackend>,
override_codegen_backend: Option<String>,
compiletest_diff_tool: Option<String>,
parallel_frontend_threads: Option<u32>,
iteration_count: Option<u32>,
bless: bool,
fail_fast: bool,
ignored: bool,
has_enzyme: bool,
has_offload: bool,
with_rustc_debug_assertions: bool,
with_std_debug_assertions: bool,
with_std_remap_debuginfo: bool,
exact: bool,
rust_randomized_layout: bool,
optimize_tests: bool,
verbose: bool,
verbose_run_make_subprocess_output: bool,
system_llvm: bool,
force_rerun: bool,
only_modified: bool,
nocapture: bool,
no_capture: bool,
profiler_runtime: bool,
git_hash: bool,
rustfix_coverage: bool,
bypass_ignore_backends: bool,
skip: Vec<String>,
host_rustcflags: Vec<String>,
target_rustcflags: Vec<String>,
filters: Vec<String>,
}Expand description
Compiletest command-line arguments.
Fields§
§compile_lib_path: Utf8PathBufPath to host shared libraries.
run_lib_path: Utf8PathBufPath to target shared libraries.
rustc_path: Utf8PathBufPath to rustc to use for compiling.
python: StringPath to python to use for doc tests.
src_root: Utf8PathBufDirectory containing sources.
src_test_suite_root: Utf8PathBufDirectory containing test suite sources.
build_root: Utf8PathBufPath to root build directory.
build_test_suite_root: Utf8PathBufPath to test suite specific build directory.
sysroot_base: Utf8PathBufDirectory containing the compiler sysroot.
stage: u32Stage number under test.
stage_id: StringThe target-stage identifier.
mode: TestModeWhich sort of compile tests to run.
suite: TestSuiteWhich suite of compile tests to run.
cc: StringPath to a C compiler.
cxx: StringPath to a C++ compiler.
cflags: StringFlags for the C compiler.
cxxflags: StringFlags for the CXX compiler.
llvm_components: StringList of LLVM components built in.
channel: StringCurrent Rust channel.
nightly_branch: StringName of the git branch for nightly.
git_merge_commit_email: StringEmail address used for finding merge commits.
minicore_path: Utf8PathBufPath to minicore aux library.
jobs: u32Number of parallel jobs bootstrap was configured with.
host: StringThe host to build for.
target: StringThe target to build for.
cargo_path: Option<Utf8PathBuf>Path to cargo to use for compiling.
stage0_rustc_path: Option<Utf8PathBuf>Path to rustc to use for compiling run-make recipes.
query_rustc_path: Option<Utf8PathBuf>Path to rustc to use for querying target information.
rustdoc_path: Option<Utf8PathBuf>Path to rustdoc to use for compiling.
coverage_dump_path: Option<Utf8PathBuf>Path to coverage-dump to use in tests.
jsondocck_path: Option<Utf8PathBuf>Path to jsondocck to use for doc tests.
jsondoclint_path: Option<Utf8PathBuf>Path to jsondoclint to use for doc tests.
run_clang_based_tests_with: Option<Utf8PathBuf>Path to Clang executable.
llvm_filecheck: Option<Utf8PathBuf>Path to LLVM’s FileCheck binary.
llvm_bin_dir: Option<Utf8PathBuf>Path to LLVM’s bin directory.
nodejs: Option<Utf8PathBuf>The name of nodejs.
npm: Option<Utf8PathBuf>The name of npm.
remote_test_client: Option<Utf8PathBuf>Path to the remote test client.
cdb: Option<Utf8PathBuf>Path to CDB to use for CDB debuginfo tests.
gdb: Option<Utf8PathBuf>Path to GDB to use for GDB debuginfo tests.
lldb: Option<Utf8PathBuf>Path to LLDB to use for LLDB debuginfo tests.
lldb_version: Option<String>The version of LLDB used.
llvm_version: Option<String>The version of LLVM used.
android_cross_path: Option<Utf8PathBuf>Android NDK standalone path.
adb_path: Option<Utf8PathBuf>Path to the android debugger.
adb_test_dir: Option<Utf8PathBuf>Path to tests for the android debugger.
ar: StringPath to an archiver.
target_linker: Option<String>Path to a linker for the target.
host_linker: Option<String>Path to a linker for the host.
pass: Option<ForcePassMode>Force {check,build,run}-pass tests to this mode.
run: Option<String>Whether to execute run-* tests.
runner: Option<String>Supervisor program to run tests under (eg. emulator, valgrind).
compare_mode: Option<CompareMode>Mode describing what file the actual ui output will be compared to.
edition: Option<Edition>Default Rust edition.
default_codegen_backend: Option<CodegenBackend>The codegen backend currently used.
override_codegen_backend: Option<String>The codegen backend to use instead of the default one.
compiletest_diff_tool: Option<String>Custom diff tool to use for displaying compiletest tests.
parallel_frontend_threads: Option<u32>Number of parallel threads to use for the frontend when building test artifacts
iteration_count: Option<u32>Number of times to execute each test.
bless: boolOverwrite stderr/stdout files instead of complaining about a mismatch.
fail_fast: boolStop as soon as possible after any test fails.
ignored: boolRun tests marked as ignored.
has_enzyme: boolRun tests that require enzyme.
has_offload: boolRun tests that require offload.
with_rustc_debug_assertions: boolWhether rustc was built with debug assertions.
with_std_debug_assertions: boolWhether std was built with debug assertions.
with_std_remap_debuginfo: boolWhether std was built with remapping.
exact: boolFilters match exactly.
rust_randomized_layout: boolSet this when rustc/stdlib were compiled with randomized layouts.
optimize_tests: boolRun tests with optimizations enabled.
verbose: boolRun tests verbosely, showing all output.
verbose_run_make_subprocess_output: boolShow verbose subprocess output for successful run-make tests.
system_llvm: boolIs LLVM the system LLVM.
force_rerun: boolRerun tests even if the inputs are unchanged.
only_modified: boolOnly run tests that result been modified.
nocapture: bool§no_capture: boolDon’t capture stdout/stderr of tests.
profiler_runtime: boolIs the profiler runtime enabled for this target.
git_hash: boolRun tests which rely on commit version being compiled into the binaries.
rustfix_coverage: boolEnable this to generate a Rustfix coverage file.
bypass_ignore_backends: boolIgnore //@ ignore-backends directives.
skip: Vec<String>Skip tests matching SUBSTRING.
host_rustcflags: Vec<String>Flags to pass to rustc for host.
target_rustcflags: Vec<String>Flags to pass to rustc for target.
filters: Vec<String>Test name filters. All leftover arguments will be stored in this list.
Trait Implementations§
Source§impl Args for Args
impl Args for Args
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
ArgGroup::id][crate::ArgGroup::id] for this set of argumentsSource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreSource§impl FromArgMatches for Args
impl FromArgMatches for Args
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Parser for Args
impl Parser for Args
§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for Args
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnsafeUnpin for Args
impl UnwindSafe for Args
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1336 bytes