Repository navigation
Added regression test for issue #53156 - #166231
Conversation
|
Thanks for the pull request, and welcome! The Rust Project has assigned @panstromek (or someone else) to review your changes, you should hear from them (or someone else) within the next two weeks. Please see the contribution instructions and our LLM policy for more information. Why was this reviewer chosen?The reviewer was selected based on:
|
This comment has been minimized.
This comment has been minimized.
6a98b80 to
ded1b6a
Compare
Does it make sense to add a test for checking that it fails then? Other than that, It looks ok, but I feel like I have very little context around this issue (it's 8 years old), so I can't tell what we're testing exactly (implementation wise). I'd ask somebody closer to this part of the type system. r? jackh726 maybe |
|
I just went back to check, and 3c was acting correctly with each of the 1 and 2 alternatives when the bug was reported. So it wouldn't really test a regression for anything that fixed this issue. It would still test for a regression of course, just kinda unrelated to the issue. |
|
Given that the original issue gives multiple variants with different behavior, it would be good ensure those get captured in the test. |
|
So just include all the variants, including the ones that weren't incorrect before and the ones that should fail as failing? |
|
Yes |
ded1b6a to
54b1675
Compare
|
Added all the variants now |
|
@bors r+ rollup |
…ckh726 Added regression test for issue rust-lang#53156 Added regression test for issue rust-lang#53156. Includes the issue's 3a and 3b on top of 1a and 2a in both impl and top-level versions. Does not include 3c since it should fail to compile: the lifetime of the `&self` parameter may not outlive the lifetime `'a` required. Also included a -Znext-solver revision as it also compiles cleanly with the next-solver so failing with it would be a regression. Closes rust-lang#53156.
…ckh726 Added regression test for issue rust-lang#53156 Added regression test for issue rust-lang#53156. Includes the issue's 3a and 3b on top of 1a and 2a in both impl and top-level versions. Does not include 3c since it should fail to compile: the lifetime of the `&self` parameter may not outlive the lifetime `'a` required. Also included a -Znext-solver revision as it also compiles cleanly with the next-solver so failing with it would be a regression. Closes rust-lang#53156.
Rollup of 5 pull requests Successful merges: - #166438 (add test checking that -Ctarget-feature implies cfg(target_feature)) - #165624 (feat(time): add `Duration` extractors for units larger than second) - #166231 (Added regression test for issue #53156 ) - #166401 (Add explanatory comment and rename alias ) - #166520 (Fix typo in ConstItemInteriorMutationsDiag struct)
Rollup of 9 pull requests Successful merges: - #166438 (add test checking that -Ctarget-feature implies cfg(target_feature)) - #166536 (Make `issue-96797.rs` link again) - #165624 (feat(time): add `Duration` extractors for units larger than second) - #166231 (Added regression test for issue #53156 ) - #166401 (Add explanatory comment and rename alias ) - #166520 (Fix typo in ConstItemInteriorMutationsDiag struct) - #166540 (Return `Err` from `send_process_group_signal` if leader has been awaited) - #166544 (rustc-dev-guide subtree update) - #166545 (Run more autodiff tests in CI)
Rollup merge of #166231 - HaineSensei:issue-53156-test, r=jackh726 Added regression test for issue #53156 Added regression test for issue #53156. Includes the issue's 3a and 3b on top of 1a and 2a in both impl and top-level versions. Does not include 3c since it should fail to compile: the lifetime of the `&self` parameter may not outlive the lifetime `'a` required. Also included a -Znext-solver revision as it also compiles cleanly with the next-solver so failing with it would be a regression. Closes #53156.
Added regression test for issue #53156.
Includes the issue's 3a and 3b on top of 1a and 2a in both impl and top-level versions.
Does not include 3c since it should fail to compile: the lifetime of the
&selfparameter may not outlive the lifetime'arequired.Also included a -Znext-solver revision as it also compiles cleanly with the next-solver so failing with it would be a regression.
Closes #53156.