]> git.lizzy.rs Git - rust.git/commit
Change implementation of approx_const lint
authorKevin Yap <me@kevinyap.ca>
Thu, 22 Oct 2015 22:19:03 +0000 (15:19 -0700)
committerKevin Yap <me@kevinyap.ca>
Fri, 23 Oct 2015 06:07:27 +0000 (23:07 -0700)
commit546eb14b7ef847545d91c10e48b564a30b51fc60
tree3c8350082e5dadd0c5c89646bb610c026e7b7204
parenta927bc0b7051b798dff0e00c8f05875bedab90de
Change implementation of approx_const lint

- Replace epsilon with lower and upper bounds for each constant.
- Warn on use of "3.14", and update tests accordingly.
src/approx_const.rs
tests/compile-fail/approx_const.rs