Use &'static str rather than Cow<str> for pass names.

This commit is contained in:
Dan Gohman
2018-06-04 16:17:02 -07:00
parent 6c003d68cd
commit ae8fc69406
14 changed files with 27 additions and 27 deletions

View File

@@ -45,7 +45,7 @@ impl<'a> Context<'a> {
/// trait object.
pub trait SubTest {
/// Name identifying this subtest. Typically the same as the test command.
fn name(&self) -> Cow<str>;
fn name(&self) -> &'static str;
/// Should the verifier be run on the function before running the test?
fn needs_verifier(&self) -> bool {