bors 2755d12fa6 Auto merge of #3744 - phansch:fix3144, r=oli-obk
Fix ICE in needless_pass_by_value lint

If I understand it correctly, we were first creating a type with a
`RegionKind::ReErased` region and then deleted it again in
`util::implements_trait` with:

    cx.tcx.erase_regions(&ty);

causing the type query to fail.

It looks like using `ReEmpty` works around that deletion.

Fixes #3144
2019-02-10 13:39:46 +00:00
..
2019-02-06 08:17:39 +01:00
2019-01-29 08:19:05 +01:00
2019-01-21 13:59:49 +01:00
2019-01-31 06:32:29 +02:00
2019-01-31 06:32:29 +02:00
2019-01-27 13:46:22 +01:00
2019-02-10 10:48:24 +01:00
2019-01-15 08:09:47 +02:00
2019-02-01 13:21:19 -05:00
2019-01-27 13:46:22 +01:00
2019-01-13 19:57:19 +01:00
2019-01-13 19:57:19 +01:00
2019-01-13 19:57:19 +01:00
2019-01-29 07:22:08 +02:00
2019-01-29 07:22:08 +02:00
2019-01-22 15:16:54 +01:00
2019-01-22 15:16:54 +01:00
2019-01-22 15:16:54 +01:00