rust/src/librustc_lint
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
..
bad_style.rs rustc: always include elidable lifetimes in HIR types. 2017-01-28 02:56:46 +02:00
builtin.rs Merge ty::TyBox into ty::TyAdt 2017-01-30 23:14:15 +03:00
Cargo.toml Bump version, upgrade bootstrap 2017-02-03 13:25:46 -08:00
lib.rs Rollup merge of #39009 - canndrew:default-unit-warnings, r=nikomatsakis 2017-02-05 09:14:39 -05:00
types.rs Rollup merge of #39009 - canndrew:default-unit-warnings, r=nikomatsakis 2017-02-05 09:14:39 -05:00
unused.rs Add warning for () to ! switch 2017-02-03 18:48:15 +08:00