diff options
| author | Falco Hirschenberger <falco.hirschenberger@gmail.com> | 2014-05-03 00:13:26 +0200 |
|---|---|---|
| committer | Falco Hirschenberger <falco.hirschenberger@gmail.com> | 2014-05-03 00:13:26 +0200 |
| commit | 6c26cbb6026194a280fa0f33c794d4397ad426da (patch) | |
| tree | b648bcff3efbbaa001274ccd134f3476bfa68359 /src/libstd/num/u16.rs | |
| parent | 239557de6de72748a5c7604081b202d53f7d9ac9 (diff) | |
| download | rust-6c26cbb6026194a280fa0f33c794d4397ad426da.tar.gz rust-6c26cbb6026194a280fa0f33c794d4397ad426da.zip | |
Add lint check for negating uint literals and variables.
See #11273 and #13318
Diffstat (limited to 'src/libstd/num/u16.rs')
| -rw-r--r-- | src/libstd/num/u16.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/num/u16.rs b/src/libstd/num/u16.rs index ca473e9517e..14a432905b4 100644 --- a/src/libstd/num/u16.rs +++ b/src/libstd/num/u16.rs @@ -11,6 +11,7 @@ //! Operations and constants for unsigned 16-bits integers (`u16` type) #![allow(non_uppercase_statics)] +#![allow(unsigned_negate)] use prelude::*; |
