-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[rustdoc] Correctly handle intra doc link when type alias disambiguator is passed for primitive #146866
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] Correctly handle intra doc link when type alias disambiguator is passed for primitive #146866
Conversation
I've come to the conclusion that the This gets especially odd when you remember modules are in the type namespace, which means None of this complexity is documented anywhere, so it's not clear if its intentional, but there are ui tests that expect it (eg. In any case, this PR brings the type alias x primitive conflict case in line with similar cases like type alias x struct, so I think it's a significant improvement. @bors r+ rollup |
…mbiguator-tyalias-prim, r=lolbinarycat [rustdoc] Correctly handle intra doc link when type alias disambiguator is passed for primitive Fixes rust-lang#146855. r? `@lolbinarycat`
Rollup of 7 pull requests Successful merges: - #146632 (Fix uses of "adaptor") - #146775 (fixes for numerous clippy warnings) - #146802 (mbe: Simplifications and refactoring) - #146806 (add private module override re-export test) - #146866 ([rustdoc] Correctly handle intra doc link when type alias disambiguator is passed for primitive) - #146896 (rustc-dev-guide subtree update) - #146898 (Update books) r? `@ghost` `@rustbot` modify labels: rollup
Failed in #146910 (comment). |
I actually don't think this is the right fix here. Better add a new disambiguator for type aliases. |
…or, r=lolbinarycat Add new `tyalias` intra-doc link disambiguator Fixes rust-lang#146855. Alternative to rust-lang#146866. This adds support for a new disambiguator: `tyalias`. I think it's common enough to have type aliases nowaday, so no reason to not be able to have a disambiguator for them. cc `@fmease` r? lolbinarycat
…or, r=lolbinarycat Add new `tyalias` intra-doc link disambiguator Fixes rust-lang#146855. Alternative to rust-lang#146866. This adds support for a new disambiguator: `tyalias`. I think it's common enough to have type aliases nowaday, so no reason to not be able to have a disambiguator for them. cc `@fmease` r? lolbinarycat
…or, r=lolbinarycat Add new `tyalias` intra-doc link disambiguator Fixes rust-lang#146855. Alternative to rust-lang#146866. This adds support for a new disambiguator: `tyalias`. I think it's common enough to have type aliases nowaday, so no reason to not be able to have a disambiguator for them. cc `@fmease` r? lolbinarycat
…or, r=lolbinarycat Add new `tyalias` intra-doc link disambiguator Fixes rust-lang#146855. Alternative to rust-lang#146866. This adds support for a new disambiguator: `tyalias`. I think it's common enough to have type aliases nowaday, so no reason to not be able to have a disambiguator for them. cc ``@fmease`` r? lolbinarycat
Rollup merge of #147027 - GuillaumeGomez:tyalias-disambiguator, r=lolbinarycat Add new `tyalias` intra-doc link disambiguator Fixes #146855. Alternative to #146866. This adds support for a new disambiguator: `tyalias`. I think it's common enough to have type aliases nowaday, so no reason to not be able to have a disambiguator for them. cc ``@fmease`` r? lolbinarycat
…binarycat Add new `tyalias` intra-doc link disambiguator Fixes rust-lang/rust#146855. Alternative to rust-lang/rust#146866. This adds support for a new disambiguator: `tyalias`. I think it's common enough to have type aliases nowaday, so no reason to not be able to have a disambiguator for them. cc ``@fmease`` r? lolbinarycat
Fixes #146855.
r? @lolbinarycat