mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Merge commit 'aa9bc86125
' into sync-from-ra
This commit is contained in:
parent
1570299af4
commit
c48062fe2a
598 changed files with 57696 additions and 17615 deletions
|
@ -4230,7 +4230,7 @@ pub union GenericUnion<T: Copy> { // Unions with non-`Copy` fields are unstable.
|
|||
pub const THIS_IS_OKAY: GenericUnion<()> = GenericUnion { field: () };
|
||||
```
|
||||
|
||||
Like transarent `struct`s, a transparent `union` of type `U` has the same
|
||||
Like transparent `struct`s, a transparent `union` of type `U` has the same
|
||||
layout, size, and ABI as its single non-ZST field. If it is generic over a type
|
||||
`T`, and all its fields are ZSTs except for exactly one field of type `T`, then
|
||||
it has the same layout and ABI as `T` (even if `T` is a ZST when monomorphized).
|
||||
|
@ -6548,7 +6548,7 @@ subtracting elements in an Add impl."##,
|
|||
},
|
||||
Lint {
|
||||
label: "clippy::suspicious_assignment_formatting",
|
||||
description: r##"Checks for use of the non-existent `=*`, `=!` and `=-`
|
||||
description: r##"Checks for use of the nonexistent `=*`, `=!` and `=-`
|
||||
operators."##,
|
||||
},
|
||||
Lint {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue