-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Missing Implementors for Join and Pattern trait in rustdoc #75588
Comments
std::slice::Join
traitstd::slice::Join
trait in rustdoc
This is a regression from stable-to-nightly: https://doc.rust-lang.org/1.45.2/std/slice/trait.Join.html and beta one has Implementors section. cc @jyn514 |
It has made it way to beta. Pattern trait is also affected: https://doc.rust-lang.org/beta/std/str/pattern/trait.Pattern.html#implementors @rustbot modify labels: I-prioritize |
std::slice::Join
trait in rustdoc
(Btw I think you can use |
The Borrow trait still has Implementors section, I am not sure if this bug affect crates in ecosystem. |
So I think this bug shouldn't affect stable traits, just most unstable traits I saw are affected. |
This comment has been minimized.
This comment has been minimized.
This is more likely to be #73771 than the refactor I think. |
Yeah, I suspect that given #74672 it might make sense to revert anyway, since it doesn't actually accomplish the goal. Or someone more experienced with rustdoc may be able to suggest/implement a better patch. |
New discovery: So far only trait exported to std affected. For example with Join trait, in alloc it is normal: https://doc.rust-lang.org/nightly/alloc/slice/trait.Join.html |
Oh right, I have MCVE, it needs two dummy crates. dummy crate "unstabled"#![crate_name = "unstabled"]
#![feature(staged_api)]
#![unstable(feature = "thisisnotreal", issue = "27747")]
#[unstable(feature = "asdfasdfasdfa", issue = "27747")]
pub struct Foo<T: Sized + Clone> {
#[unstable(feature = "asdfasdfasdfa", issue = "27747")]
bytes: [T],
}
#[unstable(feature = "asdfasdfasdfa", issue = "27747")]
pub trait Join {
#[unstable(feature = "asdfasdfasdfa", issue = "27747")]
type Output;
#[unstable(feature = "asdfasdfasdfa", issue = "27747")]
fn join(slice: &Self) -> Self::Output;
}
#[unstable(feature = "asdfasdfasdfa", issue = "27747")]
impl<T: Sized + Clone> Join for Foo<T> {
type Output = Vec<T>;
fn join(slice: &Self) -> Vec<T> {
unimplemented!()
}
} Crate to run #![feature(asdfasdfasdfa)]
pub use unstabled::Join; @rustbot modify labels: -E-needs-mcve |
searched nightlies: from nightly-2020-06-04 to nightly-2020-07-17 bisected with cargo-bisect-rustc v0.5.2Host triple: x86_64-unknown-linux-gnu cargo bisect-rustc 2020-06-04 --end 2020-07-17 --script=./test.bash --without-cargo |
Marking as P-high as discussed by the prioritization WG. |
…n514 Ignore rustc_private items from std docs By ignoring rustc_private items for non local impl block, this may fix rust-lang#74672 and fix rust-lang#75588 . This might suppress rust-lang#76529 if it is simple enough for backport.
…n514 Ignore rustc_private items from std docs By ignoring rustc_private items for non local impl block, this may fix rust-lang#74672 and fix rust-lang#75588 . This might suppress rust-lang#76529 if it is simple enough for backport.
…n514 Ignore rustc_private items from std docs By ignoring rustc_private items for non local impl block, this may fix rust-lang#74672 and fix rust-lang#75588 . This might suppress rust-lang#76529 if it is simple enough for backport.
Missing Implementors for
std::slice::Join
trait.Current output:
While rustdoc displays
Borrow
trait implementors.Expected:
Display Implementors for Join trait:
rust/library/alloc/src/slice.rs
Lines 635 to 703 in de32266
Meta
rustc --version --verbose
: 1.47.0-nightly (9b88e0a 2020-08-15)@rustbot modify labels: T-rustdoc
The text was updated successfully, but these errors were encountered: