From: bors Date: Sat, 15 Apr 2017 12:13:27 +0000 (+0000) Subject: Auto merge of #41316 - suchithjn225:issue-41272, r=eddyb X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=c67cf5fddc1d2807e9942c1f9793c3230367332b;p=rust.git Auto merge of #41316 - suchithjn225:issue-41272, r=eddyb Do not desugar if-let-else to match arm guards Fixes #41272 Changed the desugaring code **Before** ```rust match { => , [_ if => ,] _ => [ | ()] } ``` **After** ```rust match { => , _ => [ | ()] } ``` With this fix, it doesn't cause E0301 --- c67cf5fddc1d2807e9942c1f9793c3230367332b