We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
'static
1 parent 63cdd7a commit 5da8bf8Copy full SHA for 5da8bf8
src/librustc_mir/transform/simplify_branches.rs
@@ -60,4 +60,7 @@ impl<'l> Pass for SimplifyBranches<'l> {
60
fn disambiguator<'a>(&'a self) -> Option<Box<fmt::Display+'a>> {
61
Some(Box::new(self.label))
62
}
63
+
64
+ // avoid calling `type_name` - it contains `<'static>`
65
+ fn name(&self) -> &str { "SimplifyBranches" }
66
src/librustc_mir/transform/simplify_cfg.rs
@@ -62,6 +62,9 @@ impl<'l> Pass for SimplifyCfg<'l> {
67
+ fn name(&self) -> &str { "SimplifyCfg" }
68
69
70
pub struct CfgSimplifier<'a, 'tcx: 'a> {
0 commit comments