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

I've been trying to research what zero cost abstractions Rust uses and I cannot find any meaningful info on anything other than [iterators](https://doc.rust-lang.org/stable/book/ch13-04-performance.html?highlight=zero%20cost) and [generics](https://doc.rust-lang.org/stable/book/ch10-01-syntax.html?highlight=zero%20cost#performance-of-code-using-generics). I've checked the main Rust...

## Please don't rush with answer =) Hello, everyone. First of all, I do realize, that this question may look trivial for an experienced rust user, but for newcomer it...

Not sure if this is necessary, but I wasn't 100% sure that crlf line endings would be supported (though in hindsight would be strange if they weren't)

The following is valid, but the prior language suggests it is not: ```rust #[repr(transparent)] enum Banana { Phone, } #[repr(transparent)] struct Blooey(()); #[repr(transparent)] struct Orange; ``` Of note: it's still...

This feature is on track to be stabilized soon: https://github.com/rust-lang/rust/issues/63063 Until the feature is stabilized, CI will fail, because we can't use feature gates in the reference and we can't...

S-waiting-on-stabilization
S-waiting-on-author

PR prompted by https://github.com/dtolnay/syn/issues/771 ```rust macro_rules! m { (#[doc = $tt:tt]) => { stringify!($tt) }; } fn main() { println!(m! { ///test }); // output: r"test" } ``` Will also...

Just like we have the punctuation table that has links to where it's used, it'd be nice to have a table for keywords and where the keywords are used.

Spawned off of https://github.com/rust-lang/rust/issues/81211#issuecomment-767111563 We need better documentation of the method resolution rules, in terms of how ambiguities are resolved (to either a single method or to a method ambiguity...

[The 'Dynamically Sized Types' page](https://doc.rust-lang.org/reference/dynamically-sized-types.html) pretty clearly states that the size of a pointer to a DST is twice the size of a regular pointer: > - [Pointer types](https://doc.rust-lang.org/reference/types/pointer.html) to...