make unaligned_refereces future-incompat lint warn-by-default, and remove the safe_packed_borrows lint that it replaces
This commit is contained in:
parent
f811f14006
commit
fb4f48e032
25 changed files with 251 additions and 415 deletions
|
@ -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)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue