rust/library/core/tests
Matthias Krüger 55a1f8b955
Rollup merge of #91122 - dtolnay:not, r=m-ou-se
impl Not for !

The lack of this impl caused trouble for me in some degenerate cases of macro-generated code of the form `if !$cond {...}`, even without `feature(never_type)` on a stable compiler. Namely if `$cond` contains a `return` or `break` or similar diverging expression, which would otherwise be perfectly legal in boolean position, the code previously failed to compile with:

```console
error[E0600]: cannot apply unary operator `!` to type `!`
   --> library/core/tests/ops.rs:239:8
    |
239 |     if !return () {}
    |        ^^^^^^^^^^ cannot apply unary operator `!`
```
2022-01-23 01:09:41 +01:00
..
fmt
hash
iter eplace usages of vec![].into_iter with [].into_iter 2022-01-09 14:09:25 +11:00
num Simplification of BigNum::bit_length 2022-01-10 14:18:28 -08:00
ops
alloc.rs
any.rs
array.rs Auto merge of #91838 - scottmcm:array-slice-eq-via-arrays-not-slices, r=dtolnay 2021-12-17 19:17:29 +00:00
ascii.rs
atomic.rs
bool.rs Constify bool::then{,_some} 2021-12-15 00:11:23 +08:00
cell.rs
char.rs Rollup merge of #88858 - spektom:to_lower_upper_rev, r=dtolnay 2021-12-23 00:28:51 +01:00
clone.rs
cmp.rs Disable test on bootstrap compiler 2021-12-16 22:11:17 -08:00
const_ptr.rs
convert.rs Revert "Auto merge of #89450 - usbalbin:const_try_revert, r=oli-obk" 2021-12-12 12:34:59 +08:00
future.rs disable test with self-referential generator on Miri 2021-12-20 12:33:55 +01:00
intrinsics.rs Constify core::intrinsics::black_box 2021-12-23 20:07:41 +09:00
lazy.rs
lib.rs Partially stabilize maybe_uninit_extra 2022-01-11 17:01:13 +01:00
macros.rs
manually_drop.rs
mem.rs Add test for const MaybeUninit 2021-11-28 01:31:25 -05:00
nonzero.rs
ops.rs Test not never 2021-11-21 19:10:39 -08:00
option.rs Constify (most) Option methods 2021-12-17 20:46:47 +08:00
pattern.rs
pin.rs
ptr.rs Make (*mut T)::write_bytes const 2021-12-12 14:02:53 +09:00
result.rs
simd.rs Force splatting in SIMD test 2021-12-02 19:22:00 -08:00
slice.rs Add rsplit_array variants to slices and arrays 2021-12-10 21:34:19 +01:00
str_lossy.rs
str.rs
task.rs
time.rs
tuple.rs
unicode.rs