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: catch and don't blow up on impl Trait cycles #110631

Merged
merged 1 commit into from
Apr 30, 2023

Commits on Apr 29, 2023

  1. rustdoc: catch and don't blow up on impl Trait cycles

    An odd feature of Rust is that `Foo` is invalid, but `Bar` is okay:
    
        type Foo<'a, 'b> = Box<dyn PartialEq<Foo<'a, 'b>>>;
        type Bar<'a, 'b> = impl PartialEq<Bar<'a, 'b>>;
    
    To get it right, track every time rustdoc descends into a type alias,
    so if it shows up twice, it can be write the path instead of
    infinitely expanding it.
    notriddle committed Apr 29, 2023
    Configuration menu
    Copy the full SHA
    b1d0827 View commit details
    Browse the repository at this point in the history