-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
Make a bunch of things public so that miri can use them
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
//! Custom flag for setting the edition for all tests | ||
|
||
use crate::{build_manager::BuildManager, per_test_config::TestConfig, Errored}; | ||
|
||
use super::Flag; | ||
|
||
#[derive(Debug)] | ||
/// Set the edition of the tests | ||
pub struct Edition(pub String); | ||
|
||
impl Flag for Edition { | ||
fn must_be_unique(&self) -> bool { | ||
true | ||
} | ||
fn clone_inner(&self) -> Box<dyn Flag> { | ||
Box::new(Edition(self.0.clone())) | ||
} | ||
|
||
fn apply( | ||
&self, | ||
cmd: &mut std::process::Command, | ||
_config: &TestConfig, | ||
_build_manager: &BuildManager, | ||
) -> Result<(), Errored> { | ||
cmd.arg("--edition").arg(&self.0); | ||
Ok(()) | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.