-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The Rust Reference lacks a table of contents #17505
Comments
👍 for sure. |
I really miss the detailed TOC of the language reference. Cf., eg. It also served me as an index. |
The sections are all there, just hidden by CSS; the old manual has some custom CSS to override this and display them all. |
Yes it had some CSS injected in the Makefile via It's just a matter of adding it back to the Makefile. |
Thanks for the pointer, I'll look at it tonight. But if someone wants to tackle it before, feel free :p |
@adrientetar it's stilll called in the makefile, I'll look at the diffs to see what changed :/ |
@gamazeps At lines 36-37, rename |
Ahhhhh so that's what it is. Whoops! Sent from my iPhone
|
Use proper `ImplTraits` in `insert_inference_vars_for_impl_trait` Fixes rust-lang#17199 and fixes rust-lang#17403 In the previous implementation, I passed `rpits` as a function parameter and used `idx` of `ImplTraitId` for indexing `ImplTrait`. https://github.com/rust-lang/rust-analyzer/blob/4e836c622a7bdab41be8e82733dd9fe40af128b2/crates/hir-ty/src/infer.rs#L881-L887 But that `idx` is rather a "local" one, so in the cases like mentioned issues, the async function that can be expanded roughly as ```rust type TypeAlias = impl Something; fn expanded_async() -> impl Future<Output = TypeAlias> { ... } ``` there are two bundles of `ImplTraits`; one for the `impl Future` and the other one for `TypeAlias`. So using `idx` with `rpits` returns `ImplTrait` for `impl Future` even if we are asking for `TypeAlias` and this caused a stack overflow. This PR is a fix for that implementation miss 😅
The full table of contents in the manual (v0.11)1 made it much easier to navigate than the new Rust Reference. A long, highly structured document like the Reference needs a full table of contents to be most useful.
1 the kinda ugly line spacing bug was later fixed I'm pretty sure.
The text was updated successfully, but these errors were encountered: