-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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: Inlined associated types are missing bounds #20727
Comments
N.B. There is an out of date rust/src/librustdoc/clean/mod.rs Lines 2384 to 2385 in 9f1ead8
(cc #18048) |
Type params seem to be missing the un-bound |
Type params in general seem to be missing // foo.rs
pub fn f<T: ?Sized>(_: &T) { } // bar.rs
extern crate foo;
pub use foo::f; I'll make a new issue (#20924). |
Possibly the same bug, but http://doc.rust-lang.org/core/slice/struct.Iter.html#implementations
http://doc.rust-lang.org/std/slice/struct.Iter.html#implementations
|
OK, I'm pretty sure that defaults will have to wait until they're actually implemented for associated types, so I've changed the issue title. |
Since my last PR landed you can actually see all the bounds on an inlined trait's associated types! Unfortunately it's very ugly (and http://doc.rust-lang.org/std/ops/trait.Add.html pub trait Add<RHS = Self> where <Self as Add<RHS>>::Output: Sized {
type Output;
fn add(self, rhs: RHS) -> <Self as Add<RHS>>::Output;
} |
e.g. compare http://doc.rust-lang.org/core/ops/trait.Deref.html and http://doc.rust-lang.org/std/ops/trait.Deref.html
The text was updated successfully, but these errors were encountered: