bors 4259377ea6 Auto merge of #3725 - mikerite:fix-2728, r=phansch
Fix `cast_sign_loss` false positive

This checks if the value is a non-negative constant before linting about
losing the sign.

Because the `constant` function doesn't handle const functions, we check if
the value is from a call to a `max_value` function directly. A utility method
called `get_def_path` was added to make checking for the function paths
easier.

Fixes #2728
2019-02-04 05:52:44 +00:00
..
2019-01-29 08:19:05 +01:00
2019-01-21 13:59:49 +01:00
2019-01-08 21:46:39 +01:00
2019-01-07 14:37:28 +01:00
2019-01-31 06:32:29 +02:00
2019-01-31 06:32:29 +02:00
2019-01-08 21:46:39 +01:00
2019-01-27 13:46:22 +01:00
2019-01-08 21:46:39 +01:00
2019-01-08 21:46:39 +01:00
2019-01-08 21:46:39 +01:00
2019-01-08 21:46:39 +01:00
2019-01-08 21:46:39 +01:00
2019-01-08 21:46:39 +01:00
2019-01-08 21:46:39 +01:00
2019-01-08 21:46:39 +01:00
2019-01-08 21:46:39 +01:00
2019-01-15 08:09:47 +02:00
2019-02-01 13:21:19 -05:00
2019-01-08 21:46:39 +01:00
2019-01-08 21:46:39 +01:00
2019-01-08 21:46:39 +01:00
2019-01-08 21:46:39 +01:00
2019-01-08 21:46:39 +01:00
2019-01-27 13:46:22 +01:00
2019-01-08 21:46:39 +01:00
2019-01-08 21:46:39 +01:00
2019-01-08 21:46:39 +01:00
2019-01-13 19:57:19 +01:00
2019-01-13 19:57:19 +01:00
2019-01-13 19:57:19 +01:00
2019-01-29 07:22:08 +02:00
2019-01-29 07:22:08 +02:00
2019-01-22 15:16:54 +01:00
2019-01-22 15:16:54 +01:00
2019-01-22 15:16:54 +01:00
2019-01-08 21:46:39 +01:00
2019-01-08 21:46:39 +01:00