-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Allow generic parameters in intra-doc links #76934
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
Conversation
|
Some changes occurred in intra-doc-links. cc @jyn514 |
|
r? @ollie27 (rust_highfive has picked a reviewer for you, use r? to override) |
c0b3814 to
8d7db03
Compare
|
r? @jyn514 |
|
I think all that's left to do is add some UI tests for the warning! |
|
By the way, I would like to squash this a bit so the commit history is a bit nicer, so I would appreciate it if you could let me know before |
This comment has been minimized.
This comment has been minimized.
Looks like some queries aren't quoting code properly. The span is unhelpful, you can find the query docs at https://github.com/rust-lang/rust/blob/master/compiler/rustc_middle/src/query/mod.rs. You can test locally with |
They were not formatted correctly, so rustdoc was interpreting some parts as code. Also cleaned up some other query docs that weren't causing issues, but were formatted incorrectly.
|
@bors r+ |
|
📌 Commit e2424a2 has been approved by |
|
☀️ Test successful - checks-actions, checks-azure |
Fixes #62834.
The contents of the generics will be mostly ignored (except for warning
if fully-qualified syntax is used, which is currently unsupported in
intra-doc links - see issue #74563).
Vec<T>,Result<T, E>, andOption<Box<T>>Vec::<T>::new()Vec<TorVec<T>>)<T>or<Box<T>>)<Vec as IntoIterator>::into_iter)Vec:<T>:new)Vec<<T>>)Vec<>)Note that this implementation does allow some constructs that aren't
valid in the actual Rust syntax, for example
Box::<T>new(). That maynot be supported in rustdoc in the future; it is an implementation
detail.