about summary refs log tree commit diff
path: root/src/liballoc_system
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-01-05 11:06:10 +0000
committerbors <bors@rust-lang.org>2017-01-05 11:06:10 +0000
commit2f56207b1283857de92537288893e8d428551a02 (patch)
treeb358541c2acb4bdcbfd110efa476e87f34b6b9e1 /src/liballoc_system
parent26e2ee00f94f1e9c571858a6a49becc71807860d (diff)
parentfbdadcbed4c9a04b909246a8145e3e722c63525b (diff)
downloadrust-2f56207b1283857de92537288893e8d428551a02.tar.gz
rust-2f56207b1283857de92537288893e8d428551a02.zip
Auto merge of #38776 - eddyb:unsigned-means-unsigned, r=pnkfelix
Properly ban the negation of unsigned integers in type-checking.

Lint-time banning of unsigned negation appears to be vestigial from a time it was feature-gated.
But now it always errors and we do have the ability to deref the checking of e.g. `-0`, through the trait obligation fulfillment context, which will only succeed/error when the `0` gets inferred to a specific type.

The two removed tests are the main reason for finally cleaning this up, they need changing all the time when refactoring the HIR-based `rustc_const_eval` and/or `rustc_passes::consts`, as warnings pile up.
Diffstat (limited to 'src/liballoc_system')
0 files changed, 0 insertions, 0 deletions