Skip to content
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

fix bugzilla Issue 24836 - struct return by hidden struct arg does no… #17033

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

WalterBright
Copy link
Member

…t need copy to become an rvalue

@WalterBright WalterBright added the Compiler:Backend glue code, optimizer, code generation label Oct 27, 2024
@dlang-bot
Copy link
Contributor

Thanks for your pull request, @WalterBright!

Bugzilla references

Auto-close Bugzilla Severity Description
24836 normal struct return by hidden struct arg does not need copy to become an rvalue

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 + dmd#17033"

@WalterBright
Copy link
Member Author

Oh why oh why are the phobos unittests run before the test suite? The build process builds the compiler, then tries to compile d_do_test, which relies on:

import std.algorithm;
import std.array;
import std.conv;
import std.datetime.stopwatch;
import std.datetime.systime;
import std.exception;
import std.file;
import std.format;
import std.meta : AliasSeq;
import std.process;
import std.random;
import std.range : chain;
import std.regex;
import std.path;
import std.stdio;
import std.string;
import core.sys.posix.sys.wait;

which tries to run the unittests while building it, and so everything must work perfectly in phobos and d_do_test for it to even get to the test suite. The comments in it say it is supposed to be called by the Makefile - what Makefile?

@WalterBright
Copy link
Member Author

Why is it missing the simplest:

  1. how to build it
  2. how to run it

?

@WalterBright WalterBright force-pushed the fix24836 branch 6 times, most recently from 250823c to 23e6820 Compare October 27, 2024 07:27
@WalterBright
Copy link
Member Author

I found another way to debug it. d_do_test still needs much in the way of documentation.

@WalterBright
Copy link
Member Author

Testing optimizations is rarely very practical.

@WalterBright WalterBright merged commit 0d504c6 into dlang:master Oct 29, 2024
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants