about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2019-05-10 19:40:05 -0700
committerManish Goregaokar <manishsmail@gmail.com>2019-05-10 23:40:42 -0700
commit5661e5947f20030cf6f5d6c5715e81253fabd1a5 (patch)
tree9b2d5df16e8abcab2ba6bc65234633717b6d6863
parent26ebc3e9a10a6b8748dfe256c8f6d478c88d2ee4 (diff)
downloadrust-5661e5947f20030cf6f5d6c5715e81253fabd1a5.tar.gz
rust-5661e5947f20030cf6f5d6c5715e81253fabd1a5.zip
Add IfDesugar to desugaring_name
-rw-r--r--clippy_lints/src/utils/author.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/clippy_lints/src/utils/author.rs b/clippy_lints/src/utils/author.rs
index e71c6cc8f85..6ea154efc10 100644
--- a/clippy_lints/src/utils/author.rs
+++ b/clippy_lints/src/utils/author.rs
@@ -665,6 +665,10 @@ fn desugaring_name(des: hir::MatchSource) -> String {
             "MatchSource::IfLetDesugar {{ contains_else_clause: {} }}",
             contains_else_clause
         ),
+        hir::MatchSource::IfDesugar { contains_else_clause } => format!(
+            "MatchSource::IfDesugar {{ contains_else_clause: {} }}",
+            contains_else_clause
+        ),
         hir::MatchSource::AwaitDesugar => "MatchSource::AwaitDesugar".to_string(),
     }
 }