Auto merge of #4592 - rust-lang:transmute-collection, r=flip1995
New lint: `unsound_collection_transmute` changelog: Add `unsound_collection_transmute` lint This fixes #4515
This commit is contained in:
commit
e2393b09ac
9 changed files with 491 additions and 258 deletions
|
@ -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",
|
||||
|
@ -2030,6 +2030,13 @@ pub const ALL_LINTS: [Lint; 318] = [
|
|||
deprecation: None,
|
||||
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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue