Skip to content

Commit

Permalink
Fix a recent deprecation
Browse files Browse the repository at this point in the history
E.g., with LDC v1.28.1:

src/std/io/internal/iovec.d(52): Deprecation: returning `this._ptr is cast(iovec*)18446744073709551615LU ? &this.stack : this._ptr` escapes a reference to parameter `this`
src/std/io/internal/iovec.d(52):        perhaps remove `scope` parameter annotation so `return` applies to `ref`
  • Loading branch information
kinke committed Jan 24, 2022
1 parent bf64c71 commit b88d0bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/std/io/internal/iovec.d
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ struct TempIOVecs
_ptr = null;
}

@property inout(iovec*) ptr() inout return scope
@property inout(iovec*) ptr() inout return
{
return _ptr is useStack ? stack.ptr : _ptr;
}
Expand Down

0 comments on commit b88d0bf

Please sign in to comment.