Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
/ druntime Public archive

Comments

Add test case for issue 22124#3550

Merged
RazvanN7 merged 1 commit intodlang:masterfrom
dkorpel:thread-closure-fix
Aug 23, 2021
Merged

Add test case for issue 22124#3550
RazvanN7 merged 1 commit intodlang:masterfrom
dkorpel:thread-closure-fix

Conversation

@dkorpel
Copy link
Contributor

@dkorpel dkorpel commented Aug 19, 2021

Reboot of #3520 which I can't re-open.The bug is gone now Issue 20150 - -dip1000 defeated by pure is fixed, so this PR simply adds a test case.

@dlang-bot
Copy link
Contributor

dlang-bot commented Aug 19, 2021

Thanks for your pull request and interest in making D better, @dkorpel! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please verify that your PR follows this checklist:

  • My PR is fully covered with tests (you can see the coverage diff by visiting the details link of the codecov check)
  • My PR is as minimal as possible (smaller, focused PRs are easier to review than big ones)
  • I have provided a detailed rationale explaining my changes
  • New or modified functions have Ddoc comments (with Params: and Returns:)

Please see CONTRIBUTING.md for more information.


If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment.

Bugzilla references

Auto-close Bugzilla Severity Description
22124 critical Corrupted closure when compiling with -preview=dip1000

⚠️⚠️⚠️ Warnings ⚠️⚠️⚠️

To target stable perform these two steps:

  1. Rebase your branch to upstream/stable:
git rebase --onto upstream/stable upstream/master
  1. Change the base branch of your PR to stable

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "master + druntime#3550"

@dkorpel dkorpel force-pushed the thread-closure-fix branch from 7ee92c8 to f1527a2 Compare August 19, 2021 20:02
Copy link
Contributor

@thewilsonator thewilsonator left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

otherwise looks good

t.__ctor({x = 3;});
return t;
}
assert(!__traits(compiles, () @nogc => fun(thread, 3) ));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

static assert

@dkorpel dkorpel force-pushed the thread-closure-fix branch from f1527a2 to b4006f2 Compare August 20, 2021 17:12
@dlang-bot dlang-bot added the Bug Fix Include reference to corresponding bugzilla issue label Aug 20, 2021
@RazvanN7 RazvanN7 merged commit 117f196 into dlang:master Aug 23, 2021
@dkorpel dkorpel deleted the thread-closure-fix branch August 23, 2021 09:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Bug Fix Include reference to corresponding bugzilla issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants