diff options
| author | bors <bors@rust-lang.org> | 2019-10-08 05:51:07 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-10-08 05:51:07 +0000 |
| commit | e2393b09ac234aa19a2ffa368ef8d25ce645eaa3 (patch) | |
| tree | eec87a9a505903db2c3e4121eac42270d40f7977 /src/lintlist | |
| parent | df80193bda8ae3a5e720612fe24fa313af098812 (diff) | |
| parent | 27fa2b7944d79c1fa16445628fef268bdb34f625 (diff) | |
| download | rust-e2393b09ac234aa19a2ffa368ef8d25ce645eaa3.tar.gz rust-e2393b09ac234aa19a2ffa368ef8d25ce645eaa3.zip | |
Auto merge of #4592 - rust-lang:transmute-collection, r=flip1995
New lint: `unsound_collection_transmute` changelog: Add `unsound_collection_transmute` lint This fixes #4515
Diffstat (limited to 'src/lintlist')
| -rw-r--r-- | src/lintlist/mod.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lintlist/mod.rs b/src/lintlist/mod.rs index d56ccdfd089..2a38c2968d2 100644 --- a/src/lintlist/mod.rs +++ b/src/lintlist/mod.rs @@ -6,7 +6,7 @@ pub use lint::Lint; pub use lint::LINT_LEVELS; // begin lint list, do not remove this comment, it’s used in `update_lints` -pub const ALL_LINTS: [Lint; 318] = [ +pub const ALL_LINTS: [Lint; 319] = [ Lint { name: "absurd_extreme_comparisons", group: "correctness", @@ -2031,6 +2031,13 @@ pub const ALL_LINTS: [Lint; 318] = [ module: "misc_early", }, Lint { + name: "unsound_collection_transmute", + group: "correctness", + desc: "transmute between collections of layout-incompatible types", + deprecation: None, + module: "transmute", + }, + Lint { name: "unused_io_amount", group: "correctness", desc: "unused written/read amount", |
