-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
7 changed files
with
28 additions
and
203 deletions.
There are no files selected for viewing
Submodule liblibc
updated
16 files
+38 −0 | src/dox.rs | |
+2 −0 | src/unix/bsd/apple/mod.rs | |
+6 −0 | src/unix/mod.rs | |
+28 −1 | src/unix/notbsd/android/mod.rs | |
+34 −0 | src/unix/notbsd/linux/mips/mod.rs | |
+129 −13 | src/unix/notbsd/linux/mod.rs | |
+34 −0 | src/unix/notbsd/linux/musl/mod.rs | |
+195 −0 | src/unix/notbsd/linux/other/b32/mod.rs | |
+197 −0 | src/unix/notbsd/linux/other/b64/aarch64.rs | |
+0 −4 | src/unix/notbsd/linux/other/b64/mod.rs | |
+197 −0 | src/unix/notbsd/linux/other/b64/powerpc64.rs | |
+191 −0 | src/unix/notbsd/linux/other/b64/sparc64.rs | |
+197 −0 | src/unix/notbsd/linux/other/b64/x86_64.rs | |
+12 −585 | src/unix/notbsd/linux/other/mod.rs | |
+34 −0 | src/unix/notbsd/linux/s390x.rs | |
+1 −92 | src/unix/notbsd/mod.rs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.