Remove @safe from potentially unsafe code

This commit is contained in:
Eugen Wissner 2016-11-30 16:21:20 +01:00
parent 5e6f8446d8
commit cbeb0395f9
3 changed files with 5 additions and 13 deletions

View File

@ -1,12 +1,4 @@
# This repository is abandoned # tanya
Please note that this repository is now abandoned. I'm currently working on merging the code into tanya's mission is to provide a GC-free, general purpose library for D
[dlib](https://github.com/gecko0307/dlib). programming language for developing servers.
This repository will be kept alive for some time for reference purpose and as a sandbox for new features.
# D event loop
tanya's mission was to provide a GC-free, general purpose library for D programming language for developing servers.
Since dlib follows similar rules I decided that it would be better to extend and improve an existing library.
Dlib has some features like containers I can build on without developing everything by myself.

View File

@ -174,7 +174,7 @@ class IOWatcher : ConnectionWatcher
* *
* Returns: $(D_KEYWORD this). * Returns: $(D_KEYWORD this).
*/ */
IOWatcher opCall(StreamTransport transport, Protocol protocol) pure nothrow @safe @nogc IOWatcher opCall(StreamTransport transport, Protocol protocol) pure nothrow @nogc
in in
{ {
assert(transport !is null); assert(transport !is null);

View File

@ -268,7 +268,7 @@ class MmapPool : Allocator
} }
/// ///
@nogc @safe nothrow unittest @nogc nothrow unittest
{ {
void[] p; void[] p;
MmapPool.instance.reallocate(p, 10 * int.sizeof); MmapPool.instance.reallocate(p, 10 * int.sizeof);