-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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: Notable traits shows traits for &[u8]
even though the return type is &[Attribute]
#83123
Comments
Assigning @rustbot label -I-prioritize +P-medium |
This affected 1.51.0, the regressed behavior is also present on stable. Changing the labels. |
Reduced: pub struct Attribute;
pub struct Map<'hir> {}
impl<'hir> Map<'hir> {
pub fn attrs(&self) -> &'hir [Attribute] { &[] }
}
pub struct List<T>(T);
impl<T> std::ops::Deref for List<T> {
type Target = [T];
fn deref(&self) -> &[T] {
&[]
}
} reduced example regresses at nightly-2021-01-09, 937f629 / #80653 The original @rustbot label -E-needs-bisection -E-needs-mcve |
Hmm, I wonder if the revert of that PR will fix this bug then. CC #84867. Would be nice to check once that PR is merged. |
This issue seems to be fixed now, presumably because of the revert I mentioned above. |
This is in the rustc docs, but this can probably be reproduced pretty easily elsewhere.
beta (also on nightly)
stable
Note that there is no notable traits dialog:
The text was updated successfully, but these errors were encountered: