reference icon indicating copy to clipboard operation
reference copied to clipboard

The Rust Reference

Results 338 reference issues
Sort by recently updated
recently updated
newest added

In the [Object Safety section](https://doc.rust-lang.org/reference/items/traits.html#object-safety), it says: > * Explicitly non-dispatchable functions require: > * Have a `where Self: Sized` bound (receiver type of `Self` (i.e. `self`) implies this). This...

Language Cleanup
A-types

Enumerations "An enum where no constructors contain fields **are called** a field-less enum." 1. grammar: **are called** may be changed to **is called.** 2. possibly misleading: "where no **constructors**" ....

Language Cleanup

This confused me for a while, but this is just fundamentally how static libraries work. Wading through some history on this, I think when specifying `--crate-type=staticlib`, rustc used to output...

https://github.com/rust-lang/stdarch/issues/1432 https://github.com/rust-lang/stdarch/pull/1527 r? @Amanieu

This documents the `#[unix_sigpipe = "sig_dfl"]` attribute that I propose to stabilize in https://github.com/rust-lang/rust/pull/120832. The tracking issue is https://github.com/rust-lang/rust/issues/97889.

S-waiting-on-stabilization

For stabilization in https://github.com/rust-lang/rust/pull/120845.

S-waiting-on-stabilization

https://doc.rust-lang.org/stable/reference/types/pointer.html#raw-pointers-const-and-mut could you advise what it means by "lifecycle of any other value"? what does this sentence intend to convey? Thanks!

Updates the reference for https://github.com/rust-lang/rfcs/pull/3535. This is not 100% implemented yet: - parts of it are pending on https://github.com/rust-lang/rust/pull/116284 - also the (recursive) structural equality checker in rustc currently sometimes...

S-waiting-on-stabilization

There seems to be a rule missing from the object safety list: https://github.com/rust-lang/reference/blob/master/src/items/traits.md#object-safety I'm not sure how to properly word the rule, but it something along that lines that "Supertraits...

A-types

In the [Identifier Patterns](https://doc.rust-lang.org/reference/patterns.html#identifier-patterns) section it is mentioned that path patterns take precedence over identifier patterns. I thought adding the following example would be helpful to demonstrate this: ```rust fn...