On 06/23/2017 09:02 PM, Boris-Barboris wrote:
https://github.com/Boris-Barboris/daii


You've got bad `@trusted`s:

https://github.com/Boris-Barboris/daii/blob/3e15429a4000494ce61330fb5adcfc700ec1942c/source/closure.d#L108

`_f` may be unsafe. It can't be trusted.

`args` may have unsafe postblits which may be called when calling `_f`.

--

https://github.com/Boris-Barboris/daii/blob/0e7a3e60f39be48c269826e75bd775b7cfefe51c/source/refcounted.d#L70

`T` may have an unsafe constructor. Can't trust `Allocator.instance.make!(T)`.

Again, `args` may have unsafe postblits.

--

https://github.com/Boris-Barboris/daii/blob/0e7a3e60f39be48c269826e75bd775b7cfefe51c/source/refcounted.d#L105

`T` may have an unsafe destructor. Can't trust `allocator.dispose(ptr)`.

--

https://github.com/Boris-Barboris/daii/blob/3e15429a4000494ce61330fb5adcfc700ec1942c/source/unique.d

Same issues as in refcounted.d.

Reply via email to