]> git.lizzy.rs Git - rust.git/commit
Auto merge of #3772 - flip1995:ice-3719, r=Manishearth
authorbors <bors@rust-lang.org>
Mon, 25 Feb 2019 12:30:35 +0000 (12:30 +0000)
committerbors <bors@rust-lang.org>
Mon, 25 Feb 2019 12:30:35 +0000 (12:30 +0000)
commit1ac6f4e9ae77296abe4d46aec33fa76108442d7f
tree33f27a0822088588448195968fcf39f9562a621c
parentcd29740e6ece9bc5a99a72b987e8e6e39e67fc72
parent75f39881d4ad76a2aa2bfacdfbd8d49e5d92a0e8
Auto merge of #3772 - flip1995:ice-3719, r=Manishearth

Fix ICE #3719+#3718 in lint match_ref_pats

Fixes #3719
This conveniently also fixes #3718

The ICE occurs when the match expression was a macro call, where the macro was defined in another file. Since we don't have the ability to reproduce this behavior with our UI tests (AFAIK), I couldn't add a test reproducing this ICE.. However, I added a test which is related to the ICE, to show the new behavior of the lint.

I tested it with the mscheme repo locally and the ICE didn't happen anymore.

r? @matthiaskrgr