diff options
| author | Tyson Nottingham <tgnottingham@gmail.com> | 2020-11-20 01:13:15 -0800 |
|---|---|---|
| committer | Tyson Nottingham <tgnottingham@gmail.com> | 2020-11-20 01:13:15 -0800 |
| commit | 142932ab197bbb0e1f64fa22d5a0d1c3e0fec83a (patch) | |
| tree | 6668afc231c74f723b2b2bf3912203af5778bbe5 /compiler/rustc_data_structures/src | |
| parent | 05dde137cad043738e94a47f63256f1e66c83768 (diff) | |
| download | rust-142932ab197bbb0e1f64fa22d5a0d1c3e0fec83a.tar.gz rust-142932ab197bbb0e1f64fa22d5a0d1c3e0fec83a.zip | |
Set unaligned_references lint to deny in rustc_data_structures
To detect misuse of private packed field in `PackedFingerprint`.
Diffstat (limited to 'compiler/rustc_data_structures/src')
| -rw-r--r-- | compiler/rustc_data_structures/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_data_structures/src/lib.rs b/compiler/rustc_data_structures/src/lib.rs index 6b952f20dd1..01604477c3e 100644 --- a/compiler/rustc_data_structures/src/lib.rs +++ b/compiler/rustc_data_structures/src/lib.rs @@ -31,6 +31,7 @@ #![feature(once_cell)] #![feature(maybe_uninit_uninit_array)] #![allow(rustc::default_hash_types)] +#![deny(unaligned_references)] #[macro_use] extern crate tracing; |
