pub(crate) enum CompiletestMode {
Show 15 variants
Assembly,
Codegen,
CodegenUnits,
CoverageMap,
CoverageRun,
Crashes,
Debuginfo,
Incremental,
MirOpt,
Pretty,
RunMake,
Rustdoc,
RustdocJs,
RustdocJson,
Ui,
}Expand description
Enum of all the “test modes” understood by compiletest.
Some of these mode names happen to overlap with the names of test suite directories, but the relationship between modes and suites is not 1:1. For example:
- Mode
uiis used by suitestests/uiandtests/rustdoc-ui - Suite
tests/coverageuses modescoverage-mapandcoverage-run
Variants§
Assembly
Codegen
CodegenUnits
CoverageMap
CoverageRun
Crashes
Debuginfo
Incremental
MirOpt
Pretty
RunMake
Rustdoc
RustdocJs
RustdocJson
Ui
Implementations§
Source§impl CompiletestMode
impl CompiletestMode
Sourcepub(crate) const fn as_str(self) -> &'static str
pub(crate) const fn as_str(self) -> &'static str
Returns a string representing this mode, which can be passed to compiletest via a command-line argument.
These mode names must be kept in sync with the ones understood by
compiletest’s TestMode, but they change so rarely that doing so
manually should not be burdensome.
Trait Implementations§
Source§impl Clone for CompiletestMode
impl Clone for CompiletestMode
Source§fn clone(&self) -> CompiletestMode
fn clone(&self) -> CompiletestMode
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CompiletestMode
impl Debug for CompiletestMode
Source§impl Display for CompiletestMode
impl Display for CompiletestMode
Source§impl Hash for CompiletestMode
impl Hash for CompiletestMode
Source§impl PartialEq for CompiletestMode
impl PartialEq for CompiletestMode
impl Copy for CompiletestMode
impl Eq for CompiletestMode
impl StructuralPartialEq for CompiletestMode
Auto Trait Implementations§
impl Freeze for CompiletestMode
impl RefUnwindSafe for CompiletestMode
impl Send for CompiletestMode
impl Sync for CompiletestMode
impl Unpin for CompiletestMode
impl UnwindSafe for CompiletestMode
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)§impl<T> Pointable for T
impl<T> Pointable for T
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: 1 byte
Size for each variant:
Assembly: 0 bytesCodegen: 0 bytesCodegenUnits: 0 bytesCoverageMap: 0 bytesCoverageRun: 0 bytesCrashes: 0 bytesDebuginfo: 0 bytesIncremental: 0 bytesMirOpt: 0 bytesPretty: 0 bytesRunMake: 0 bytesRustdoc: 0 bytesRustdocJs: 0 bytesRustdocJson: 0 bytesUi: 0 bytes