about summary refs log tree commit diff
path: root/compiler/rustc_data_structures/src
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-04-16 07:12:43 +0200
committerGitHub <noreply@github.com>2022-04-16 07:12:43 +0200
commit49a31cdc1df848e9de07687af5c1d3d6fa5edb66 (patch)
tree907b609204519cf6a8e597adf389e945bf9278af /compiler/rustc_data_structures/src
parent6dd92bf9d1d287ac113ce4ebec2c3ee01225d999 (diff)
parent1a6c2ff4fd1d95c593d781b8743c78cc0433dbe6 (diff)
downloadrust-49a31cdc1df848e9de07687af5c1d3d6fa5edb66.tar.gz
rust-49a31cdc1df848e9de07687af5c1d3d6fa5edb66.zip
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.
Diffstat (limited to 'compiler/rustc_data_structures/src')
-rw-r--r--compiler/rustc_data_structures/src/lib.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler/rustc_data_structures/src/lib.rs b/compiler/rustc_data_structures/src/lib.rs
index 1a3fe652521..98d4870e645 100644
--- a/compiler/rustc_data_structures/src/lib.rs
+++ b/compiler/rustc_data_structures/src/lib.rs
@@ -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]