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

@@ -25,8 +25,8 @@ pub fn subtest(parsed: &TestCommand) -> Result<Box<SubTest>> {
}
impl SubTest for TestDCE {
fn name(&self) -> Cow<str> {
Cow::from("dce")
fn name(&self) -> &'static str {
"dce"
}
fn is_mutating(&self) -> bool {