diff options
| author | Camelid <camelidcamel@gmail.com> | 2020-10-08 22:24:34 -0700 |
|---|---|---|
| committer | Camelid <camelidcamel@gmail.com> | 2020-10-08 22:24:34 -0700 |
| commit | 4c765f66a4f7921b4a47ab21f699bb2d8290b44a (patch) | |
| tree | 17cee6f4beb603a0125fd5e63cf08b57f60e5226 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 9ba1d21868968e1a4cbbe953371afbd43ad07c72 (diff) | |
| download | rust-4c765f66a4f7921b4a47ab21f699bb2d8290b44a.tar.gz rust-4c765f66a4f7921b4a47ab21f699bb2d8290b44a.zip | |
Allow generic parameters in intra-doc links
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). * Allow links like `Vec<T>`, `Result<T, E>`, and `Option<Box<T>>` * Allow links like `Vec::<T>::new()` * Warn on * Unbalanced angle brackets (e.g. `Vec<T` or `Vec<T>>`) * Missing type to apply generics to (`<T>` or `<Box<T>>`) * Use of fully-qualified syntax (`<Vec as IntoIterator>::into_iter`) * Invalid path separator (`Vec:<T>:new`) * Too many angle brackets (`Vec<<T>>`) * Empty angle brackets (`Vec<>`) Note that this implementation *does* allow some constructs that aren't valid in the actual Rust syntax, for example `Box::<T>new()`. That may not be supported in rustdoc in the future; it is an implementation detail.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
