Add misaligned_transmute lint

This commit is contained in:
Devon Hollowood
2018-01-25 00:33:41 -08:00
parent 7812038206
commit 0413b3f6cf
5 changed files with 56 additions and 4 deletions

View File

@@ -603,6 +603,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) {
transmute::TRANSMUTE_PTR_TO_REF,
transmute::USELESS_TRANSMUTE,
transmute::WRONG_TRANSMUTE,
transmute::MISALIGNED_TRANSMUTE,
types::ABSURD_EXTREME_COMPARISONS,
types::BORROWED_BOX,
types::BOX_VEC,