Skip to main content

Args

Struct Args 

Source
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: Utf8PathBuf

Path to host shared libraries.

§run_lib_path: Utf8PathBuf

Path to target shared libraries.

§rustc_path: Utf8PathBuf

Path to rustc to use for compiling.

§python: String

Path to python to use for doc tests.

§src_root: Utf8PathBuf

Directory containing sources.

§src_test_suite_root: Utf8PathBuf

Directory containing test suite sources.

§build_root: Utf8PathBuf

Path to root build directory.

§build_test_suite_root: Utf8PathBuf

Path to test suite specific build directory.

§sysroot_base: Utf8PathBuf

Directory containing the compiler sysroot.

§stage: u32

Stage number under test.

§stage_id: String

The target-stage identifier.

§mode: TestMode

Which sort of compile tests to run.

§suite: TestSuite

Which suite of compile tests to run.

§cc: String

Path to a C compiler.

§cxx: String

Path to a C++ compiler.

§cflags: String

Flags for the C compiler.

§cxxflags: String

Flags for the CXX compiler.

§llvm_components: String

List of LLVM components built in.

§channel: String

Current Rust channel.

§nightly_branch: String

Name of the git branch for nightly.

§git_merge_commit_email: String

Email address used for finding merge commits.

§minicore_path: Utf8PathBuf

Path to minicore aux library.

§jobs: u32

Number of parallel jobs bootstrap was configured with.

§host: String

The host to build for.

§target: String

The 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: String

Path 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: bool

Overwrite stderr/stdout files instead of complaining about a mismatch.

§fail_fast: bool

Stop as soon as possible after any test fails.

§ignored: bool

Run tests marked as ignored.

§has_enzyme: bool

Run tests that require enzyme.

§has_offload: bool

Run tests that require offload.

§with_rustc_debug_assertions: bool

Whether rustc was built with debug assertions.

§with_std_debug_assertions: bool

Whether std was built with debug assertions.

§with_std_remap_debuginfo: bool

Whether std was built with remapping.

§exact: bool

Filters match exactly.

§rust_randomized_layout: bool

Set this when rustc/stdlib were compiled with randomized layouts.

§optimize_tests: bool

Run tests with optimizations enabled.

§verbose: bool

Run tests verbosely, showing all output.

§verbose_run_make_subprocess_output: bool

Show verbose subprocess output for successful run-make tests.

§system_llvm: bool

Is LLVM the system LLVM.

§force_rerun: bool

Rerun tests even if the inputs are unchanged.

§only_modified: bool

Only run tests that result been modified.

§nocapture: bool§no_capture: bool

Don’t capture stdout/stderr of tests.

§profiler_runtime: bool

Is the profiler runtime enabled for this target.

§git_hash: bool

Run tests which rely on commit version being compiled into the binaries.

§rustfix_coverage: bool

Enable this to generate a Rustfix coverage file.

§bypass_ignore_backends: bool

Ignore //@ 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

Source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
Source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
Source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via [FromArgMatches::update_from_arg_matches_mut] Read more
Source§

impl CommandFactory for Args

Source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
Source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
Source§

impl FromArgMatches for Args

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
Source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

impl Parser for Args

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Update from iterator, return Err on 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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more

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