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

Commit

Permalink
Merge pull request #3132 from WalterBright/returnPure
Browse files Browse the repository at this point in the history
add return annotations to pure functions
merged-on-behalf-of: Mathias LANG <[email protected]>
  • Loading branch information
dlang-bot authored Jun 10, 2020
2 parents 435ae8a + 456d8eb commit 246d15a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/rt/cast_.d
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pure:
* If it is null, return null.
* Else, undefined crash
*/
Object _d_toObject(void* p)
Object _d_toObject(return void* p)
{
if (!p)
return null;
Expand Down
2 changes: 1 addition & 1 deletion src/rt/lifetime.d
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ size_t __arrayAllocLength(ref BlkInfo info, const TypeInfo tinext) pure nothrow
/**
get the start of the array for the given block
*/
void *__arrayStart(BlkInfo info) nothrow pure
void *__arrayStart(return BlkInfo info) nothrow pure
{
return info.base + ((info.size & BIGLENGTHMASK) ? LARGEPREFIX : 0);
}
Expand Down

0 comments on commit 246d15a

Please sign in to comment.