Re: [swift-dev] Set of "no less than one" member enforced by the compiler

2016-06-25 Thread David Sweeris via swift-dev
I've been thinking about this, too. At one point I had a reason to want an Array that couldn't be empty (though I can't recall what the reason was now). Anyway, I think I'd do something like this: struct NonEmptyCollection : CollectionType { private var _head: T.Generator.Element? //optional

[swift-dev] Set of "no less than one" member enforced by the compiler

2016-06-25 Thread Gwynne Raskind via swift-dev
I’ve been spinning my wheels on this one for a couple of hours and can’t come up with a way to do it which doesn’t require checking for at least one potential data inconsistency at runtime with precondition() or assert(), so I’m wondering if anyone else has a solution. I have a data type which

Re: [swift-dev] Ubuntu 14.04 Swift master build failure

2016-06-25 Thread Dmitri Gribenko via swift-dev
+ Michael, who has been working on CMake changes. On Sat, Jun 25, 2016 at 10:14 AM, Joseph Bell via swift-dev wrote: > Confirmed that I can reproduce this on my system (x86_64 Ubuntu14.04) : > build 1585 failed > https://ci.swift.org/job/oss-swift-package-linux-ubuntu-14_04/1585/ with > > CMake E

Re: [swift-dev] swift --version output changed

2016-06-25 Thread Dmitri Gribenko via swift-dev
+ Michael, who has been working on CMake changes. On Sat, Jun 25, 2016 at 2:48 PM, Joseph Bell via swift-dev wrote: > Howdy, > > I noticed in a build today that the output of swift --version has changed. > Today's build: > > swift --version > Swift version 3.0-dev > Target: x86_64-unknown-linux-g

[swift-dev] swift --version output changed

2016-06-25 Thread Joseph Bell via swift-dev
Howdy, I noticed in a build today that the output of swift --version has changed. Today's build: swift --version Swift version 3.0-dev Target: x86_64-unknown-linux-gnu Earlier this week: swift --version Swift version 3.0-dev (LLVM fc970689d4, Clang 460d629e85, Swift 1f2b5ee7fb) Target: x86_64-un

[swift-dev] Ubuntu 14.04 Swift master build failure

2016-06-25 Thread Joseph Bell via swift-dev
Confirmed that I can reproduce this on my system (x86_64 Ubuntu14.04) : build 1585 failed https://ci.swift.org/job/oss-swift-package-linux-ubuntu-14_04/1585/ with CMake Error at cmake/modules/SwiftSharedCMakeConfig.cmake:134 (include): include could not find load file: ClangTargets Call Sta