rust/tests
Yuki Okushi df3aca2af6
Rollup merge of #102341 - jmillikin:nonzero-impl-neg, r=dtolnay
Implement `Neg` for signed non-zero integers.

Negating a non-zero integer currently requires unpacking to a primitive and re-wrapping. Since negation of non-zero signed integers always produces a non-zero result, it is safe to implement `Neg` for `NonZeroI{N}`.

The new `impl` is marked as stable because trait impls for two stable types can't be marked unstable.

See discussion on https://github.com/rust-lang/libs-team/issues/105 for additional context.
2023-04-20 17:03:23 +09:00
..
assembly
auxiliary
codegen Rollup merge of #110441 - kadiwa4:typos, r=thomcc 2023-04-18 14:50:51 +02:00
codegen-units
debuginfo ci: add a runner for vanilla LLVM 16 2023-04-16 11:50:20 -07:00
incremental
mir-opt Auto merge of #110393 - fee1-dead-contrib:rm-const-traits, r=oli-obk 2023-04-19 13:03:40 +00:00
pretty
run-make Rollup merge of #110525 - jyn514:translation-download-rustc, r=albertlarsan68 2023-04-19 17:54:42 +02:00
run-make-fulldeps
run-pass-valgrind
rustdoc Rollup merge of #110533 - GuillaumeGomez:missing-blanket-impl-trait-not-public, r=notriddle 2023-04-19 17:54:43 +02:00
rustdoc-gui
rustdoc-js rustdoc-search: add support for nested generics 2023-04-14 14:55:45 -07:00
rustdoc-js-std rustdoc-search: add support for nested generics 2023-04-14 14:55:45 -07:00
rustdoc-json
rustdoc-ui Add a failing rustdoc-ui test for public infinite recursive type 2023-04-18 14:13:44 +02:00
ui Rollup merge of #102341 - jmillikin:nonzero-impl-neg, r=dtolnay 2023-04-20 17:03:23 +09:00
ui-fulldeps Add rustc_fluent_macro to decouple fluent from rustc_macros 2023-04-18 18:56:22 +00:00
COMPILER_TESTS.md