diff options
| author | Jieyou Xu <jieyouxu@outlook.com> | 2025-07-12 15:59:16 +0800 |
|---|---|---|
| committer | Jieyou Xu <jieyouxu@outlook.com> | 2025-07-12 15:59:16 +0800 |
| commit | b4dfd51bac242deca51442355784274beb16bd43 (patch) | |
| tree | 5f5a0abb629d0dbd9a860211b71fb1dad0993be9 /src | |
| parent | 832b6273bdc5bbbe22d7274a5c424d818fad0ef8 (diff) | |
| download | rust-b4dfd51bac242deca51442355784274beb16bd43.tar.gz rust-b4dfd51bac242deca51442355784274beb16bd43.zip | |
Do not allow defaults for `Mode` and `Config`
They do not have sensible defaults, and it is crucial that we get them right.
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/compiletest/src/common.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/tools/compiletest/src/common.rs b/src/tools/compiletest/src/common.rs index bbc002a9b87..943e800e72c 100644 --- a/src/tools/compiletest/src/common.rs +++ b/src/tools/compiletest/src/common.rs @@ -34,12 +34,6 @@ string_enum! { } } -impl Default for Mode { - fn default() -> Self { - Mode::Ui - } -} - impl Mode { pub fn aux_dir_disambiguator(self) -> &'static str { // Pretty-printing tests could run concurrently, and if they do, @@ -151,7 +145,7 @@ pub enum Sanitizer { /// /// FIXME: audit these options to make sure we are not hashing less than necessary for build stamp /// (for changed test detection). -#[derive(Debug, Default, Clone)] +#[derive(Debug, Clone)] pub struct Config { /// Some test [`Mode`]s support [snapshot testing], where a *reference snapshot* of outputs (of /// `stdout`, `stderr`, or other form of artifacts) can be compared to the *actual output*. |
