Skip to content

Commit 142932a

Browse files
committed
Set unaligned_references lint to deny in rustc_data_structures
To detect misuse of private packed field in `PackedFingerprint`.
1 parent 05dde13 commit 142932a

File tree

1 file changed

+1
-0
lines changed
  • compiler/rustc_data_structures/src

1 file changed

+1
-0
lines changed

compiler/rustc_data_structures/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#![feature(once_cell)]
3232
#![feature(maybe_uninit_uninit_array)]
3333
#![allow(rustc::default_hash_types)]
34+
#![deny(unaligned_references)]
3435

3536
#[macro_use]
3637
extern crate tracing;

0 commit comments

Comments
 (0)