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

Commit 78d15b6

Browse files
committed
Address review feedback + rebase
1 parent 063171a commit 78d15b6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/core/atomic.d

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1330,7 +1330,6 @@ version (CoreUnittest)
13301330

13311331
// only accept shared lvalues
13321332
static assert(!is(typeof(assumeUnshared(base))));
1333-
static assert(!is(typeof(assumeUnshared(cast(shared)base))));
13341333

13351334
++assumeUnshared(atom);
13361335
assert(atomicLoad!(MemoryOrder.raw)(atom) == 1);
@@ -1342,7 +1341,6 @@ version (CoreUnittest)
13421341
shared immutable int iatom = 0;
13431342
// allow const
13441343
static assert(is(typeof(assumeUnshared(catom))));
1345-
static assert(is(typeof(assumeUnshared(iatom))));
13461344
// preserve const
13471345
static assert(!is(typeof(++assumeUnshared(catom))));
13481346
static assert(!is(typeof(++assumeUnshared(iatom))));

0 commit comments

Comments
 (0)