1
Fork 0

make unaligned_refereces future-incompat lint warn-by-default, and remove the safe_packed_borrows lint that it replaces

This commit is contained in:
Ralf Jung 2021-02-25 19:38:53 +01:00
parent f811f14006
commit fb4f48e032
25 changed files with 251 additions and 415 deletions

View file

@ -23,15 +23,9 @@ pub enum UnsafetyViolationKind {
General,
/// Permitted both in `const fn`s and regular `fn`s.
GeneralAndConstFn,
/// Borrow of packed field.
/// Has to be handled as a lint for backwards compatibility.
BorrowPacked,
/// Unsafe operation in an `unsafe fn` but outside an `unsafe` block.
/// Has to be handled as a lint for backwards compatibility.
UnsafeFn,
/// Borrow of packed field in an `unsafe fn` but outside an `unsafe` block.
/// Has to be handled as a lint for backwards compatibility.
UnsafeFnBorrowPacked,
}
#[derive(Copy, Clone, PartialEq, TyEncodable, TyDecodable, HashStable, Debug)]