Move WasiExecModel.

All the other option enums are defined in `config.rs`.
This commit is contained in:
Nicholas Nethercote 2023-11-30 09:45:03 +11:00
parent 5f11d19be5
commit 4b90b26fd8
2 changed files with 7 additions and 7 deletions

View File

@ -3143,6 +3143,12 @@ pub fn needs_analysis(&self) -> bool {
}
}
#[derive(Clone, Hash, PartialEq, Eq, Debug)]
pub enum WasiExecModel {
Command,
Reactor,
}
/// Command-line arguments passed to the compiler have to be incorporated with
/// the dependency tracking system for incremental compilation. This module
/// provides some utilities to make this more convenient.
@ -3168,9 +3174,9 @@ pub(crate) mod dep_tracking {
LocationDetail, LtoCli, OomStrategy, OptLevel, OutFileName, OutputType, OutputTypes,
Polonius, RemapPathScopeComponents, ResolveDocLinks, SourceFileHashAlgorithm,
SplitDwarfKind, SwitchWithOptPath, SymbolManglingVersion, TraitSolver, TrimmedDefPaths,
WasiExecModel,
};
use crate::lint;
use crate::options::WasiExecModel;
use crate::utils::NativeLib;
use rustc_data_structures::stable_hasher::Hash64;
use rustc_errors::LanguageIdentifier;

View File

@ -1973,9 +1973,3 @@ pub(crate) fn parse_llvm_module_flag(
// - compiler/rustc_interface/src/tests.rs
// - src/doc/unstable-book/src/compiler-flags
}
#[derive(Clone, Hash, PartialEq, Eq, Debug)]
pub enum WasiExecModel {
Command,
Reactor,
}