-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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: function signature search with traits in where
clause
#108723
Conversation
0ecc6ac
to
8965422
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thanks! Please add more tested in rustdoc-js
for the feature to be more strictly tested.
8965422
to
9d27028
Compare
@GuillaumeGomez You're right. I did manage to find another problem. Here's a new test case and fix for |
|
||
pub fn abracadabra<X>(_: X) where X: Trait<Nested> {} | ||
|
||
pub fn alacazam<X>() -> X where X: Trait<Nested> {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pokemon reference? 🤣
Looks good to me now, thanks! If you think there is no more testing remaining to be done, then r=me. |
@bors r=GuillaumeGomez rollup |
…r=GuillaumeGomez rustdoc: function signature search with traits in `where` clause ## Before ![image](https://user-images.githubusercontent.com/1593513/222873534-a640a72a-c654-4702-9f3b-175129d9591d.png) ## After ![image](https://user-images.githubusercontent.com/1593513/222873544-fdfc431d-2b65-4b56-bede-0302ea9f153a.png)
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#108627 (Properly colorize multi-part suggestions in the same line) - rust-lang#108632 (Omit unchanged options from config.toml in `configure.py`) - rust-lang#108715 (Remove unclosed_delims from parser) - rust-lang#108723 (rustdoc: function signature search with traits in `where` clause) - rust-lang#108724 (field is not used outside the crate) - rust-lang#108734 (rustdoc: Note in a type's layout/size if it is uninhabited) - rust-lang#108736 (Remove `allow(potential_query_instability)` from `ast_passes`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Before
After