]> git.lizzy.rs Git - rust.git/commitdiff
stop having `'static` in dump-mir names
authorAriel Ben-Yehuda <arielb1@mail.tau.ac.il>
Thu, 16 Jun 2016 13:52:37 +0000 (16:52 +0300)
committerAriel Ben-Yehuda <arielb1@mail.tau.ac.il>
Thu, 16 Jun 2016 13:54:20 +0000 (16:54 +0300)
src/librustc_mir/transform/simplify_branches.rs
src/librustc_mir/transform/simplify_cfg.rs

index f93de6ca382bb61298cf758a4519acde6a9e2ab7..b4960c677a16ecf89ac4b92ab51211f95a338427 100644 (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" }
 }
index 8bbcc3fe2d70f60ac3a2a9a50f7e18c02c993be7..c0e7e54050adf7674eda4a86f99c54eec0a1c6a4 100644 (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> {