Skip to content

Conversation

@andralex
Copy link
Member

Reverts #4963

@andralex
Copy link
Member Author

cc @CyberShadow

@CyberShadow
Copy link
Member

OK. Wasn't trying to stir anything up, just a bit confused :)

@MartinNowak
Copy link
Member

Test failures due to code.dlang.org not being reachable intermediately.


auto assocArray(Range)(Range r)
if (isInputRange!Range)
if (isInputRange!Range)
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't add the space back.

Copy link
Contributor

Choose a reason for hiding this comment

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

It's an automatic revert & the spaces before the if constraint are the common Phobos style

Copy link
Member Author

Choose a reason for hiding this comment

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

@wilzbach we've gone back and forth with the style. I think if should be flush with the previous line (no extra indent). Could you please work your magic on the autotester to make it so? :)

Copy link
Contributor

Choose a reason for hiding this comment

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

we've gone back and forth with the style. I think if should be flush with the previous line (no extra indent).

dlang/dlang.org#1534

Could you please work your magic on the autotester to make it so?

I will give it a try :)

Copy link
Contributor

@wilzbach wilzbach left a comment

Choose a reason for hiding this comment

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

Yeah it was nicer before :/

@wilzbach wilzbach force-pushed the revert-4963-selective_import_demo branch from 4eebf06 to bd2f35c Compare December 25, 2016 08:18
@wilzbach
Copy link
Contributor

So I rebased this to master to retrigger the CIs.

  1. Imho the status before with more selective import was better and if we do such changes I would prefer if we do them automated ;-)
  2. For this sole time it's safe to ignore CircleCi as it tries to checkout this branch at DMD/Druntime and fails to do so. We should probably add some fallback code to master if the base_branch does exist at the other repos.

@dlang-bot dlang-bot merged commit 6e9b56a into master Dec 25, 2016
@wilzbach wilzbach deleted the revert-4963-selective_import_demo branch December 25, 2016 09:46
@wilzbach
Copy link
Contributor

For this sole time it's safe to ignore CircleCi as it tries to checkout this branch at DMD/Druntime and fails to do so.

-> #4996

However

It turns out that the changing the selective import import std.meta : AliasSeq to a module-wide import std.meta; exposed leaked import symbols as e.g std.range as it publicly imports std.array.

As a consequence it was possible to use AliasSeq by importing std.range and someone did in the meantime - thus our CI errored correctly:

out/std_range_package.d(884): Error: template instance AliasSeq!(byte, ubyte, short, ushort, int, uint, long, ulong) template 'AliasSeq' is not defined
out/std_range_package.d(980): Error: template instance AliasSeq!(byte, ubyte, short, ushort, int, uint, long, ulong) template 'AliasSeq' is not defined

See #4981 for a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants