Skip to content
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

rustdoc-search: do not treat associated type names as types #118812

Merged
merged 2 commits into from
Dec 11, 2023

Commits on Dec 10, 2023

  1. rustdoc-search: do not treat associated type names as types

    Before: http://notriddle.com/rustdoc-html-demo-6/tor-before/tor_config/
    
    After: http://notriddle.com/rustdoc-html-demo-6/tor-after/tor_config/
    
    Profile: http://notriddle.com/rustdoc-html-demo-6/tor-profile/
    
    As a bit of background information: in type-based queries, a type
    name that does not exist gets treated as a generic type variable.
    
    This causes a counterintuitive behavior in the `tor_config` crate,
    which has a trait with an associated type variable called `T`.
    
    This isn't a searchable concrete type, but its name still gets stored
    in the typeNameIdMap, as a convenient way to intern its name.
    notriddle committed Dec 10, 2023
    Configuration menu
    Copy the full SHA
    92b84f8 View commit details
    Browse the repository at this point in the history

Commits on Dec 11, 2023

  1. Configuration menu
    Copy the full SHA
    7162cb9 View commit details
    Browse the repository at this point in the history