Auto merge of #85437 - GuillaumeGomez:rollup-3jcirty, r=GuillaumeGomez
Rollup of 7 pull requests Successful merges: - #84587 (rustdoc: Make "rust code block is empty" and "could not parse code block" warnings a lint (`INVALID_RUST_CODEBLOCKS`)) - #85280 (Toggle-wrap items differently than top-doc.) - #85338 (Implement more Iterator methods on core::iter::Repeat) - #85339 (Report an error if a lang item has the wrong number of generic arguments) - #85369 (Suggest borrowing if a trait implementation is found for &/&mut <type>) - #85393 (Suppress spurious errors inside `async fn`) - #85415 (Clean up remnants of BorrowOfPackedField) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This commit is contained in:
commit
a5560a6a90
42 changed files with 798 additions and 131 deletions
|
@ -32,7 +32,6 @@ pub enum UnsafetyViolationDetails {
|
|||
UseOfInlineAssembly,
|
||||
InitializingTypeWith,
|
||||
CastOfPointerToInt,
|
||||
BorrowOfPackedField,
|
||||
UseOfMutableStatic,
|
||||
UseOfExternStatic,
|
||||
DerefOfRawPointer,
|
||||
|
@ -64,11 +63,6 @@ impl UnsafetyViolationDetails {
|
|||
CastOfPointerToInt => {
|
||||
("cast of pointer to int", "casting pointers to integers in constants")
|
||||
}
|
||||
BorrowOfPackedField => (
|
||||
"borrow of packed field",
|
||||
"fields of packed structs might be misaligned: dereferencing a misaligned pointer \
|
||||
or even just creating a misaligned reference is undefined behavior",
|
||||
),
|
||||
UseOfMutableStatic => (
|
||||
"use of mutable static",
|
||||
"mutable statics can be mutated by multiple threads: aliasing violations or data \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue