Skip to content

Commit 4b90b26

Browse files
committed
Move WasiExecModel.
All the other option enums are defined in `config.rs`.
1 parent 5f11d19 commit 4b90b26

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

compiler/rustc_session/src/config.rs

+7-1
Original file line numberDiff line numberDiff line change
@@ -3143,6 +3143,12 @@ impl PpMode {
31433143
}
31443144
}
31453145

3146+
#[derive(Clone, Hash, PartialEq, Eq, Debug)]
3147+
pub enum WasiExecModel {
3148+
Command,
3149+
Reactor,
3150+
}
3151+
31463152
/// Command-line arguments passed to the compiler have to be incorporated with
31473153
/// the dependency tracking system for incremental compilation. This module
31483154
/// provides some utilities to make this more convenient.
@@ -3168,9 +3174,9 @@ pub(crate) mod dep_tracking {
31683174
LocationDetail, LtoCli, OomStrategy, OptLevel, OutFileName, OutputType, OutputTypes,
31693175
Polonius, RemapPathScopeComponents, ResolveDocLinks, SourceFileHashAlgorithm,
31703176
SplitDwarfKind, SwitchWithOptPath, SymbolManglingVersion, TraitSolver, TrimmedDefPaths,
3177+
WasiExecModel,
31713178
};
31723179
use crate::lint;
3173-
use crate::options::WasiExecModel;
31743180
use crate::utils::NativeLib;
31753181
use rustc_data_structures::stable_hasher::Hash64;
31763182
use rustc_errors::LanguageIdentifier;

compiler/rustc_session/src/options.rs

-6
Original file line numberDiff line numberDiff line change
@@ -1973,9 +1973,3 @@ written to standard error output)"),
19731973
// - compiler/rustc_interface/src/tests.rs
19741974
// - src/doc/unstable-book/src/compiler-flags
19751975
}
1976-
1977-
#[derive(Clone, Hash, PartialEq, Eq, Debug)]
1978-
pub enum WasiExecModel {
1979-
Command,
1980-
Reactor,
1981-
}

0 commit comments

Comments
 (0)