-
-
Notifications
You must be signed in to change notification settings - Fork 702
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adds assert messages to std.container.dlist #7191
adds assert messages to std.container.dlist #7191
Conversation
Thanks for your pull request, @burner! Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub fetch digger
dub run digger -- build "master + phobos#7191" |
@@ -222,12 +222,12 @@ struct DList(T) | |||
} | |||
ref inout(BaseNode*) _first() @property @safe nothrow pure inout | |||
{ | |||
assert(_root); | |||
assert(_root, "Root pointer most not be null"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: must
return _root._next; | ||
} | ||
ref inout(BaseNode*) _last() @property @safe nothrow pure inout | ||
{ | ||
assert(_root); | ||
assert(_root, "Root pointer most not be null"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto
@@ -286,7 +286,8 @@ elements in `rhs`. | |||
*/ | |||
struct Range | |||
{ | |||
static assert(isBidirectionalRange!Range); | |||
static assert(isBidirectionalRange!Range, | |||
"Range is not a bidirectional range"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really need a message ? static assert
print their failing condition.
No description provided.