Skip to content

Commit

Permalink
Enable always true assert checks in Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
JackStouffer committed Jul 31, 2016
1 parent 04b45d1 commit f30c6a1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .dscanner.ini
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ auto_ref_assignment_check="disabled" ; FIXME
; Checks for incorrect infinite range definitions
incorrect_infinite_range_check="enabled"
; Checks for asserts that are always true
useless_assert_check="disabled"; FIXME
useless_assert_check="skip-unittest"
; Check for unclear lambda syntax
lambda_return_check="enabled"
2 changes: 1 addition & 1 deletion std/algorithm/sorting.d
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ template multiSort(less...) //if (less.length > 1)
}

static if (funs.length == 0)
assert("No sorting predicate provided");
static assert(false, "No sorting predicate provided for multiSort");
else
static if (funs.length == 1)
return sort!(funs[0], ss, Range)(r);
Expand Down
2 changes: 1 addition & 1 deletion std/bitmanip.d
Original file line number Diff line number Diff line change
Expand Up @@ -3864,7 +3864,7 @@ private uint countBitsSet(T)(T value) @nogc pure nothrow
}
else
{
static assert("countBitsSet only supports 1, 2, 4, or 8 byte sized integers.");
static assert(false, "countBitsSet only supports 1, 2, 4, or 8 byte sized integers.");
}
return cast(uint)c;
}
Expand Down

0 comments on commit f30c6a1

Please sign in to comment.