reference
reference copied to clipboard
The Rust Reference
Draft pending stabilization of 2024.
https://doc.rust-lang.org/reference/type-coercions.html#unsized-coercions > Additionally, a type `Foo` can implement `CoerceUnsized` when `T` implements `Unsize` or `CoerceUnsized`. This allows it to provide a unsized coercion to `Foo`. However, the [document](https://doc.rust-lang.org/std/ops/trait.CoerceUnsized.html) of `CoerceUnsized`...
I can't find any mention of exhaustivity checking on the [Match expressions](https://doc.rust-lang.org/nightly/reference/expressions/match-expr.html) page.
The following program is rejected: ````rust mod sub { fn prv() {} pub use prv as renamed; } ```` The restrictions which cause this rejection were introduced in [rfc136]. I...
The following program is rejected (though the `sub` module alone would be accepted with a warning): ````rust mod sub { struct Priv; pub fn get_value() -> Priv { todo!() }...
The section [Types](https://doc.rust-lang.org/reference/types.html) lists most kinds of types that can exist in a Rust program, but it does not list the types introduced by `async {}` and `async fn`. These...
This adds identifiers to the attributes.md file and its subchapters, being: * attributes/codegen.md * attributes/debugging.md * attributes/derive.md * attributes/diagnostics.md * attributes/limits.md * attributes/testing.md * attributes/type_system.md
I noticed that the section on [wildcard patterns](https://doc.rust-lang.org/reference/patterns.html#wildcard-pattern) says that: > Unlike identifier patterns, it does not copy, move or borrow the value it matches. However for a function parameter,...
This issue is part of async-await stabilization (see https://github.com/rust-lang/rust/issues/62149). We need to document the following things: - [x] grammar for `async fn` and describe their effects - [x] grammar for...
This rewrites the `abi` chapter, and adds [call compatibility](https://doc.rust-lang.org/core/primitive.fn.html#abi-compatibility) to the chapter.