-
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
impl-everywhere.rs has a weird test #55201
Comments
This issue should be assigned to @GuillaumeGomez, as per his request in #54824 (comment) |
@rustbot claim |
I've made the following observations:
My interpretation is that there is no bug in
If my observations are correct, I would go forward by opening a pr fixing the issues listed above for the test (e. g. making the test fail for possibly incorrect output by |
@GuillaumeGomez can you confirm whether the summary above is correct? |
Yes, it seems to be correct. Thanks for the summary @liketechnik ! Please feel free to open the PR. :) |
…eGomez (rustdoc) fix test for trait impl display The test checks that parameters and return values with `impl Trait` types are correctly generated in rustdoc's output. In essence, the previous version of the test checked the absence of values that would never be generated by rustdoc, so it could basically never fail. These values were adjusted to the expected output and are now required to exist in rustdoc's output. See rust-lang#55201 (comment) for a detailed explanation of the reasoning behind the changes. Note that the output of rustdoc for `impl Trait`s in parameters and return values did not change since the inital test creation, so this PR only modifies the test. Closes rust-lang#55201
…eGomez (rustdoc) fix test for trait impl display The test checks that parameters and return values with `impl Trait` types are correctly generated in rustdoc's output. In essence, the previous version of the test checked the absence of values that would never be generated by rustdoc, so it could basically never fail. These values were adjusted to the expected output and are now required to exist in rustdoc's output. See rust-lang#55201 (comment) for a detailed explanation of the reasoning behind the changes. Note that the output of rustdoc for `impl Trait`s in parameters and return values did not change since the inital test creation, so this PR only modifies the test. Closes rust-lang#55201
…eGomez (rustdoc) fix test for trait impl display The test checks that parameters and return values with `impl Trait` types are correctly generated in rustdoc's output. In essence, the previous version of the test checked the absence of values that would never be generated by rustdoc, so it could basically never fail. These values were adjusted to the expected output and are now required to exist in rustdoc's output. See rust-lang#55201 (comment) for a detailed explanation of the reasoning behind the changes. Note that the output of rustdoc for `impl Trait`s in parameters and return values did not change since the inital test creation, so this PR only modifies the test. Closes rust-lang#55201
From #54824 (comment):
My understanding is that test is trying to assert that
fn.foo.html
doesn't contain the phrasex: &' impl Foo
, but because it is erroneously escaping a quote it fails to make that assertion. Furthermore, the generatedfn.foo.html
file actually does contain the text being checked for, so there is a bug in rustdoc as well.The text was updated successfully, but these errors were encountered: