1
Fork 0

Rollup merge of #95372 - RalfJung:unaligned_references, r=oli-obk

make unaligned_references lint deny-by-default

This lint has been warn-by-default for a year now (since https://github.com/rust-lang/rust/pull/82525), so I think it is time to crank it up a bit. Code that triggers the lint causes UB (without `unsafe`) when executed, so we really don't want people to write code like this.
This commit is contained in:
Dylan DPC 2022-04-16 07:12:43 +02:00 committed by GitHub
commit 49a31cdc1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 490 additions and 41 deletions

View file

@ -27,7 +27,6 @@
#![feature(thread_id_value)]
#![feature(vec_into_raw_parts)]
#![allow(rustc::default_hash_types)]
#![deny(unaligned_references)]
#![allow(rustc::potential_query_instability)]
#[macro_use]