rust/src/librustc_mir
Corey Farwell 4f8ce9efb9 Rollup merge of #39009 - canndrew:default-unit-warnings, r=nikomatsakis
Add warning for () to ! switch

With feature(never_type) enabled diverging type variables will default to `!` instead of `()`. This can cause breakages where a trait is resolved on such a type.

This PR emits a future-compatibility warning when it sees this happen.
2017-02-05 09:14:39 -05:00
..
2017-02-03 18:48:15 +08:00
2017-02-03 13:25:46 -08:00
2016-10-28 10:37:24 +03:00
2017-02-03 13:25:46 -08:00