Repository navigation
Rustdoc fails to build diesel documentation on current nightly #100620
Description
Activity
- addedC-bugCategory: This is a bug.Category: This is a bug.regression-untriagedUntriaged performance or correctness regression.Untriaged performance or correctness regression.
on Aug 16, 2022 - addedI-prioritizeIssue needs a team member to assess the impact. Will be replaced by P-{low,medium,high,critical}Issue needs a team member to assess the impact. Will be replaced by P-{low,medium,high,critical}regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.and removedregression-untriagedUntriaged performance or correctness regression.Untriaged performance or correctness regression.
on Aug 16, 2022 I think the bug is coming from #100221.
EDIT: also, would be quite useful to have a minimum code that we can use as a regression test.
EDIT: also, would be quite useful to have a minimum code that we can use as a regression test.
Reducing compiler errors coming from diesel is quite hard and takes a lot of time. Diesel is already part of the rust compiler tests-suite, although in an older version. So it might be easier to just update this version to a current diesel version.
This is due to my PR. @rustbot claim
Reacted by Georg SemmlerReducing compiler errors coming from diesel is quite hard and takes a lot of time. Diesel is already part of the rust compiler tests-suite, although in an older version. So it might be easier to just update this version to a current diesel version.
dieselis not documented inside the compiler so it wouldn't be very helpful unfortunately. Also, I didn't ask you specifically, just thought it might be useful to say it, so don't worry if you don't have time for it. 😉This is due to my PR. @rustbot claim
Thanks @compiler-errors !
diesel is not documented inside the compiler so it wouldn't be very helpful unfortunately. Also, I didn't ask you specifically, just thought it might be useful to say it, so don't worry if you don't have time for it. wink
The corresponding test code is here:
rust/src/tools/cargotest/main.rs
Line 85 in 14a459b
Test { I think it did not catch this issue as it uses an older diesel version (and it does not enable the corresponding feature flag).
- addedT-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
on Aug 17, 2022 I minimized this:
pub trait Bar<S> {} pub trait Qux<T> {} pub trait Foo<T, S> { fn bar() where T: Bar<S>, { } } pub struct Concrete; impl<S> Foo<(), S> for Concrete {} impl<T, S> Bar<S> for T where S: Qux<T> {} impl<T, S> Qux<T> for S where T: Bar<S> {}
And fix PR incoming.
Reacted by Georg Semmler and Yuki Okushi- added a commit that references this issue
on Aug 25, 2022 - added a commit that references this issue
on Aug 26, 2022 This apparently was not fixed.
I can confirm that this is fixed for
rustc 1.65.0-nightly (c07a8b4e0 2022-08-26). Thank you all for the fast fix 🎉- removedI-prioritizeIssue needs a team member to assess the impact. Will be replaced by P-{low,medium,high,critical}Issue needs a team member to assess the impact. Will be replaced by P-{low,medium,high,critical}
on May 16, 2023
Code
I tried this code:
I expected to see this happen: Rustdoc compiles the documentation as for older toolchains (stable, < nightly-2022-08-10) or as it is happening for
cargo build/cargo checkInstead, this happened: Rustdoc reports an compiler error
Version it worked on
It most recently worked on: nightly-2022-08-09
Version with regression
rustc --version --verbose:rustdoc --version --verbose:cargo-rustc-bisectpoints to 6d3f1be as merge that introduced this regression which is a roll-up PR.#100221 and #99787 are included there and seems to be rustdoc releated. Pinging @compiler-errors and @aDotInTheVoid as authors of these PR's.