-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
rustdoc: search no longer accepts !
as part of query
#96399
Comments
Good catch! I'll send a fix tomorrow. |
|
Let's consider it valid as long as it ends the ident to simplify things then. That would make |
I've been meaning to suggest this for a while, so definitely a thumbs up from me :) |
…tion-macro, r=GuillaumeGomez rustdoc: search by macro when query ends with `!` Related to rust-lang#96399 Note: the `never` type alias is tested in [`/tests/rustdoc-js-std/alias-3.js`](https://github.com/notriddle/rust/blob/08ad401633037cc226b3806a3c5f48c2f34703bf/tests/rustdoc-js-std/alias-3.js) ## Before  ## After 
…tion-macro, r=GuillaumeGomez rustdoc: search by macro when query ends with `!` Related to rust-lang#96399 Note: the `never` type alias is tested in [`/tests/rustdoc-js-std/alias-3.js`](https://github.com/notriddle/rust/blob/08ad401633037cc226b3806a3c5f48c2f34703bf/tests/rustdoc-js-std/alias-3.js) ## Before  ## After 
…tion-macro, r=GuillaumeGomez rustdoc: search by macro when query ends with `!` Related to rust-lang#96399 Note: the `never` type alias is tested in [`/tests/rustdoc-js-std/alias-3.js`](https://github.com/notriddle/rust/blob/08ad401633037cc226b3806a3c5f48c2f34703bf/tests/rustdoc-js-std/alias-3.js) ## Before  ## After 
Steps to reproduce:
Expected result:
All versions of panic (that are macros) appear.
Actual result:
Query parse error.
Compare vs stable: https://doc.rust-lang.org/stable/std/string/trait.ToString.html?search=panic!
I think this is just a matter of accepting
!
in the eBNF grammar and also the JS-implemented parser.Note that the results on stable include modules, which arguably they shouldn't. So as an additional feature improvement we might want to recognize
!
specially and treat as requiring that the results be macros (or specifically function-like macros?).The text was updated successfully, but these errors were encountered: