reference
reference copied to clipboard
The Rust Reference
https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules "The orphan rule states that a trait implementation is only allowed if either the trait or at least one of the types in the implementation is defined in the...
[[items.extern.attributes.link.intro]](https://doc.rust-lang.org/reference/items/external-blocks.html?highlight=%23%5Blink%5D#r-items.extern.attributes.link.intro) states: > The link attribute specifies the name of a native library that the compiler should link with for the items within an extern block. The incorrect part of...
tracking issue: https://github.com/rust-lang/rust/issues/82232 stabilization PR: https://github.com/rust-lang/rust/pull/140261
Document borrowing rules for `repr(packed)` fields (E0793). This documents the behavior implemented in rust-lang/rust#145419: - Disallow borrowing when the target’s ABI alignment exceeds the packed alignment (hard error E0793). -...