stop having 'static in dump-mir names

This commit is contained in:
Ariel Ben-Yehuda 2016-06-16 16:52:37 +03:00
parent 63cdd7ab50
commit 5da8bf8402
2 changed files with 6 additions and 0 deletions

View File

@ -60,4 +60,7 @@ impl<'l> Pass for SimplifyBranches<'l> {
fn disambiguator<'a>(&'a self) -> Option<Box<fmt::Display+'a>> {
Some(Box::new(self.label))
}
// avoid calling `type_name` - it contains `<'static>`
fn name(&self) -> &str { "SimplifyBranches" }
}

View File

@ -62,6 +62,9 @@ impl<'l> Pass for SimplifyCfg<'l> {
fn disambiguator<'a>(&'a self) -> Option<Box<fmt::Display+'a>> {
Some(Box::new(self.label))
}
// avoid calling `type_name` - it contains `<'static>`
fn name(&self) -> &str { "SimplifyCfg" }
}
pub struct CfgSimplifier<'a, 'tcx: 'a> {