Skip to content

Commit

Permalink
stop having 'static in dump-mir names
Browse files Browse the repository at this point in the history
  • Loading branch information
Ariel Ben-Yehuda committed Jun 16, 2016
1 parent 63cdd7a commit 5da8bf8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/librustc_mir/transform/simplify_branches.rs
Expand Up @@ -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" }
}
3 changes: 3 additions & 0 deletions src/librustc_mir/transform/simplify_cfg.rs
Expand Up @@ -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> {
Expand Down

0 comments on commit 5da8bf8

Please sign in to comment.